instadump
Requisitos
- Cuenta de IG business.
- Crear app de tipo
businessen https://developers.facebook.com/apps - Crear un system user en https://business.facebook.com/settings/system-users
- Linkear app y cuenta de IG
- Generar access token (sin expiración) con los permisos:
- instagram_basic
- business_management
- pages_show_list
- instagram_manage_insights
- pages_read_engagement
- pages_read_user_content
pip install instadump
Crawl
Exportar variables de entorno (ver ejemplo .env.example), y luego utilizar el subcommand crawl
❯ instadump crawl --help
Usage: instadump crawl [OPTIONS] COMMAND [ARGS]...
Options:
--ig-connected-id TEXT [env var: IG_CONNECTED_ID; required]
--ig-access-token TEXT [env var: IG_ACCESS_TOKEN; required]
-c, --config TEXT Path to YAML config file
-u, --username TEXT Instagram username
-m, --max-items INTEGER Maximum number of items to download
--incremental / --no-incremental
Incremental download [default: incremental]
--period TEXT Period time, ie 7m, 4w, 10d, etc
--start-datetime TEXT Since datetime
--end-datetime TEXT Since datetime
--help Show this message and exit.
--incrementalsolo descarga nuevos posts.--no-incrementalreemplaza el JSON dump y descarga todo nuevamente.
Download media
Las URLs de media suelen expirar al poco tiempo, con el subcomand download-media se puede descargar del JSON obtenido anteriormente.
❯ instadump download-media --help
Usage: instadump download-media [OPTIONS] FILENAME COMMAND [ARGS]...
Arguments:
FILENAME [required]
Options:
--field TEXT [default: media_url]
--media-type [IMAGE|VIDEO|CAROUSEL_ALBUM]
--help Show this message and exit.
Metadata
Release files for instadump 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| instadump-0.2.1.tar.gz | 6.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| instadump-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.2 kB
Release files / instadump-0.2.1.tar.gz
| Download URL | instadump-0.2.1.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df7a1929f7b8596e0119ab0e7718a4489945b6ed666fcd29bfc255ac1cdc1782
|
|
BLAKE2b-256 checksum How to use checksums |
92994f5cf257c9a89bc3e74656c67c01e4a97e051f8b23e88c3e5266ab06a1e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.7 Darwin/22.6.0
|
Release files / instadump-0.2.1-py3-none-any.whl
| Download URL | instadump-0.2.1-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea562e5de5541978a7e9ac91af2d8a0f8e8fbb1acd354073334ba3992b8e77d2
|
|
BLAKE2b-256 checksum How to use checksums |
60a70c5d32fbb3ce43c614ece9e0afabc57e104673e7c923df6c60171bd302dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.7 Darwin/22.6.0
|