Created
August 8, 2018 03:19
-
-
Save kayaked/ddfe1b584ec566d3abaf48467b2539e5 to your computer and use it in GitHub Desktop.
finds bundle ids of apps on google play
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PlayScraper - Android Bundle ID Locator | |
# By jack (oganessium) | |
# @saucize/@trueyak, github.com/oganessium | |
from bs4 import BeautifulSoup as bs | |
import requests | |
print("=============================") | |
print("PlayScraper - Android Bundle ID Locator") | |
print("=============================") | |
def android(query): | |
req = requests.get("https://play.google.com/store/search?q={}&c=apps".format(query.lower().replace(' ', '+'))) | |
soup = bs(req.text, 'html.parser') | |
result = soup.find_all('a', {'class':'title'}, limit=10) | |
print("=============================================") | |
if result == []: | |
print("No results") | |
print("=============================") | |
for x in result: | |
print(x.text[2:]) | |
print(x['href'].split('?id=')[1]) | |
print("=============================") | |
again = input("Search again? (Y/N): ") | |
if again.lower() == "y": | |
android(input("App to search: ")) | |
else: | |
print("=============================") | |
print("Thank you for using PlayScraper!") | |
print("=============================") | |
android(input("App to search: ")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment