Python Forum
How to select language/country in search () module
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to select language/country in search () module
#1
I am trying to figure out how to get results from Google in a date range and in a specific language using search() from googlesearch library. It seems that the problem is due to a domain/language/country issue rather than a date range. In fact, if I use default settings (English, com), it seems working pretty well. But I am interesting in only Italian pages. Have you ever tried to use search() and set the language/country manually? I am currently using the following parameters in search() module:

        q,
        lang='it',
        num=1,
        start=0,
        stop=10
but this does not pick only Italian results. Could you please tell me your experience or a possible solution/alternative to get results in a user specified language?

Thanks
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  encode/decode to show correct country letters in a CTk combobox janeik 2 711 Sep-02-2023, 09:46 AM
Last Post: janeik
  Using locationtagger to extract locations found in a specific country/region lord_of_cinder 1 1,268 Oct-04-2022, 12:46 AM
Last Post: Larz60+
  Control Mouse and Keyboard Across the Country Without VNC on Target PC Khuber79 5 2,984 Feb-21-2021, 02:42 AM
Last Post: NullAdmin
  Showing only one country in Folium tantony 3 5,701 Nov-01-2019, 03:32 PM
Last Post: nilamo
  SQL select join operation in python(Select.. join) pradeepkumarbe 1 2,232 Feb-14-2019, 08:34 PM
Last Post: woooee

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020