Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (25 sloc) 1018 Bytes
#!/usr/bin/env python
__copyright__ = '2013, Catalin Iacob <iacobcatalin at gmail.com>'
__license__ = 'GPL v3'
'''
calibre recipe for Ian Taylor's Linkers series
'''
from calibre.web.feeds.recipes import BasicNewsRecipe
class EdgeOrgAnnualQuestionRecipe(BasicNewsRecipe):
description = "A series of blog posts on Linkers by Ian Taylor"
__author__ = 'Catalin Iacob'
title = 'Linkers - Ian Taylor'
remove_tags = [{'name': 'div',
'attrs': {'id': 'sidebar'}
}
]
def parse_index(self):
num_articles = 20
first_part_url_num = 38
linker_articles = [{'title': 'Part {}'.format(i + 1),
'url': 'http://www.airs.com/blog/archives/{}'.format(first_part_url_num + i),
'description': '',
'date': ''
} for i in range(num_articles)
]
return [('Linkers', linker_articles)]