dvingerh / pysnapstories Goto Github PK
View Code? Open in Web Editor NEWA Python script to download public Snapchat user stories from verified accounts, subjects and Map events.
License: MIT License
A Python script to download public Snapchat user stories from verified accounts, subjects and Map events.
License: MIT License
I started getting this error on multiple users:
D:\PySnapStories-master>python pysnapstories.py sommerray
PYSNAPSTORIES (SCRIPT V2.1 - PYTHON V3.7.4) - 12:56:27 AM
Treating input as username. (no ID was detected)
Starting download for user: sommerray
Story Id : sommerray
Story Title : Sommer-Ray
Story amount : 6
Something went wrong: download_story() got an unexpected keyword argument 'is_overlay'
The script cannot continue, exiting.
python3 pysnapstories.py loren
-----------------------------------------------------------------------------------------------
[I] PYSNAPSTORIES (SCRIPT V2.1 - PYTHON V3.6.0) - 06:52:12 AM
-----------------------------------------------------------------------------------------------
[I] Treating input as username. (no ID was detected)
[I] Starting download for user: loren
[E] Something went wrong: Expecting value: line 1 column 1 (char 0)
[E] The script cannot continue, exiting.
Any ideas?
Hi Dirk,
It seems that the script overwrites any stories from a certain user that has the same name, for some reason the stories filenames aren't unique, like if you download a story and try to download another story a week later ( from the same user ), there's a high chance that they would have the same filenames and the script would overwrite the old files.
Also, lets say I'm scraping "sommerray" stories, the script would make a folder by the name "sommerray_NoTitle" , if you create folders inside that folder , the script would delete them also.
I'm not sure on how to reproduce this bug.
So the script stopped working, looks like the api broke.
Here's my log from the script:
D:\PySnapStories-master>python pysnapstories.py elsiehewitt
-----------------------------------------------------------------------------------------------
PYSNAPSTORIES (SCRIPT V2.1 - PYTHON V3.7.4) - 04:21:25 AM
-----------------------------------------------------------------------------------------------
Treating input as username. (no ID was detected)
Starting download for user: elsiehewitt
Something went wrong: HTTPSConnectionPool(host='storysharing.snapchat.com', port=443): Max retries exceeded with url: /v1/fetch/elsiehewitt (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1076)')))
The script cannot continue, exiting.
D:\PySnapStories-master>python pysnapstories.py sommerray
-----------------------------------------------------------------------------------------------
PYSNAPSTORIES (SCRIPT V2.1 - PYTHON V3.7.4) - 04:21:26 AM
-----------------------------------------------------------------------------------------------
Treating input as username. (no ID was detected)
Starting download for user: sommerray
Something went wrong: HTTPSConnectionPool(host='storysharing.snapchat.com', port=443): Max retries exceeded with url: /v1/fetch/sommerray (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1076)')))
The script cannot continue, exiting.```
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.