Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
An API for interacting with the APK Pure website, allowing you to search for apps, retrieve app information, and download apps programmatically.
An API for interacting with the APK Pure website, allowing you to search for apps, retrieve app information, and download apps programmatically.
requests
librarybeautifulsoup4
librarytqdm
libraryFirst Method:
pip install apkpure
git clone https://github.com/anishomsy/apkpure.git
cd apkpure
Create a virtual environment:
python -m venv venv
Activate the virtual environment:
On Windows:
.\venv\Scripts\activate
On macOS and Linux:
source venv/bin/activate
Install the required libraries:
pip install requests beautifulsoup4 tqdm
or
pip install -r requirements.txt
Here's a quick example of how to use the ApkPure
class:
from apkpure.apkpure import ApkPure
# Initialize the API
api = ApkPure()
# Search for an app and get top result
top_result = api.search_top("WhatsApp")
print(top_result)
# Search for all results
all_results = api.search_all("WhatsApp")
print(all_results)
# Get app versions
versions = api.get_versions("WhatsApp")
print(versions)
# Get app info
app_info = api.get_info("WhatsApp")
print(app_info)
# Download the latest version of an app
download_path = api.download("whatsapp")
print(download_path)
# Download a specific version of an app
api.download("WhatsApp", version="2.21.1.15")
ApkPure
A class to interact with ApkPure for searching apps, retrieving app information, and downloading APK files.
__init__(headers: dict | None = None) -> None
Initialize the ApkPure
instance with optional headers.
headers
(dict | None): Optional headers for HTTP requests.search_top(name: str) -> str
Search for the top result of an app on APK Pure.
name
(str): The name of the app to search for.str
: A JSON string containing details of the top search result.search_all(name: str) -> str
Search for all results of an app on APK Pure.
name
(str): The name of the app to search for.str
: A JSON string containing details of all search results.get_versions(name: str) -> str
Retrieve all available versions of the specified app.
name
(str): The name of the app.str
: A JSON string containing the details of all available versions.get_info(name: str) -> str
Retrieve detailed information about the specified app.
name
(str): The name of the app.str
: A JSON string containing detailed information about the app.download(name: str, version: str = "") -> str | None
Download the specified version of the app. If no version is specified, download the latest version.
name
(str): The name of the app.version
(str, optional): The version of the app to download. Defaults to the latest version.str | None
: The real path to the downloaded APK file, or None
if the version is invalid.Contributions are welcome! Here's how you can contribute:
git checkout -b feature-branch
).git commit -m 'Add some feature'
).git push origin feature-branch
).Please make sure to update tests as appropriate.
If you have any questions, suggestions, or feedback, feel free to contact me:
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
FAQs
An API for interacting with the APK Pure website, allowing you to search for apps, retrieve app information, and download apps programmatically.
We found that apkpure demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.