diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/.DS_Store differ diff --git a/fonts/copse-regular-webfont.eot b/fonts/copse-regular-webfont.eot deleted file mode 100644 index af1f5e6..0000000 Binary files a/fonts/copse-regular-webfont.eot and /dev/null differ diff --git a/fonts/copse-regular-webfont.svg b/fonts/copse-regular-webfont.svg deleted file mode 100644 index 1e920b5..0000000 --- a/fonts/copse-regular-webfont.svg +++ /dev/null @@ -1,247 +0,0 @@ - - - \ No newline at end of file diff --git a/fonts/copse-regular-webfont.ttf b/fonts/copse-regular-webfont.ttf deleted file mode 100644 index 434b208..0000000 Binary files a/fonts/copse-regular-webfont.ttf and /dev/null differ diff --git a/fonts/copse-regular-webfont.woff b/fonts/copse-regular-webfont.woff deleted file mode 100644 index a9a0450..0000000 Binary files a/fonts/copse-regular-webfont.woff and /dev/null differ diff --git a/fonts/quattrocentosans-bold-webfont.eot b/fonts/quattrocentosans-bold-webfont.eot deleted file mode 100644 index c041ed9..0000000 Binary files a/fonts/quattrocentosans-bold-webfont.eot and /dev/null differ diff --git a/fonts/quattrocentosans-bold-webfont.svg b/fonts/quattrocentosans-bold-webfont.svg deleted file mode 100644 index fb162e9..0000000 --- a/fonts/quattrocentosans-bold-webfont.svg +++ /dev/null @@ -1,247 +0,0 @@ - - - \ No newline at end of file diff --git a/fonts/quattrocentosans-bold-webfont.ttf b/fonts/quattrocentosans-bold-webfont.ttf deleted file mode 100644 index 7389c87..0000000 Binary files a/fonts/quattrocentosans-bold-webfont.ttf and /dev/null differ diff --git a/fonts/quattrocentosans-bold-webfont.woff b/fonts/quattrocentosans-bold-webfont.woff deleted file mode 100644 index fc14168..0000000 Binary files a/fonts/quattrocentosans-bold-webfont.woff and /dev/null differ diff --git a/fonts/quattrocentosans-bolditalic-webfont.eot b/fonts/quattrocentosans-bolditalic-webfont.eot deleted file mode 100644 index 7c1aa7a..0000000 Binary files a/fonts/quattrocentosans-bolditalic-webfont.eot and /dev/null differ diff --git a/fonts/quattrocentosans-bolditalic-webfont.svg b/fonts/quattrocentosans-bolditalic-webfont.svg deleted file mode 100644 index 9070a8b..0000000 --- a/fonts/quattrocentosans-bolditalic-webfont.svg +++ /dev/null @@ -1,248 +0,0 @@ - - - \ No newline at end of file diff --git a/fonts/quattrocentosans-bolditalic-webfont.ttf b/fonts/quattrocentosans-bolditalic-webfont.ttf deleted file mode 100644 index 9766a17..0000000 Binary files a/fonts/quattrocentosans-bolditalic-webfont.ttf and /dev/null differ diff --git a/fonts/quattrocentosans-bolditalic-webfont.woff b/fonts/quattrocentosans-bolditalic-webfont.woff deleted file mode 100644 index c436da0..0000000 Binary files a/fonts/quattrocentosans-bolditalic-webfont.woff and /dev/null differ diff --git a/fonts/quattrocentosans-italic-webfont.eot b/fonts/quattrocentosans-italic-webfont.eot deleted file mode 100644 index 379b383..0000000 Binary files a/fonts/quattrocentosans-italic-webfont.eot and /dev/null differ diff --git a/fonts/quattrocentosans-italic-webfont.svg b/fonts/quattrocentosans-italic-webfont.svg deleted file mode 100644 index b613779..0000000 --- a/fonts/quattrocentosans-italic-webfont.svg +++ /dev/null @@ -1,247 +0,0 @@ - - - \ No newline at end of file diff --git a/fonts/quattrocentosans-italic-webfont.ttf b/fonts/quattrocentosans-italic-webfont.ttf deleted file mode 100644 index c7ba47a..0000000 Binary files a/fonts/quattrocentosans-italic-webfont.ttf and /dev/null differ diff --git a/fonts/quattrocentosans-italic-webfont.woff b/fonts/quattrocentosans-italic-webfont.woff deleted file mode 100644 index 3798881..0000000 Binary files a/fonts/quattrocentosans-italic-webfont.woff and /dev/null differ diff --git a/fonts/quattrocentosans-regular-webfont.eot b/fonts/quattrocentosans-regular-webfont.eot deleted file mode 100644 index 346db6f..0000000 Binary files a/fonts/quattrocentosans-regular-webfont.eot and /dev/null differ diff --git a/fonts/quattrocentosans-regular-webfont.svg b/fonts/quattrocentosans-regular-webfont.svg deleted file mode 100644 index 3470924..0000000 --- a/fonts/quattrocentosans-regular-webfont.svg +++ /dev/null @@ -1,247 +0,0 @@ - - - \ No newline at end of file diff --git a/fonts/quattrocentosans-regular-webfont.ttf b/fonts/quattrocentosans-regular-webfont.ttf deleted file mode 100644 index e414670..0000000 Binary files a/fonts/quattrocentosans-regular-webfont.ttf and /dev/null differ diff --git a/fonts/quattrocentosans-regular-webfont.woff b/fonts/quattrocentosans-regular-webfont.woff deleted file mode 100644 index 09ed324..0000000 Binary files a/fonts/quattrocentosans-regular-webfont.woff and /dev/null differ diff --git a/images/background.png b/images/background.png deleted file mode 100644 index b63b420..0000000 Binary files a/images/background.png and /dev/null differ diff --git a/images/body-background.png b/images/body-background.png deleted file mode 100644 index d6a152f..0000000 Binary files a/images/body-background.png and /dev/null differ diff --git a/images/bullet.png b/images/bullet.png deleted file mode 100644 index 2b7dc9a..0000000 Binary files a/images/bullet.png and /dev/null differ diff --git a/images/hr.gif b/images/hr.gif deleted file mode 100644 index a64b56c..0000000 Binary files a/images/hr.gif and /dev/null differ diff --git a/images/octocat-logo.png b/images/octocat-logo.png deleted file mode 100644 index 28a3ad1..0000000 Binary files a/images/octocat-logo.png and /dev/null differ diff --git a/index.html b/index.html index a25381f..6f9c9ad 100644 --- a/index.html +++ b/index.html @@ -1,292 +1,21 @@ -
- - -An actively maintained, pure Python wrapper for the Twitter API. Supports both the normal and streaming Twitter APIs.
-.. image:: https://travis-ci.org/ryanmcgrath/twython.png?branch=master - :target: https://travis-ci.org/ryanmcgrath/twython -.. image:: https://pypip.in/d/twython/badge.png - :target: https://crate.io/packages/twython/ -.. image:: https://coveralls.io/repos/ryanmcgrath/twython/badge.png?branch=master - :target: https://coveralls.io/r/ryanmcgrath/twython?branch=master
- -Twython is the premier Python library providing an easy (and up-to-date) way to access Twitter data. Actively maintained and featuring support for Python 2.6+ and Python 3. It's been battle tested by companies, educational institutions and individuals alike. Try it today!
the docs <https://dev.twitter.com/docs/api/1.1>_Install Twython via pip <http://www.pip-installer.org/>_
.. code-block:: bash
- -$ pip install twython
-
-
-or, with easy_install <http://pypi.python.org/pypi/setuptools>_
.. code-block:: bash
- -$ easy_install twython
-
-
-But, hey... that's up to you <http://www.pip-installer.org/en/latest/other-tools.html#pip-compared-to-easy-install>_.
Or, if you want the code that is currently on GitHub
- -.. code-block:: bash
- -git clone git://github.com/ryanmcgrath/twython.git
-cd twython
-python setup.py install
-
-
-Documentation is available at https://twython.readthedocs.org/en/latest/
- -First, you'll want to head over to https://dev.twitter.com/apps and register an application!
- -After you register, grab your applications Consumer Key and Consumer Secret from the application details tab.
The most common type of authentication is Twitter user authentication using OAuth 1. If you're a web app planning to have users sign up with their Twitter account and interact with their timelines, updating their status, and stuff like that this is the authentication for you!
- -First, you'll want to import Twython
- -.. code-block:: python
- -from twython import Twython
-
-
-Authentication
- -
-Obtain Authorization URL
-^^^^^^^^^^^^^^^^^^^^^^^^
-
-Now, you'll want to create a Twython instance with your ``Consumer Key`` and ``Consumer Secret``
-
- Only pass *callback_url* to *get_authentication_tokens* if your application is a Web Application
-
- Desktop and Mobile Applications **do not** require a callback_url
-
-.. code-block:: python
-
- APP_KEY = 'YOUR_APP_KEY'
- APP_SECET = 'YOUR_APP_SECRET'
-
- twitter = Twython(APP_KEY, APP_SECRET)
-
- auth = twitter.get_authentication_tokens(callback_url='http://mysite.com/callback')
-
-From the ``auth`` variable, save the ``oauth_token`` and ``oauth_token_secret`` for later use (these are not the final auth tokens). In Django or other web frameworks, you might want to store it to a session variable
-
-.. code-block:: python
-
- OAUTH_TOKEN = auth['oauth_token']
- OAUTH_TOKEN_SECRET = auth['oauth_token_secret']
-
-Send the user to the authentication url, you can obtain it by accessing
-
-.. code-block:: python
-
- auth['auth_url']
-
-Handling the Callback
-^^^^^^^^^^^^^^^^^^^^^
-
- If your application is a Desktop or Mobile Application *oauth_verifier* will be the PIN code
-
-After they authorize your application to access some of their account details, they'll be redirected to the callback url you specified in ``get_autentication_tokens``
-
-You'll want to extract the ``oauth_verifier`` from the url.
-
-Django example:
-
-.. code-block:: python
-
- oauth_verifier = request.GET['oauth_verifier']
-
-Now that you have the ``oauth_verifier`` stored to a variable, you'll want to create a new instance of Twython and grab the final user tokens
-
-.. code-block:: python
-
- twitter = Twython(APP_KEY, APP_SECRET,
- OAUTH_TOKEN, OAUTH_TOKEN_SECRET)
-
- final_step = twitter.get_authorized_tokens(oauth_verifier)
-
-Once you have the final user tokens, store them in a database for later use!::
-
- OAUTH_TOKEN = final_step['oauth_token']
- OAUTH_TOKEN_SECERT = final_step['oauth_token_secret']
-
-For OAuth 2 (Application Only, read-only) authentication, see `our documentation <https://twython.readthedocs.org/en/latest/usage/starting_out.html#oauth-2-application-authentication>`_
-
-Dynamic Function Arguments
-
-
-Keyword arguments to functions are mapped to the functions available for each endpoint in the Twitter API docs. Doing this allows us to be incredibly flexible in querying the Twitter API, so changes to the API aren't held up from you using them by this library.
- -Function definitions (i.e. get_home_timeline()) can be found by reading over twython/endpoints.py
- -Create a Twython instance with your application keys and the users OAuth tokens
- -.. code-block:: python
- -from twython import Twython
-twitter = Twython(APP_KEY, APP_SECRET
- OAUTH_TOKEN, OAUTH_TOKEN_SECRET)
-
-
-Authenticated Users Home Timeline
- -
-Documentation: https://dev.twitter.com/docs/api/1.1/get/statuses/home_timeline
-
-.. code-block:: python
-
- twitter.get_home_timeline()
-
-Updating Status
-
-
-This method makes use of dynamic arguments, read more about them <https://twython.readthedocs.org/en/latest/usage/starting_out.html#dynamic-function-arguments>_
Documentation: https://dev.twitter.com/docs/api/1/post/statuses/update
- -.. code-block:: python
- -twitter.update_status(status='See how easy using Twython is!')
-
-
-Searching
- -
- https://dev.twitter.com/docs/api/1.1/get/search/tweets says it takes "q" and "result_type" amongst other arguments
-
-.. code-block:: python
-
- twitter.search(q='twitter')
- twitter.search(q='twitter', result_type='popular')
-
-Advanced Usage
---------------
-
-- `Advanced Twython Usage <https://twython.readthedocs.org/en/latest/usage/advanced_usage.html>`_
-- `Streaming with Twython <https://twython.readthedocs.org/en/latest/usage/streaming_api.html>`_
-
-
-Notes
------
-
-- Twython 3.0.0 has been injected with 1000mgs of pure awesomeness! OAuth 2 application authentication is now supported. And a *whole lot* more! See the `CHANGELOG <https://github.com/ryanmcgrath/twython/blob/master/HISTORY.rst#300-2013-06-18>`_ for more details!
-
-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 ryan@venodesigns.net.
-
-Or if I'm to busy to answer, feel free to ping mikeh@ydekproductions.com as well.
-
-Follow us on Twitter:
-
-- `@ryanmcgrath <https://twitter.com/ryanmcgrath>`_
-- `@mikehelmick <https://twitter.com/mikehelmick>`_
-
-Want to help?
--------------
-
-Twython is useful, but ultimately only as useful as the people using it (say that ten times fast!). If you'd like to help, write example code, contribute patches, document things on the wiki, tweet about it. Your help is always appreciated!
-
-