Quote:
Originally Posted by EliezerYudkowsky
Shifting to the stable recipe does let me download again (yay!) but the archive = True setting no longer causes items to be archived after they are downloaded. Since Instapaper apparently no longer has an 'Archive All' button this is a substantial inconvenience.
|
Add this to the end of the stable recipe to virtually click all the archive buttons.
Code:
def postprocess_book(self, oeb, opts, log):
br = self.get_browser()
for feedobj in self.get_feeds():
feedtitle, feedurl = feedobj
self.report_progress(0, 'Archiving feed'+' %s...'%(feedtitle if feedtitle else feedurl))
soup = self.index_to_soup(feedurl)
for item in soup.findAll('div', attrs={'class':'title_row'}):
archive = item.parent.parent.find('a', attrs={'class': 'action_link archive_button'})
br.open(archive['href'])
This is right out of my current recipe, so this bit is tested. It's unconditional, so comment out the whole thing if you have to turn it off. And don't add anything to Instapaper while it's running: the postprocessing will happily archive things that the main processing never downloaded.