Giter Site home page Giter Site logo

saahil / twython Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ryanmcgrath/twython

1.0 3.0 1.0 467 KB

An up to date, pure Python wrapper for the Twitter API. Supports Twitter's main API, Twitter's search API, and (soon) using OAuth with Twitter/Streaming API.

Home Page: http://groups.google.com/group/twython-talk

License: MIT License

twython's Introduction

Twython - Easy Twitter utilities in Python

I wrote Twython because I found that other Python Twitter libraries weren't that up to date. Certain things like the Search API, OAuth, etc, don't seem to be fully covered. This is my attempt at a library that offers more coverage.

This is my first library I've ever written in Python, so there could be some stuff in here that'll make a seasoned Python vet scratch his head, or possibly call me insane. It's open source, though, and I'm open to anything that'll improve the library as a whole.

OAuth support is in the works, but every other part of the Twitter API should be covered. Twython handles both Basic (HTTP) Authentication and OAuth. Older versions of Twython need Basic Auth specified - to override this, specify 'authtype="Basic"' in your twython.setup() call.

Twython has Docstrings if you want function-by-function plays; otherwise, check the Twython Wiki or Twitter's API Wiki (Twython calls mirror most of the methods listed there).

Requirements

Twython requires (much like Python-Twitter, because they had the right idea :D) a library called "simplejson". You can grab it at the following link:

http://pypi.python.org/pypi/simplejson

Example Use

import twython

twitter = twython.setup(authtype="Basic", username="example", password="example") twitter.updateStatus("See how easy this was?")

Twython 3k

There's an experimental version of Twython that's made for Python 3k. This is currently not guaranteed to work, but it's provided so that others can grab it and hack on it. If you choose to try it out, be aware of this.

Questions, Comments, etc?

My hope is that Twython is so simple that you'd never have to ask any questions, but if you feel the need to contact me for this (or other) reasons, you can hit me up at [email protected].

Twython is released under an MIT License - see the LICENSE file for more information.

twython's People

Contributors

jennylin avatar

Stargazers

Saahil Ognawala avatar

Watchers

Saahil Ognawala avatar James Cloos avatar  avatar

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.