开发者

How to converting Wikipedia Article to RSS Feed item

开发者 https://www.devze.com 2023-04-01 14:43 出处:网络
Problem statement: A python script should be created to generate the rss feed of Wikipedia\'s Featured Articles for several languages.

Problem statement: A python script should be created to generate the rss feed of Wikipedia's Featured Articles for several languages.

English rss开发者_如何学C feed exists I need to create similar for other languages. Generation of English rss is pretty easy using the url structure of this type of urls http://en.wikipedia.org/wiki/Wikipedia:Today%27s_featured_article/August_29%2C_2011

But for the other languages I should scrape the data from Wiki page manually, so how this can be done ? Are there any already existing Wiki Page to RSS feed converters ?


I wouldn't convert the wiki page. I would convert the english rss, take feedparser to get the feed. Convert it with your favorite langauge api then send it back out using twisted to serve the rss feed.

0

精彩评论

暂无评论...
验证码 换一张
取 消