开发者

Downloading from links in an rss feed

开发者 https://www.devze.com 2023-01-01 14:10 出处:网络
I am trying to create a directory with news articles collected from an rss feed, meaning that whenever there is a link to an article wit开发者_运维知识库hin the rss feed, I would like for it to be dow

I am trying to create a directory with news articles collected from an rss feed, meaning that whenever there is a link to an article wit开发者_运维知识库hin the rss feed, I would like for it to be downloaded in a directory with the title of the specific article as the filename as as a text file. Is that something Python can help me do ?

Thank you for your help :-)


You can parse RSS feeds with feedparser and download files with urllib2. If you need to parse HTML use BeautifulSoup. If you have any problems with those, post more specific questions.


Of course. BeautifulSoup, lxml, urllib2, urlgrabber.

0

精彩评论

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

关注公众号