Quote:
Originally Posted by mrgrossm
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'})]