Download all Snap Map 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!
pip install snapmap-archiver
Setup (for working in a Python environment)
Install dependencies with pip
.
pip install -r requirements.txt
Usage
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
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
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:
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
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
Built Distribution
File details
Details for the file snapmap_archiver-2.2.0.tar.gz
.
File metadata
- Download URL: snapmap_archiver-2.2.0.tar.gz
- Upload date:
- Size: 19.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.10.6 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9feddec8b78992dba9ea0bdd99e9cb25cb854529ca473824d1f4029aaab0100 |
|
MD5 | a3de90871d8af28a5a7669b379f811ab |
|
BLAKE2b-256 | 12b2bd161faf9c633892959a17241f8369551355ab9fc83cae5829b858f707e7 |
File details
Details for the file snapmap_archiver-2.2.0-py3-none-any.whl
.
File metadata
- Download URL: snapmap_archiver-2.2.0-py3-none-any.whl
- Upload date:
- Size: 20.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.10.6 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3058802a2a63f6adb1c729091ba2065f489c0c76505f1f75ac86807d531798a |
|
MD5 | a2c21b467bea089babdcd400b85a7114 |
|
BLAKE2b-256 | 13060451d939f93323d80d61a96f273c12683fe5c08d54c80b75e855bffbe039 |