<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <title></title>
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Am 20.11.2010 10:37, schrieb Petar Milin:
    <blockquote cite="mid:4CE796D6.5070802@ff.uns.ac.rs" type="cite">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      Hello!<br>
      <font class="fixed_width" face="Courier, Monospaced">Can anyone
        help me
        with getting number of hits from Google, but with restricton on
        domain
        (e.g., .edu) and language (e.g., lang_de)? I have tried with the
        Pygoogle (from: </font><font class="fixed_width" face="Courier,
        Monospaced"><a moz-do-not-send="true" target="_blank"
          rel="nofollow"
href="http://www.google.com/url?sa=D&q=http://code.google.com/p/pygoogle/&usg=AFQjCNEVyJd1MJ8TZRxehHaKTd0UcRrJ-w">http://code.google.com/p/pygoogle/</a>)</font><font
        class="fixed_width" face="Courier, Monospaced">: <br>
        from pygoogle import pygoogle <br>
        word = u'something' <br>
        request_word = word.encode('utf-8') <br>
        request = ('%s+site:.edu' % request_word) <br>
        g = pygoogle(request) <br>
        g.get_result_count() <br>
      </font>
      <p><font class="fixed_width" face="Courier, Monospaced"><br>
          Now, I realized that domain restriction works, but language
          does not,
          since it cannot be specified in request like domain in example
          above.<br>
          Please, help! Is this possible with the Pygoogle? If not, how
          can I
          make that happen? <br>
        </font></p>
      <p><font class="fixed_width" face="Courier, Monospaced">Thanks! <br>
          PM <br>
        </font> </p>
      <br>
    </blockquote>
    See below<br>
    <br>
    <font class="fixed_width" face="Courier, Monospaced">word =
      u'something' <br>
      request_word = word.encode('utf-8') <br>
      request = ('%s site:.edu options lang:de' % request_word) <br>
      g = pygoogle(request) <br>
      g.get_result_count() </font>
  </body>
</html>