Handle RSS documentation using FeedParser

Overview:

Almost all blogs support RSS subscriptions. The RSS feed is a simple XML document that contains all blogs and all their article entry information. Through Universal Feed Parser, these online RSS feeds can be easily processed, and titles, links, and article entries in RSS or Atom feeds can be easily obtained later. The following explains how to use FeedParser.


< strong>Install FeedParser:

This is a Python package. The download address is below google code homepage, and a simple introductory document:

Project Home: https://code.google.com/p/ feedparser/
Project doc: http://packages.python.org/feedparser/introduction.html#parsing-a-feed-from-a-remote-url


After downloading, enter the file in the command line Folder and execute python setup.py install.

It is found that an error will occur when performing this operation: (it should be that the setuptools module was not found)

< p>python setup.py install
Report an error!
open setup.py
use from distutils.core import setup replaces from setuptools import setup on the first line
to perform the installation again!


Compile test:

 >>> import feedparser >>> d = feedparser.parse('http://blog.csdn.net/tao_sun/ rss/list') >>> print d['feed']['title'] Well's Column

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 1824 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.