Snapchat download all memories at once

后端 未结 2 910
鱼传尺愫
鱼传尺愫 2021-01-07 00:43

Over the years on snapchat I have saved lots of photos that I would like to retrieve now, The problem is they do not make it easy to export, but luckily if you go online you

2条回答
  •  北恋
    北恋 (楼主)
    2021-01-07 01:21

    Using the .json file you can download them one by one with python:

    req = requests.post(url, allow_redirects=True)
    response = req.text
    file = requests.get(response)
    

    Then get the correct extension and the date:

    day = date.split(" ")[0]
    time = date.split(" ")[1].replace(':', '-')
    filename = f'memories/{day}_{time}.mp4' if type == 'VIDEO' else f'memories/{day}_{time}.jpg'
    

    And then write it to file:

    with open(filename, 'wb') as f:
        f.write(file.content)
    

    I've made a bot to download all memories.

    You can download it here

    It doesn't require any additional installation, just place the memories_history.json file in the same directory and run it. It skips the files that have already been downloaded.

提交回复
热议问题