This file contains hidden or 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
| import requests | |
| from BeautifulSoup import BeautifulSoup as BS | |
| import re | |
| def get_dl_page(package_id): | |
| get_request = requests.get('https://apkpure.com/search?q=' + package_id) | |
| page = BS(get_request.text) | |
| # it is assumed that the first search result is the thing we are looking for | |
| link_ps = page.findAll('p', {'class': 'search-title'}) | |
| page_link = link_ps[0].a.get('href') |
NewerOlder