Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 10-13-2012, 01:00 PM   #1
BRGriff
Connoisseur
BRGriff began at the beginning.
 
Posts: 58
Karma: 12
Join Date: May 2011
Location: Deland, Florida
Device: Kindle 3
USA Today "pageinfo data hidden"

I am trying to remove several tags from the USA Today recipe that I personally find annoying. Here is my remove_tags recipe:

Code:
remove_tags = [dict(name='aside', attrs={'class':['comp story-highlights','right partner','right']}),
               dict(name='span', attrs={'class':['last-updated']}),
               dict(name='div', attrs={'class':['pageinfo  data hidden']}),
               ]
The first two tag removals are working fine. But, for the life of me, I can not get the third tag removal to work. I cut and pasted the "pageinfo data hidden" directly from the source code so if there appears to be two spaces between "pageinfo" and "data" that was the way it was written. In fact, I have tried it both ways (one space and two spaces) without success.

Here is the original source code from the RSS feed:

<div class="pageinfo data hidden">
{
"assetid": "1631253",
"aws": "tech",
"aws_id": "tech",
"blogname": "",
"contenttype": "story pages ",
"pagename": "Space shuttle Endeavour continues trek through L.A.",
"seotitle": "Shuttle-endeavour-los-angeles",
"seotitletag": "Space shuttle Endeavour continues trek through L.A.",
"ssts": "tech",

"taxonomykeywords":"Traffic congestion,Space exploration,Los Angeles,California,Manchester,Manchester,Long Beach,Manchester",

"templatename": "stories/default",

"topic":"traffic-congestion,space-exploration,los-angeles,california,manchester,manchester,long-beach,manchester",


"videoincluded":"yes",

"basePageType":"story"

}
</div>

All of that garbage is appearing after every article and I would very much appreciate any help in assisting me in removing it from download.

Thank you,
Randy
BRGriff is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"The Hidden Truth" - newly published by Wade C. Wilson thehiddentruth Self-Promotions by Authors and Publishers 0 09-30-2012 05:14 AM
How do I make a "hidden" pages for endnotes in an EPUB? clemens14 ePub 9 04-30-2012 06:57 PM
No data in "In Library" and "On Device" columns after upgrade ily426 Library Management 8 04-03-2011 02:53 PM
Why No "USA Today"? HaggisMacJedi Amazon Kindle 18 07-03-2008 09:24 AM


All times are GMT -4. The time now is 05:05 AM.


MobileRead.com is a privately owned, operated and funded community.