Does Pygoogle allows for advanced search options?

neocortex pmilin at gmail.com
Thu Nov 18 06:26:14 EST 2010


> The library doesn't seem to have built-in support for filtering by
> language (and Google lacks a search query-string-based operator for
> that), but it looks like you could implement that feature by adding an
> "lr" parameter with an appropriate value to the query `args`
> dictionary. See the "lr?" entry under "Web Search Specific Arguments"
> onhttp://code.google.com/apis/websearch/docs/reference.html, and
> lines 68 & 102 of pygoogle.py.

>From those lines, it can be concluded that lr=lang_?? is not
supported, unfortunately. And, when I execute, I get an error.
Is there any other way to get Google search from Python? I really need
only number of hits.

Best,
PM



More information about the Python-list mailing list