Skip to main content

instadump

Requisitos

  1. Cuenta de IG business.
  2. Crear app de tipo business en https://developers.facebook.com/apps
  3. 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.

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

instadump-0.2.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file instadump-0.2.1.tar.gz.

File metadata

  • Download URL: instadump-0.2.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.7 Darwin/22.6.0

File hashes

Hashes for instadump-0.2.1.tar.gz
Algorithm Hash digest
SHA256 df7a1929f7b8596e0119ab0e7718a4489945b6ed666fcd29bfc255ac1cdc1782
MD5 4f37c4b9abd453724f9a500c92ecc031
BLAKE2b-256 92994f5cf257c9a89bc3e74656c67c01e4a97e051f8b23e88c3e5266ab06a1e2

See more details on using hashes here.

File details

Details for the file instadump-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: instadump-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.7 Darwin/22.6.0

File hashes

Hashes for instadump-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ea562e5de5541978a7e9ac91af2d8a0f8e8fbb1acd354073334ba3992b8e77d2
MD5 8f01574de193a88e379f6f189d54d0ca
BLAKE2b-256 60a70c5d32fbb3ce43c614ece9e0afabc57e104673e7c923df6c60171bd302dd

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 files

0.2.0

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page