pygoogle search restricted by date

Lutz Schroeer Lutz.Schroeer at kybernetik-manufaktur.de
Sat Jun 8 08:39:32 EDT 2002


Duncan Booth <duncan at NOSPAMrcp.co.uk> wrote in
news:Xns92257522D50DCduncanrcpcouk at 127.0.0.1: 

>> restrict_query = 'daterange:%d-%d' % (yesterday, today)
>> 
>> data = google.doGoogleSearch('python', restrict = restrict_query)
> 
> restrict is for searching by country or topic. I think you just want
> to put the daterange in as part of the main query string:
> 
>> data = google.doGoogleSearch('python '+restrict_query)

Thanks, that did the thing. 



More information about the Python-list mailing list