Tagged Questions
0
votes
0answers
17 views
OutOfRange Index while parsing Tweets in JSON
I have made a simple application, which uses the Twitter Search API and looks for tweets based on topic name and stores the texts in a text file. I am getting 100 tweets per page but sometimes I am ...
1
vote
1answer
19 views
how to get the lastest user status using tweepy
I am trying to use tweepy to get the most recent user status
My code is
api = tweepy.API(auth)
for status in tweepy.Cursor(api.user_timeline).items():
lastid = status.id
laststatus = ...
1
vote
1answer
23 views
unable to load json library while installing twitter api module
im trying to work with the twitter api with python3.3 in windows
while I try to install using
python setup.py install
I get this error:
raise ImportError, "Unable to load a json library"
to ...
0
votes
0answers
37 views
Python Tweepy: Twitter Api saying that /users/lookup does not exist
I'm making a research application which studies interactions between twitter users with high authority. Part of it is extracting information about the users. I built an application using Tweepy for ...
-4
votes
1answer
25 views
KeyErrorr:'to_user_name [closed]
Has anyone come across the ['KeyErrorr:'to_user_name''] as in below:
Traceback (most recent call last):
File "finalised1.py", line 53, in <module>
touser = tweet['to_user_name']
KeyError: ...
-2
votes
0answers
34 views
A preferable twitter lib for real time tweets in python? [closed]
To fetch real time public feed from twitter what should I do?
I know there is streaming API but I don't know how to use it with python(2.7). I tried to use python-twitter library, but it contains old ...
1
vote
1answer
96 views
Let's Talk about Celery and Recursion and Talking to the Twitter API, shall we?
I'm working with Django 1.4 and Celery 3.0 (rabbitmq) to build an assemblage of tasks for sourcing and caching queries to Twitter API 1.1. One thing I am trying to implement is chain of tasks, the ...
0
votes
0answers
98 views
Unable to get data using Python-Twitter API
I am trying to use python twitter api (https://github.com/bear/python-twitter) to extract data from twitter. But all my calls are getting error
import twitter
api = twitter.Api()
api = ...
0
votes
1answer
27 views
Twitter API cursoring in Python
A python beginner here, trying to get Twitter cursoring working in my script so I might iterate all of the users that belong to a list on Twitter. Pretty simple logic here. Start with this API ...
0
votes
0answers
44 views
How to display entities in tweet
In order to lower the number of calls to Twitter API we are caching some tweets on the server and displaying them directly from there. The problem is that when we display them the entities - link, ...
0
votes
0answers
156 views
Python Why can't I send a Tweet?
I am trying to send automated Tweets using python.
I have tried two different packages python-twitter and tweepy but have not been successful using either package. Those solutions are discussed here:
...
0
votes
0answers
47 views
Getting 404 response with Twitter Tools
I'm using the latest version of Twitter Tools by sixohsix on Python 3. I can post tweets with no problem, so am assuming the authentication is all working fine. By when I try to retrieve tweets using ...
1
vote
0answers
101 views
Search twitter feeds with Tweepy
Thanks to @Nirvana Tikku, he solved my question on how to talk with Tweepy and perform simple search in this Question. The below are a series of code summary on how i authenticate my tweepy on GAE.
...
1
vote
1answer
189 views
Twitter Streaming API with GAE Python
Recently i keep on trying with differences methods on how to consume Twitter Streaming API. The purpose i need so is not the oath but i need to perform keyword search and get the public tweets and its ...
3
votes
1answer
92 views
Unknown error in sixohsix's Twitter API for Python
I have a small script that repeatedly (hourly) fetches tweets from the API, using sixohsix's
Twitter Wrapper for Python. I am successful with handling most, if not all of the errors coming from the ...
2
votes
2answers
106 views
Connection refused to Twitter API on PythonAnywhere
I am trying to connect to the twitter streaming API on Python anywhere, but always get a connection refused error.
I use Tweepy in my application, and to test the connection I am using the streaming ...
1
vote
1answer
66 views
Single-user OAuth error with api v1.1
I'm having trouble authenticating with the Twitter api. I'm using the oauth2 module in Python to conduct a single user sign-in.
I've been using the following function to request follower ids:
...
3
votes
0answers
66 views
get_rate_status “remaining hits” does not decrease when I make GET calls anymore
I have a script written to iterate through a list of Twitter userIDs and save the lists of follower_ids to a file. I have used it several times with no problems. For long lists, I have added this ...
1
vote
1answer
73 views
Python extract top user name from json
I'm trying to get a sorted list or table of users from a loaded dict. I was able to print them as below but I couldn't figure out how to sort them in descending order according to the number of tweets ...
0
votes
0answers
94 views
Tweepy tracking terms and following users
I'm trying to build an app to track some terms from specifics users using the streaming twitter API.
I made a working python script using tweepy for the streaming api based on this tutorial. But, ...
0
votes
1answer
113 views
Tweepy OAuth - HTTP Error 404: Not Found
I'm using the Tweepy library to implement 'Signin with Twitter' on my website.
As shown in the Tweepy examples, I'm doing:
def get(self):
callback_url = ...
0
votes
2answers
70 views
How to encode this character in python
I got this (ÜT:) character result from location in twitter using twitter-api.
i dont know how to encode this character to remove it from the result.
example of the string ==> "ÜT: ...
1
vote
2answers
83 views
corpus from twitter
I am new in twitter use as a developer. I saw that someone can download dataset using the ids of tweets. However the twitter API has a limit for download.
Is there any faster way to do this?
1
vote
0answers
170 views
Twitter API getting follower ids for huge number, without getting error
[I am using Python, and ruby gem twurl to request with OAuth.]
I am trying to get follower ids from Twitter, for @BarackObama, who has 24,265,751 followers currently.
Mathematically, 24,265,751 ...
0
votes
2answers
51 views
Is there an unofficial API for creating Twitter applications/api keys?
I need a way to programmatically create Twitter Applications/API keys. I could make something on my own, but does anyone know of a pre-made solution?
0
votes
1answer
137 views
What is the alternative for the python-twitter app which works with Twitter API 1.1 ? [closed]
In my project i want to access public timeline of twitter users using the oauth token which i have already stored in database. i tried using python-twitter app but it has some issues with Twitter api ...
0
votes
1answer
93 views
Parsing multi-dimensional json with Python issues
I'm working w/the twitter search API and using python to parse the data coming back. I'm a python-noob, so my error is probably my lack of understanding, though I'm stuck.
My response looks like ...
1
vote
0answers
155 views
Tweepy: [Errno 8] nodename nor servname provided, or not known
I'm using Tweepy to download tweets from ~27,000 users. I ran the script 3 days ago, and it ran for many hours without a problem. I stopped running it for 2 days and then when I went to go restart it, ...
0
votes
2answers
56 views
Using Python regex to filter tweets
I'm trying to create a query that filters tweets by the @ or # tags.
So I just want the results for either @Obama or #Obama but not Obama. This is what I have so far:
re.compile(r'\b(?:#|@|)*%s*\b' ...
0
votes
1answer
95 views
Avoid 420s with Streaming API?
I have a python script that hooks into the Twitter Streaming API using basic authentication and making use of the tweetstream module.
Im gathering around 10 tweets a minute.
I was getting ...
0
votes
1answer
117 views
Pattern matching Twitter Streaming API
I'm trying to insert into a dictionary certain values from the Streaming API. One of these is the value of the term that is used in the filter method using track=keyword. I've written some code but on ...
0
votes
1answer
48 views
Extracting data from a mongo collection
I'm collecting real-time tweets and storing into a collection I now want to extract the information from a record in the collection:
"place" : { "country_code" : "US", "url" : ...
1
vote
1answer
93 views
Restrict only geotagged tweets to flow through to mongodb
I am currently making use of Tweetstream to store tweets in MongoDB.
I have setup a script that im running with python 2.7:
extent =["144.715, -38.03", "145.219, -37.541"]
with ...
0
votes
0answers
100 views
Twitter Stream API - Filter Containing special chars throws error
Using Python's tweetstream module I'd like to filter tweets by happy and sad text emoticons. For some reason filtering tweets with a happy face :) throws an error KeyError: 'text'. However, filtering ...
2
votes
2answers
106 views
Which Twitter wrapper libs support Python 3.x?
I'd like to add support for Twitter in a project built with Python 3.2, but I can't figure out which libraries support it.
I've done a bit of googling and I cannot come up with a clear answer; the ...
1
vote
2answers
259 views
Python script that gets my latest tweet stopped working on my server
Consider the following code:
import twitter
api = twitter.Api()
most_recent_status = api.GetUserTimeline('nemesisdesign')[0].text
On my server (nemesisdesign.net) stopped working a few days ago.
...
1
vote
1answer
284 views
Get user id from user name for twitter using python
I am trying to get the user ID for a twitter user using a python
import twitter
twitter_api = twitter.Twitter(domain='api.twitter.com', api_version='1',auth = twitter.oauth.OAuth(ACCESS_KEY, ...
0
votes
1answer
92 views
Searching Twitter and storing results and replies in MySQL
I have the following code to retrieve pages of tweets containing "SNL":
import twitter
import json
twitter_search = twitter.Twitter(domain="search.twitter.com")
for page in range(11,50):
...
0
votes
0answers
119 views
Tweepy with Pyhton collecting data from twitter for spam detection [closed]
I am currently working twitter spam detection. For some experiments I need to collect large twitter data. For this I am using tweepy python combo. I went through OAuth tutorial and got succeeded. Now ...
0
votes
2answers
142 views
How do I restart the ioloop in tornado when fetching twitter stream api?
I'm using TweetStream (https://github.com/joshmarshall/TweetStream), a tornado based twitter streaming module to monitor the stream api.
I would like to know how can I restart the fetch process if ...
0
votes
1answer
156 views
Python - Socket Timeout reason? Network connection loss or nothing to read?
Basically: Is there a way to tell (Python 2.7) when a socket times out if it is because nothing has been delivered to the socket or because the network connection is down?
I have a Python application ...
0
votes
1answer
222 views
“Forbidden” when getting Direct Messages with twython
twitter = twython.Twython(oauth_token = oauth_token,
oauth_token_secret = oauth_secret,
app_key = oauth_consumer_key,
...
0
votes
0answers
134 views
Does Twitter REST API 1.1 provide a user's profile information without authentication?
I was trying to make a script that would search twitter for something and parse the results to list the users. When I tried to obtain the profile information of these users, I came to know that it ...
0
votes
1answer
58 views
issues diffing JSON (twitter API)
I'm working on a fairly simple script that monitors and archive's a given users tweets -- right now, my configuration requests an account's 20 most recent tweets (API limit) every five minutes, then ...
0
votes
1answer
45 views
Result duplication while crawling Twitter
while(page<=500):
tweets=api.GetSearch("#Burma",per_page=100)
Why it gives me so much duplicated result . It give me just one page and repeat it 500 times. It gives me the same tweets as of ...
0
votes
1answer
32 views
Error on getting data from twitter
import twitter
api=twitter.Api()
page=1
count=0
while(page<=2):
tweets=api.GetSearch("#ghaza",per_page=200)
twitterapi.until:2011-05-09
for k in tweets:
print k.text
...
0
votes
0answers
882 views
python rauth / requests / openssl cannot get api.twitter
I am attempting to use rauth to do oauth with twitter, but it seems to be failing with the following error:
requests.exceptions.SSLError: [Errno 1] _ssl.c:504: error:140770FC:SSL ...
0
votes
1answer
129 views
tweepy error.. Method doesn't exist
I need to run the twitter api call for friendship lookup. The details of the call are here:
https://dev.twitter.com/docs/api/1.1/get/friendships/lookup
I am using tweepy to do this in python, ...
0
votes
0answers
181 views
Twython (Python) update_with_media request to Twitter API
I've been using Twython (https://github.com/ryanmcgrath/twython) to tweet photos, description and a link. So on Twitter it is displayed as "...description... ...link... ...pic.twitter.com/XXX..."
The ...
0
votes
1answer
49 views
tweepy unbound method_call error
i'm trying to use tweepy for a simple request to get information about a particular user screen name. I did this:
import tweepy
api = tweepy.API
api.get_user('name')
I get the error:
unbound ...