Giter Site home page Giter Site logo

snapy's Introduction

Snapy

Awesome CasperStatus

A fork of pysnap by martinp updated to use the new Snapchat API.

Installation

Snapy is a standard Python package (setuptools) which can be installed by running:

python setup.py install

If you prefer not to install it globally, you can install it inside a virtualenv.

Getting a Casper API Key

This is required for the API to work.

Go to https://clients.casper.io/login.php and create an account.

Once you have created an account, go to "Projects" and create a new project.

projects

Now you will have your project with your API Key and API Secret.

api

You will need to set this data in the constructor, as shown in the [examples] (/examples). Example API usage

from pprint import pprint
from snapy import Snapchat

s = Snapchat()
s.login('username', 'password', 'gmail', 'gpasswd')
snaps = s.get_snaps()

pprint(snaps)

Basic clients

There are two basic clients included in the package, get_stories.py for downloading stories and get_snaps.py for downloading snaps.

$ get_snaps.py -h
Basic Snapchat client

Usage:
  get_snaps.py [-q] -u <username> [-p <password>]  --gmail=<gmail>
                --gpasswd=<gpasswd> <path>

Options:
  -h --help                 Show usage
  -q --quiet                Suppress output
  -u --username=<username>  Username
  -p --password=<password>  Password (optional, will prompt if omitted)
     --gmail=<gmail>        Gmail
     --gpasswd=<gpasswd>    Gmail password

Announcements

  • As of 2015-08-31, your Snapchat credentials are sent to https://api.casper.io as a work around for an API change.

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.