Stack Overflow archive
2 score

Downloading just the icon of an application from Google Play (Market)

score
2
question views
8.9K
license
CC BY-SA 3.0

The answer by Jug6ernaut will no longer work. This works as of November 2016:

java
@WorkerThread public static String scrapeGooglePlayIcon(@NonNull String packageName) throws IOException {
  return Jsoup.connect("https://play.google.com/store/apps/details?id=" + packageName).get()
      .select("div[class=details-info] > div[class=cover-container] > img[class=cover-image]")
      .attr("abs:src");
}

I created a small library that web scrapes the Google Play store. If this stops working in the future, please comment or create an issue on the GitHub project: https://github.com/jaredrummler/GooglePlayScraper

Originally posted on Stack Overflow. Public user contributions are licensed under Creative Commons Attribution-ShareAlike.