Questions tagged [python-twitter]

A Python wrapper around the Twitter API

This library provides a pure Python interface for the Twitter API.

Twitter provides a service that allows people to connect via the web, IM, and SMS. Twitter exposes a web services API and this library is intended to make it even easier for Python programmers to use.

151 questions
34
votes
6 answers

How do I extend a python module? Adding new functionality to the `python-twitter` package

What are the best practices for extending an existing Python module – in this case, I want to extend the python-twitter package by adding new methods to the base API class. I've looked at tweepy, and I like that as well; I just find python-twitter…
user319045
  • 665
  • 3
  • 7
  • 12
27
votes
3 answers

Installing package not found in conda

I'm using python 3.6 as anaconda, and im trying to install python-twitter package, but there is no package compatible from conda manager. How can i download the package outside conda manager in order to use it later with jupyter notebook?
Alex T
  • 3,529
  • 12
  • 56
  • 105
8
votes
2 answers

python-twitter exception handling

Im trying to handle errors with Python-Twitter, for example: when I do the below passing a Twitter account that returns a 404 I get the following response... import twitter # API connection api = twitter.Api(consumer_key='...', …
user5674825
7
votes
1 answer

What is the best Python-Wrapper for the Twitter API 1.1?

I've recently read the book "21 Recipes for Mining Twitter", and there they use the python-twitter - Wrapper by sixohsix. It seems to me that this library is a bit outdated, since it still has a distinction between the Search API and the REST API.…
grssnbchr
  • 2,877
  • 7
  • 37
  • 71
7
votes
1 answer

Django: Full fledge Facebook and Twitter integration (Django-Facebook, django-social-auth, django-allauth)

Before I post my question I would like to tell you that I'm aware of few excellent django packages out there for twitter and facebook integration: Django-Facebook django-social-auth django-allauth So, here's my question: What I want? I want…
5
votes
3 answers

How to Collect Tweets More Quickly Using Twitter API in Python?

For a research project, I am collecting tweets using Python-Twitter. However, when running our program nonstop on a single computer for a week we manage to collect about only 20 MB of data per week. I am only running this program on one machine so…
Chris W
  • 51
  • 1
  • 2
4
votes
2 answers

Password Change with the Twitter API

Is there a way to change your twitter password via the python-twitter API or the twitter API in general? I have looked around but can't seem to find this information...
Dan
  • 2,647
  • 2
  • 27
  • 37
4
votes
1 answer

really simple pip python-twitter issue; can't import twitter

I don't know what I'm doing wrong here: Sun Oct 14$ pip install python-twitter Requirement already satisfied (use --upgrade to upgrade): python-twitter in /Library/Python/2.7/site-packages Requirement already satisfied (use --upgrade to upgrade):…
timpone
  • 19,235
  • 36
  • 121
  • 211
4
votes
1 answer

Twython updateStatus - Unauthorized: Invalid / expired Token

I'm trying to post a tweet using Twython from Django-powered site. However, the 'twitter.updateStatus(status=tweet_text)' line results in the following error: TwythonError: u'Unauthorized: Authentication credentials were missing or incorrect. --…
Arman
  • 1,074
  • 3
  • 20
  • 40
3
votes
2 answers

How do I proper use GetStreamFilter from Python-Twitter library?

I've been having some troubles using the GetStreamFilter function from the Python-Twitter library. I have used this code: import twitter import time consumer_key = 'myConsumerKey' consumer_secret = 'myConsumerSecret' access_token =…
tomasyany
  • 1,132
  • 3
  • 15
  • 32
3
votes
1 answer

Python-twitter api.VerifyCredentials() returns none

I am using python-twitter api and i got consumer_key, consumer_secret, access_token_key, access_token_secret but when i try code below i got this output {} for print api.VerifyCredentials() and i got none for print status.text import twitter api =…
Burk
  • 2,969
  • 1
  • 23
  • 24
3
votes
1 answer

Issue using python-twitter

I'm using the python-twitter API and whatever I pass to the below code as user, still returns my timeline and not the required user's. Is there something I'm doing wrong? import twitter api = twitter.Api(consumer_key=CONSUMER_KEY, …
Anil
  • 2,430
  • 3
  • 37
  • 55
3
votes
1 answer

Python Twitter search.tweets with until

I am using Python Twitter search api from https://github.com/sixohsix/twitter When I try to search for a query using the "until" parameter, the search does not return anything from twitter import * t = Twitter(auth=OAuth(....)) t.search.tweets(q =…
Mohamed Aly
  • 81
  • 1
  • 3
  • 8
2
votes
2 answers

Python Twitter library: cannot import it

I'm trying this presumably basic thing of importing Python Twitter library. First I got an error in line 52, saying he couldn't upload a json library. That line of code is part of script where the library decides which json library it should import…
SebasMM
  • 21
  • 3
2
votes
0 answers

next_token searchtweets API Twitter

I'm trying to use searchtweets (full archive sandbox API Twitter ) to retrive old tweets but I've problem with the next_token. After doing a first request and getting the next_token (rs.rs.next_token), I'm trying to use it in a second query but I…
lorenzlorg
  • 125
  • 7
1
2 3
10 11