This app is deployed as a read-only Streamlit market preview. The crawler runs in GitHub Actions and publishes the latest compressed JSONL data to a GitHub Release asset.
Create these repository secrets:
BMALL_COOKIE: Cookie header copied from the Bilibili Mall market page.BMALL_PROXY: Optional explicit proxy for the crawler.HTTP_PROXY/HTTPS_PROXY: Optional environment proxies.
The workflow .github/workflows/crawl-bmall-data.yml runs every Monday at
08:00 Asia/Shanghai, and can also be started manually from the Actions tab.
The workflow:
- Downloads the previous
data-latestrelease asset if it exists. - Runs
scripts/crawl_bmall_data.pywithBMALL_COOKIE. - Rebuilds
Data/bmall_all_data.jsonl.gz. - Uploads it to the
data-latestGitHub Release with--clobber.
The stable data URL for a public repository is:
https://github.com/2513502304/bilibili-mall/releases/download/data-latest/bmall_all_data.jsonl.gz
Deploy streamlit_app.py on Streamlit Community Cloud and set:
- Python version:
3.14 BMALL_DATA_URL: the release asset URL aboveBMALL_ENABLE_CRAWLER_PANEL: leave unset or set tofalse
The crawler panel is hidden by default for hosted preview deployments. Local
development can opt in by setting BMALL_ENABLE_CRAWLER_PANEL=true.