Giter Club home page Giter Club logo

download_snapchat_memories's Introduction

Snapchat Memories downloader

Snapchat keeps your Memories (including old stories), but holds them hostage. It's very difficult to extract your Memories from Snapchat with the timestamps intact:

  • You can export Memories (100 at a time) from the app, either into another app or to local storage, but the EXIF metadata is stripped.
  • You can request a dump of your data from Snapchat at https://accounts.snapchat.com/accounts/downloadmydata, but what you get is an HTML file with an individual "Download" button for each photo and video.
  • The HTML page also has the timestamp next to each "Download" button. You can click every Download button and then try to associate the timestamp from the table with the files that were downloaded, but you'll find that each filename is a UUID, each URL contains 3 different UUIDs, and the UUID from the filename appears nowhere in the URL.

The script in this repository is the solution. If you request your data from Snapchat at https://accounts.snapchat.com/accounts/downloadmydata, unzip it (the filename will look like mydata_1234567890123.zip), and run the script like this:

$ git clone https://github.com/TheJakeSchmidt/download_snapchat_memories.git
$ cd download_snapchat_memories
$ virtualenv env
$ source env/bin/activate
$ pip install beautifulsoup4 dateparser pyexif pytz requests tqdm
$ python download_snapchat_memories.py --mydata_path=/path/to/mydata_1234567890123

... you'll get a snapchat_memories/ directory with your properly-timestamped photos and videos. If you have a GPS track file (e.g. from your Google Location History), you can subsequently add geotags too:

exiftool -geotag location_history.kml snapchat_memories/*

This script has only been tested on Linux, but it might work on Windows too, if you have pyexif and exiftool installed.

download_snapchat_memories's People

Contributors

thejakeschmidt avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.