Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Country set #19

Open
CoCumis opened this issue Jun 11, 2013 · 4 comments
Open

Country set #19

CoCumis opened this issue Jun 11, 2013 · 4 comments

Comments

@CoCumis
Copy link

CoCumis commented Jun 11, 2013

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
Copy link

Artgit commented Jun 11, 2013

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
Copy link
Owner

Akdeniz commented Jun 11, 2013

Hi,

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

  • "Accept-Language" http attribute only defines language of reviews, descriptions, title ...
  • This attribute has nothing to do with listed applications. Also checkin options like device-country and lang dont effect listing.
  • I only managed to fetch localized application lists by using proxy in a country.

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

@Artgit
Copy link

Artgit commented Jun 11, 2013

@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
Copy link
Author

CoCumis commented Jun 12, 2013

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants