pygoogle search restricted by date
Duncan Booth
duncan at NOSPAMrcp.co.uk
Thu Jun 6 06:32:55 EDT 2002
Lutz Schroeer <ifls at rz.tu-clausthal.de> wrote in
news:adfmsk$205i$1 at ariadne.rz.tu-clausthal.de:
> 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)
--
Duncan Booth duncan at rcp.co.uk
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?
More information about the Python-list
mailing list