pyGoogle - restrict by country doesn't seem to work

Discussion in 'Python' started by dananrg@yahoo.com, Jun 29, 2006.

  1. Guest

    If I want to restrict search results by country, what precisely do I
    need to include in searchTerm variable below?

    I've tried:

    searchTerm = 'restrict:countryUS blah blah'
    searchTerm = '<restrict> countryUS blah blah'

    Neither work. What am I doing wrong?

    import google
    data = google.doGoogleSearch(searchTerm)

    Thanks
     
    , Jun 29, 2006
    #1
    1. Advertising

  2. Guest

    This worked for me:

    data = google.doGoogleSearch(searchTerm, restrict = 'countryUS')

    How does restrict results by country at Google.com?
     
    , Jun 29, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. S.Guhananth
    Replies:
    1
    Views:
    551
    Alvin Bruney [Microsoft MVP]
    Apr 30, 2005
  2. Zyron
    Replies:
    2
    Views:
    1,507
    Jukka K. Korpela
    Nov 8, 2005
  3. Brian Landers
    Replies:
    0
    Views:
    291
    Brian Landers
    Jan 16, 2004
  4. Brian Landers

    ANNOUNCE: PyGoogle 0.6 released

    Brian Landers, Feb 26, 2004, in forum: Python
    Replies:
    0
    Views:
    334
    Brian Landers
    Feb 26, 2004
  5. Petr Janda
    Replies:
    2
    Views:
    161
    rretzbach
    Mar 8, 2007
Loading...

Share This Page