bazaar-dl
v2.0.0
Published
Generate direct APK download links from cafebazaar.ir
Maintainers
Readme
Bazaar-dl
Generate direct APK download links for Cafe Bazaar apps from the command line.
Requirements
- Node.js 18 or newer
Install
npm install -g bazaar-dlOr run without installing:
npx bazaar-dl https://cafebazaar.ir/app/com.digikalaUsage
bazaar-dl <cafebazaar-url-or-package-name>Examples
# From a Cafe Bazaar app URL
bazaar-dl https://cafebazaar.ir/app/com.digikala
# From a package name
bazaar-dl com.digikala
# Print only the download URL (useful for scripts)
bazaar-dl com.digikala --link-only
# Machine-readable JSON output
bazaar-dl com.digikala --json
# Skip scraping app metadata from the Bazaar page
bazaar-dl com.digikala --no-metadata
# Request a specific Android SDK version
bazaar-dl com.digikala --sdk 33Sample output
Package: com.digikala
Download: https://appcdn.cafebazaar.ir/apks/....apk?...
Title: دیجیکالا
Developer: دیجیکالا
Version: 3.5.1
SDK: 33How it works
- Parses the Android package name from a Cafe Bazaar URL or accepts a package name directly.
- Requests a temporary CDN download link from the Cafe Bazaar API (tries SDK 33, 25, then 22 by default).
- Optionally scrapes app metadata (title, developer, version) from the Bazaar app page.
If the Bazaar website is unreachable, the tool still attempts to resolve the download link from the API.
Development
npm install
npm run typecheck
npm run build
npm test
node dist/bin.js com.digikalaLicense
GPL-3.0-or-later
