1
from calibre.web.feeds.news import BasicNewsRecipe
3
class AdvancedUserRecipe1325766771(BasicNewsRecipe):
7
max_articles_per_feed = 100
10
def get_article_url(self, article):
11
link = BasicNewsRecipe.get_article_url(self, article)
12
if link.split('/')[-1]=="story01.htm":
13
link=link.split('/')[-2]
14
a=['A', 'B', 'C', 'D', 'E', 'F', 'G', 'I', 'L' , 'N' , 'S' ]
15
b=['0', '.', '/', '?', '-', '=', '&', '_', 'http://', '.com', 'www.']
16
for i in range(0,len(a)):
17
link=link.replace('0'+a[-i],b[-i])
20
feeds = [(u'Macity', u'http://www.macitynet.it.feedsportal.com/c/33714/f/599513/index.rss')]
21
__author__ = 'faber1971'
22
description = 'Apple and hi-tech news'