Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 09-23-2014, 02:55 PM   #1
swerling
Junior Member
swerling began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2013
Device: kindle
Remove article from feed after fetch?

I'd like to remove articles after they have been fetched based on information scraped out of the article content.

Anyone have an example of this? I'm currently doing it by overriding _preprocess_html() and removing the article from the feed. Almost but no cigar (it throws off the toc a bit).
swerling is offline   Reply With Quote
Old 09-23-2014, 03:02 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,659
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Simply return None from preprocess_raw_html() that will cause the downloading of the article to abort with an error, skipping it.
kovidgoyal is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
fetch article url from facebook feed knowledgecrawler Recipes 1 08-22-2014 04:07 AM
Full-article blog, fetch, table of contents surf Recipes 9 02-06-2013 06:32 PM
Help: When Article is Feed? _reader Recipes 2 06-14-2012 04:53 PM
Could not fetch article. Steven630 Recipes 4 05-05-2012 06:00 AM
a feed that don't fetch, why? schuster Recipes 0 05-26-2011 03:53 PM


All times are GMT -4. The time now is 08:30 PM.


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