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](/.github/img/Splash.png)
## Setup
pip install snapmap-archiver
[View on PyPI](https://pypi-hypernode.com/project/snapmap-archiver/)
Install dependencies with pip.
`sh pip install -r requirements.txt `
## Usage
`sh 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
`sh python3 -m 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 python3 -m snapmap_archiver -o ~/Desktop/snaps -t ~/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 python3 -m 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.0-1.tar.gz
.
File metadata
- Download URL: snapmap-archiver-2.0-1.tar.gz
- Upload date:
- Size: 19.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1848fb2466f7bf0b71c4a445234d12a4b5ae212e478327e7b8369ea9a8bafc0f |
|
MD5 | 4ba5f15dc0d6d662302764ab804232f9 |
|
BLAKE2b-256 | 9ed18f40202d9208e84a73bbfbb92266106673ebdd02782fd165bfaaae7524ce |
File details
Details for the file snapmap_archiver-2.0-py3-none-any.whl
.
File metadata
- Download URL: snapmap_archiver-2.0-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30b34699dd8b77f1c2a73eb913e11a675b5413992dc9da41a14cb9d585602fbf |
|
MD5 | 39ef8dd8c9ff03a43b8e3f6bfe9bfe2b |
|
BLAKE2b-256 | f6bd273b3b69f9811f061e92832cd31fd8932faa31b8eebf007848fbf724c062 |