View Single Post
Old 10-07-2010, 12:18 PM   #3
kidblue
Connoisseur
kidblue began at the beginning.
 
Posts: 79
Karma: 10
Join Date: Oct 2010
Device: Kindle 3
Muchas gracias.
I'm trying hard, but still lost - Just adding the above doesn't reference specific articles, which need to be pulled.

Plus, I'm a little boggled as to how to reference the above code to multiple feeds - i.e. the Music, Moves, Calendar sections, etc.

I'm not looking for a handout of a "free" recipe, I'm into learning, but my days of coding Q-BASIC are a little bit behind me

Spoiler:
class AdvancedUserRecipe1286467894(BasicNewsRecipe):
title = u'LA Weekly'
oldest_article = 7
max_articles_per_feed = 100

feeds = [(u'Movies', u'feed://laweekly.com/syndication/section/film')]

temp_files = []
articles_are_obfuscated = True

def get_obfuscated_article(self, url):

br = self.get_browser()
br.open(url)

response = br.follow_link(url_regex = r'/content/printVersion/[0-9]+', nr = 0)
html = response.read()

self.temp_files.append(PersistentTemporaryFile('_t emparse.html'))
self.temp_files[-1].write(html)
self.temp_files[-1].close()

return self.temp_files[-1].name
kidblue is offline   Reply With Quote