No project description provided
Project description
instadump
Requisitos
- Cuenta de IG business.
- Crear app de tipo
business
en 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.
--incremental
solo descarga nuevos posts.--no-incremental
reemplaza 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
instadump-0.2.1.tar.gz
(6.3 kB
view hashes)
Built Distribution
Close
Hashes for instadump-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea562e5de5541978a7e9ac91af2d8a0f8e8fbb1acd354073334ba3992b8e77d2 |
|
MD5 | 8f01574de193a88e379f6f189d54d0ca |
|
BLAKE2b-256 | 60a70c5d32fbb3ce43c614ece9e0afabc57e104673e7c923df6c60171bd302dd |