Akdeniz / google-play-crawler

Play with Google Play API :)
Other
565 stars 204 forks source link

Country set #19

Open CoCumis opened 11 years ago

CoCumis commented 11 years ago

Hi

First, thank you for great job. I want to ask, how i can change country of google play from which google return category application list. Changing only localization return the same list of applications. I found in googlePlayApi.java only one country string - device_contry in checkin. Is that it? If yes, should I "rechekin" for each country which i want to crawl?

Thank for reply

Artgit commented 11 years ago

I was trying to supply in these methods(login and loginAC2DM) some other country/lang codes but it doesn't work. In the result I still have "en" based data.

Akdeniz commented 11 years ago

Hi,

I did some tests about this localization and find out these:

So I can say that google play server filters applications to be listed according to your IP location.

Artgit commented 11 years ago

@Akdeniz could you please extend GooglePlayAPI in order to simplify the work with different languages? I need possibility to get reviews, descriptions, title in various languages.

Right now most of required GooglePlayAPI methods are private and it's hard to extend. Could you please introduce some additional configuration parameters.. like Locale or language or so on ?

Thanks.

CoCumis commented 11 years ago

@Artgit you can simply overload this method: list, details, executeGetRequest, getHeaderParameters and supply them with language parameter. In getHeaderParameter set this language parameter to "Accepted-Language" string. After that you can call details/list with language code which you want.