This article mainly introduces the introduction of Python processing RSS and ATOM module FEEDPARSER. This article is just a brief introduction to the entry level. if you need a friend, refer to the close of Google reader, there were a lot of rss contacts during this time. I tried qq reader. it's not very good, the reading speed is not good, and there is no mark for reading. If you do not want to use other websites, you have to register more accounts.
Find the python rss processing package feedparser. the official documentation is very detailed. Http://pythonhosted.org/feedparser/
The code is as follows:
>>> Import feedparser
>>> D = feedparser. parse ('http: // 0x55aa.sinaapp.com/feed ')
>>> A = d. feed
>>> A. title
You can use keys to view the dictionary key, so that you can clearly understand each meaning. Every one of the official documents has an introduction.
The code is as follows:
>>> D ['feed']. keys ()
Articles subscribed to by rss are listed in d. entries.
For detailed usage and advanced usage, see the official feedparser documentation.