Skip to content
This repository was archived by the owner on Nov 7, 2022. It is now read-only.

niothiel/snapchat-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PROJECT IS DEPRECATED

This uses APIs from many years ago for Snapchat. These APIs have since been changed/updated. This project is provided only for reference/archival purposes.

Snapchat for Python

Implementation of the Snapchat protocol in Python. Heavily based on php-snapchat.

Install

pip install requests
easy_install pycrypto
git clone https://github.com/niothiel/snapchat-python.git
cd snapchat-python/src
python example.py

Example

To get started, download snapchat.py and in another file enter the following:

from snapchat import Snapchat

s = Snapchat()
s.login('USERNAME', 'PASSWORD')

# Send a snapchat
media_id = s.upload(Snapchat.MEDIA_IMAGE, 'filename.jpg')
s.send(media_id, 'recipient')

# Get all snaps
snaps = s.get_snaps()

# Download a snap
s.get_media(snap['id'])

# Clear snapchat history
s.clear_feed()

About

Implementation of the Snapchat protocol in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6

Languages