CafeBazaar Crawler View source

Independent software · Python + HTTP + SQLite

Public metadata.
Private workspace.

Collect permitted CafeBazaar app metadata with a local Python tool. Read supported HTTP responses, validate records, and keep the resulting SQLite database on your computer.

This website is a static product guide. It does not collect marketplace data or accept datasets.

Illustrated architecture: a local Python CLI requests permitted CafeBazaar responses, parses supported fields, and saves records into local SQLite.
Architecture illustration · no live request, screenshot, or marketplace measurement

From a permitted response
to a useful local record.

CafeBazaar Crawler uses Python HTTP requests and an API-oriented adapter. It discovers categories and app listings, parses supported metadata, and writes records to SQLite.

You decide when it runs and which limits to apply. There is no hosted collector, account, or remote database to configure.

Read the technical scope

Define the scope. Keep the output.

The real workflow runs in your terminal. The upstream API is unofficial and may change or become unavailable.

  1. 01

    Choose permitted pages

    Confirm access permission. Set category, subcategory, successful-app, and per-path page limits.

  2. 02

    Request and parse

    The HTTP adapter handles supported responses with timeouts, retries, and repeated-page stopping.

  3. 03

    Persist locally

    Supported app details are stored by package and source in the local app_details table.

  4. 04

    Review offline

    Generate a Persian RTL HTML report or formula-safe CSV from the database you control.

Focused collection.
Inspectable behavior.

Useful controls for a deliberate local research workflow, with no claim of complete marketplace coverage.

Scoped discovery
Category and subcategory discovery, plus separate per-path listing and subcategory page limits.
Supported app fields
Package, title, category, version, install-range values, ratings, descriptions, and other available metadata.
Local SQLite persistence
Package/source keys replace existing records rather than creating duplicate rows. Saved data survives interruption.
Offline outputs
Searchable Persian HTML reports and safe CSV exports omit developer phone and email fields. Raw SQLite may contain those contacts.

Your first dataset can be fictional.

Python 3.9 or newer is required. The offline demo uses the Python standard library and makes no marketplace requests.

Step 1

Get the source

git clone https://github.com/AlirezaBelal/cafebazaar-crawler.git
cd cafebazaar-crawler

Use a terminal on Windows, macOS, or Linux.

Step 2

Try the local demo

Windows PowerShell
py -3 -m venv .venv
.\.venv\Scripts\python.exe src\main.py --demo
macOS or Linux
python3 -m venv .venv
. .venv/bin/activate
python src/main.py --demo

Open data/demo-report.html. The demo creates twelve clearly fictional records. Choose a new --db path to run it again.

Set up a small, permitted collection

First confirm that your intended access and use are allowed. Install the network dependencies inside the virtual environment:

# Windows PowerShell
.\.venv\Scripts\python.exe -m pip install -r requirements.txt
# macOS / Linux, with the environment activated
python -m pip install -r requirements.txt

Use the environment’s Python executable for this deliberately small example:

python src/main.py --category-limit 1 --subcategory-limit 1 --max-apps 3 --max-list-pages 1 --max-subcategory-pages 1

These are not global request limits. The app limit counts successful saves; page limits apply separately per path. Retries can issue additional HTTP requests. Keep conservative delays and stop if access is refused.

The default database is data/cafebazaar_results.db. Running without arguments makes no network requests. --full explicitly enables an unbounded collection and should not be a first run.

Read your local output

python src/main.py --db data/my-run.db --report data/my-report.html
python src/main.py --db data/my-run.db --export-csv data/my-apps.csv

Reports and CSV are generated offline. Keep raw SQLite databases and logs private, and review their contents before sharing.

Permission comes
before a request.

Independent project. Not operated, endorsed, or officially supported by CafeBazaar.

Build your own research workflow.

Start with the source, try the offline demo, and understand the limits before collecting.