Skip to main content

Download all Snapmaps content from a specific location.

Project description

snapmap-archiver

A tool written in Python to download all Snapmaps content from a specific location.

snapmap-archiver splash

Setup

pip3 install snapmap-archiver

View on PyPI

Install dependencies with pip3.

pip3 install -r requirements.txt

Install aria2c

Download aria2c from here:

https://aria2.github.io/

This is the downloader used for the fastest Snap download speeds.

Usage

python3 -m snapmap_archiver -o [OUTPUT DIR] -l="[LATITUDE],[LONGITUDE]"

Unfortunately you have to use the arbitrary -l="lat,lon" rather than just -l "lat,lon" when parsing negative numbers as argsparse interprets said numbers as extra arguments.

Optional Arguments

Location

-l is not required if an input file or Snap URL is provided. It can also be used multiple times to download Snaps from multiple locations in one command.

E.g

python3 -m snapmap_archiver -o ~/Desktop/snap -l='123.123,123.123' -l '445.445,445.445'

Input File

With -t, you can specify a file containing a list of line-separated Snap URLs or IDs.

E.g

python3 -m snapmap_archiver -o ~/Desktop/snap -t ~/snaps.txt

Inside snaps.txt:

https://map.snapchat.com/ttp/snap/Example/@-33.643495,115.741281,11.86z
Example
https://map.snapchat.com/ttp/snap/Example/
https://map.snapchat.com/ttp/snap/Example/

Snap URL

You can also just pass 1 or more normal Snap URLs to the package to download it individually like this:

python3 -m snapmap_archiver -o ~/Desktop/snap 'https://map.snapchat.com/ttp/snap/Example/@-33.643495,115.741281,11.86z'

Export JSON

You can export a JSON file with info about downloaded snaps with the --write-json argument, which will contain information like the time the Snap was posted, and the Snap location.

Snap Radius

The radius from the coordinates you provide that will be included for downloads. -r 20000 will download all Snaps within a 20km radius of your coordinates.

No Overlay

By default the script merges the video and the overlay file into one file. With the --no-overlay argument you can disable this and only download the raw video.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snapmap-archiver-1.3.0.tar.gz (29.2 kB view details)

Uploaded Source

Built Distribution

snapmap_archiver-1.3.0-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

Details for the file snapmap-archiver-1.3.0.tar.gz.

File metadata

  • Download URL: snapmap-archiver-1.3.0.tar.gz
  • Upload date:
  • Size: 29.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for snapmap-archiver-1.3.0.tar.gz
Algorithm Hash digest
SHA256 b506f00d73957499195b3d420d7f4dadf2978d323d65b7274a0ea4223b864af3
MD5 613e5325b1fa5648771ac844ddd3176f
BLAKE2b-256 fa3185af253c70b4bceeb0290d18d85b93842b9b9b8a38cec0383472ea3f62ce

See more details on using hashes here.

File details

Details for the file snapmap_archiver-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: snapmap_archiver-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 28.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for snapmap_archiver-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ea2fd6e1acd2f277e68acb6c5d9adab470bf5e44ae00a8c61fee0dc407554f90
MD5 71b9000e8a9ebccb77eda677e8294911
BLAKE2b-256 fbc6e1ac2236b2eae8389a43da7b95a0a93772d4c7f26c968ef941a29fec5c71

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page