[Tutor] Feedparser and google news/google reader

DK dkdropbox at gmail.com
Thu Mar 11 14:07:16 CET 2010


Alan Gauld <alan.gauld <at> btinternet.com> writes:

> 
> I have no idea if this is relevantt and without code I suspect we will all
> be guessing blindly but...
> 
> Have you checked Google's terms of use? I know they make it hard to
> screen scrape their search engine so they may have similar limits on
> their feeds. Just a thought.
> 

I didn't include the code because its really just two lines, apologies:

import feedparser

feed =
'http://news.google.com/news?pz=1&cf=all&ned=us&hl=en&as_scoring=r&as_maxm=3&q=health+information+exchange&as_qdr=a&as_drrb=q&as_mind=8&as_minm=2&cf=all&as_maxd=100&output=rss'

x = feedparser.parse(feed)

len(x) (<-this always yields 10 items)

In the meantime, i'll check the terms of service.





More information about the Tutor mailing list