Introduction to the FEEDPARSER module for processing RSS and ATOM in Python

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.