Python Forum

Full Version: How to select language/country in search () module
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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