View Single Post
Old 03-03-2010, 01:23 PM   #1528
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by mrgrossm View Post
The biggest problem is that both have a background, the News one is light enough, but the Free Press is really dark. Also both have lots of junk after the article that I don't know how to get rid of.

Can anybody help?
Code:
no_stylesheets = True
Will kill the backgrounds.
Junk after article is usually easiest to kill with
Code:
remove_tags_after = [dict(name='div', attrs={'id':'whatever_id_firebug_says_is_last_desired_content'})]
Use Firebug to find tags for:
keep_only_tags (this may be enough)
remove_tags
remove_tags_after
remove_tags_before

This will do it for the junk in FreePress:
Code:
    keep_only_tags = [dict(name='div', attrs={'id':'article-wrapper'})]
    remove_tags = [dict(name='div', attrs={'id':'sharelinks'})]

Last edited by Starson17; 03-03-2010 at 01:46 PM.
Starson17 is offline