Alright, now import twython works as it should.
This commit is contained in:
parent
adab94b240
commit
c62c41a45e
12 changed files with 9 additions and 10 deletions
|
|
@ -1 +1 @@
|
|||
import twython2k as twython
|
||||
import twython as twython
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ from urlparse import urlparse
|
|||
from urllib2 import HTTPError
|
||||
|
||||
__author__ = "Ryan McGrath <ryan@venodesigns.net>"
|
||||
__version__ = "0.5"
|
||||
__version__ = "0.6"
|
||||
|
||||
"""Twython - Easy Twitter utilities in Python"""
|
||||
|
||||
|
|
@ -60,7 +60,6 @@ class setup:
|
|||
self.access_token_url = 'https://twitter.com/oauth/access_token'
|
||||
self.authorization_url = 'http://twitter.com/oauth/authorize'
|
||||
self.signin_url = 'http://twitter.com/oauth/authenticate'
|
||||
self.signature_method = oauth.OAuthSignatureMethod_HMAC_SHA1()
|
||||
self.consumer_key = consumer_key
|
||||
self.consumer_secret = consumer_secret
|
||||
self.request_token = None
|
||||
|
|
@ -81,6 +80,7 @@ class setup:
|
|||
except HTTPError, e:
|
||||
raise TangoError("Authentication failed with your provided credentials. Try again? (%s failure)" % `e.code`, e.code)
|
||||
else:
|
||||
self.signature_method = oauth.OAuthSignatureMethod_HMAC_SHA1()
|
||||
# Awesome OAuth authentication ritual
|
||||
if consumer_secret is not None and consumer_key is not None:
|
||||
#req = oauth.OAuthRequest.from_consumer_and_token
|
||||
|
|
|
|||
BIN
dist/twython-0.5-py2.5.egg
vendored
BIN
dist/twython-0.5-py2.5.egg
vendored
Binary file not shown.
BIN
dist/twython-0.6-py2.5.egg
vendored
Normal file
BIN
dist/twython-0.6-py2.5.egg
vendored
Normal file
Binary file not shown.
BIN
dist/twython-0.6.tar.gz
vendored
Normal file
BIN
dist/twython-0.6.tar.gz
vendored
Normal file
Binary file not shown.
BIN
dist/twython-0.6.win32.exe
vendored
Normal file
BIN
dist/twython-0.6.win32.exe
vendored
Normal file
Binary file not shown.
4
setup.py
4
setup.py
|
|
@ -3,7 +3,7 @@
|
|||
import sys, os
|
||||
|
||||
__author__ = 'Ryan McGrath <ryan@venodesigns.net>'
|
||||
__version__ = '0.5'
|
||||
__version__ = '0.6'
|
||||
|
||||
# For the love of god, use Pip to install this.
|
||||
|
||||
|
|
@ -11,7 +11,7 @@ __version__ = '0.5'
|
|||
METADATA = dict(
|
||||
name = "twython",
|
||||
version = __version__,
|
||||
py_modules = ['twython2k'],
|
||||
py_modules = ['twython'],
|
||||
author='Ryan McGrath',
|
||||
author_email='ryan@venodesigns.net',
|
||||
description='A new and easy way to access Twitter data with Python.',
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
Metadata-Version: 1.0
|
||||
Name: twython
|
||||
Version: 0.5
|
||||
Version: 0.6
|
||||
Summary: A new and easy way to access Twitter data with Python.
|
||||
Home-page: http://github.com/ryanmcgrath/twython/tree/master
|
||||
Author: Ryan McGrath
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
README
|
||||
setup.py
|
||||
twython.py
|
||||
twython2k.py
|
||||
twython.egg-info/PKG-INFO
|
||||
twython.egg-info/SOURCES.txt
|
||||
twython.egg-info/dependency_links.txt
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
twython2k
|
||||
twython
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ from urlparse import urlparse
|
|||
from urllib2 import HTTPError
|
||||
|
||||
__author__ = "Ryan McGrath <ryan@venodesigns.net>"
|
||||
__version__ = "0.5"
|
||||
__version__ = "0.6"
|
||||
|
||||
"""Twython - Easy Twitter utilities in Python"""
|
||||
|
||||
|
|
@ -15,7 +15,7 @@ import http.client, urllib, urllib.request, urllib.error, urllib.parse, mimetype
|
|||
from urllib.error import HTTPError
|
||||
|
||||
__author__ = "Ryan McGrath <ryan@venodesigns.net>"
|
||||
__version__ = "0.5"
|
||||
__version__ = "0.6"
|
||||
|
||||
try:
|
||||
import simplejson
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue