Skip to main content

Download all Snapmaps content from a specific location.

Project description

# snapmap-archiver

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

## Install Python 3.10+

Be sure to check that you’re using a version of Python that is 3.10 or above. This project will not work on Python 3.9 or below!

![snapmap-archiver splash](/.github/img/Splash.png)

pip install snapmap-archiver

[View on PyPI](https://pypi-hypernode.com/project/snapmap-archiver/)

## Setup (for working in a Python environment)

Install dependencies with pip.

`sh pip install -r requirements.txt `

## Usage

`sh 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

`sh snapmap-archiver -o ~/Desktop/snap -l='123.123,123.123' -l '445.445,445.445' `

#### Input File

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

E.g

`sh snapmap-archiver -o ~/Desktop/snaps -f ~/Desktop/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 or IDs to the package to download it individually like this:

`sh snapmap-archiver -o ~/Desktop/snap 'https://map.snapchat.com/ttp/snap/Example/@-33.643495,115.741281,11.86z' 'Example' `

#### 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.

It will write archive.json to the specified output directory.

#### 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.

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-2.1.0.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

snapmap_archiver-2.1.0-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: snapmap-archiver-2.1.0.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for snapmap-archiver-2.1.0.tar.gz
Algorithm Hash digest
SHA256 db31369c4f7cae952c4f75df1aabd7b474226b5bea9ded44fa89b898dded2e4c
MD5 a8cc93231d9cc5473b84efb51a7deb7d
BLAKE2b-256 55e80f0547bad877c6ca3af39c7f16a538258bcefa78c7bd9ab464bf9ee49338

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for snapmap_archiver-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 428eb8d749d94a9884e29aac7787405fa083c96f79355d912e9798c7cc78276f
MD5 a6e782e5ffe4ff4f1126309b894cbc70
BLAKE2b-256 e4049a2e62bdd6294025e632d2a3ce4fd492883fbbeec74de36130897a9f7b23

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