Skip to content

A python module for the Snapchat API. Ported from php-snapchat.

License

Notifications You must be signed in to change notification settings

cziemba/python-snapchat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Snapchat

I couldn't find a nice working implementation of the snapchat API in python so I decided to port php-snapchat into python.

Example

This will read all snapchats and output them as jpgs.

from snapchat import Snapchat

snapchat = Snapchat(snap_user, snap_pass)

snaps = snapchat.getImages() # List of incoming snapchat infos that are images
for snap in snaps:
    data = snapchat.getMedia(snap['id'])
    if data is not None:
        with open(snap['id'] + '.jpg', 'wb') as f:
            f.write(data)

TODO

  • Finish porting some of the more important functionality
  • Unit Tests!
  • Work on Stories, Account control (friends), and Video (eventually)

LICENSE

MIT

About

A python module for the Snapchat API. Ported from php-snapchat.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages