Files
vibe-coding-cn/i18n/en/skills/04-dev-tools/twscrape/references/installation.md
T
tukuaiai 828505a2f1 docs: align en/ structure with main README
- Simplify language badges (zh, en, more languages)
- Add X badge @123olp
- Reorganize prompts: 00-meta, 01-system, 02-coding, 03-user
- Reorganize skills: 00-meta, 01-ai-tools, 02-databases, 03-crypto, 04-dev-tools
- Update all path references
2025-12-19 17:14:13 +08:00

1.0 KiB

TRANSLATED CONTENT:

Installation

Standard Installation

pip install twscrape

Development Version

Install the latest development version directly from GitHub:

pip install git+https://github.com/vladkens/twscrape.git

Requirements

  • Python 3.7+
  • asyncio support
  • Internet connection for Twitter/X access

Dependencies

The library automatically installs required dependencies:

  • httpx - Async HTTP client
  • aiosqlite - Async SQLite database
  • Additional dependencies as specified in setup.py

Verification

Verify installation:

# Check CLI is available
twscrape --help

# Check Python import works
python -c "from twscrape import API; print('OK')"

Upgrading

pip install --upgrade twscrape

Uninstallation

pip uninstall twscrape

Database Location

By default, twscrape creates accounts.db in your current working directory. You can specify a custom location:

api = API("path/to/custom.db")

Or via CLI:

twscrape --db path/to/custom.db <command>