Use Google API to retrieve any blog history

Source: Internet
Author: User

A blog reader can only obtain the content on the first page, and the historical content cannot be obtained. You can also use Google API to obtain historical records because Google has saved historical records in its own database.

For specific parameters, refer

Http://code.google.com/p/pyrfeed/wiki/GoogleReaderAPI

 

URLExample:

Http://www.google.com/reader/atom/feed/http:/www.cnblogs.com/rock_chen/rss? N = 10

 

Parameters: (from API)

Get parameter name

Python Google Reader API name

Parameter Value

N

Count

Number of items returns in a set of items (default 20)

Client

Client

The default client name (seeClientIn Glossary)

R

order

by default, items starts now, and go back time. you can change that by specifying this key to the value O (default value is d )

OT

Start_time

The time (UNIX time, number of seconds from January 1st, 1970 00:00 UTC) from which to start to get items. only works for order r = o mode. if the time is older than one month ago, one month ago will be used instead.

CK

Timestamp

Current time stamp, probably used as a quick hack to be sure that cache won't be triggered.

XT

Exclude_target

another set of items suffix, to be excluded from the query. for exemple, you Can query all items from a feed that are not flagged as read. this value start with feed/ or User/ , not with ! Http: // or WWW

C

Continuation

A string usedContinuationProcess. Each feed return not all items, but only a certain number of items. You'll find in the atom feed (under the nameGR: Continuation) A String called continuation. Just add that string as argument for this parameter, and you'll retrieve next items.

 

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.