Getting number of hits from Google

2011-05-01 Thread neocortex
Hello! For quite some time, I am looking for a solution to the problem of getting number of hits for a list of, let say, 200-300 words, from a search engine. I would prefer Google, but this seems not possible. I tried with the PyGoogle (from http://code.google.com/p/pygoogle/), but it stops

Re: Does Pygoogle allows for advanced search options?

2010-11-18 Thread neocortex
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?

Does Pygoogle allows for advanced search options?

2010-11-17 Thread neocortex
Hello All, Can anyone help me with the Pygoogle: from pygoogle import pygoogle word = u'something' request_word = word.encode('utf-8') request = ('%s+site:.edu' % request_word) g = pygoogle(request) g.get_result_count() Now, I realized that domain restriction works (site:.edu etc.), but I would

Re: Is there an easy way to sort a list by two criteria?

2008-02-10 Thread neocortex
Hello! Thank you all, so much! Now I can do double-criteria sort in at least three ways. More than I have expected. Best, PM -- http://mail.python.org/mailman/listinfo/python-list

Is there an easy way to sort a list by two criteria?

2008-02-09 Thread neocortex
Hello! I am a newbie in Python. Recently, I get stuck with the problem of sorting by two criteria. In brief, I have a two-dimensional list (for a table or a matrix). Now, I need to sort by two columns, but I cannot figure out how to do that. I read somewhere that it is possible to do: