Tagged Questions
0
votes
0answers
11 views
OAuth2 & httplib2 Error for GET Tweets
I am trying to fetch tweets from the search api and not able to proceed as I am not sure what the problem is.
Code.
import httplib2
import oauth2 as oauth
import time
import certifi
...
-2
votes
1answer
38 views
Python twitter oAuth without module
How can I proceed to simply oAuth to twitter without any python module specific for twitter? I mean, I will need https module and so, but I don't want to use a twitter module. I wanna do it my way. ...
0
votes
0answers
32 views
Twitter REST API v1.1 - searching by date?
Is there a way to use Twitter's API 1.1 to conduct a search for all posts with a particular query on a particular day or for the last week?
Should any python module that complies with the API be ...
0
votes
1answer
81 views
Twitter Search Query in Python
I am trying to pull tweets matching the given search query. I'm using the following code :
import urllib2 as urllib
import json
response = ...
0
votes
0answers
290 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
2answers
189 views
Twitter API/Twython - show user to get user profile image
How to get user profile image using Twython?
I see show_user() method, but instantiating Twython with api key and secret + oauth token and secret, and calling this method returns 404:
TwythonError: ...
0
votes
1answer
38 views
using twitter api from python to post messages
diveintopython3 tells how you can post a message to identi.ca
>>> from urllib.parse import urlencode
>>> import httplib2
>>> httplib2.debuglevel = 1
>>> h = ...
0
votes
1answer
38 views
api_limit_status().remaininghits key ERROR ; Script Not Working; Cannot fetch friends
#!/usr/bin/env python # encoding: utf-8
import tweepy
import networkx
from networkx import core
import time
import sys
import json
import codecs
import os
consumer_key=""
consumer_secret=""
...
3
votes
1answer
886 views
What is the best Python-Wrapper for the Twitter API 1.1? [closed]
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 ...
1
vote
1answer
143 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:
...
0
votes
1answer
73 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 ...
2
votes
1answer
418 views
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 *
...
1
vote
1answer
112 views
Python twitter library for public api
i am looking for a python library that works with twitter api v1.1 .I want to extract public tweets. But the public timeline method has been deprecated in the newer version, so this does not work in ...
2
votes
2answers
199 views
Issuing application-only requests in Twitter 1.1 using Python
I want to access Twitter 1.1 search endpoint using application-only authentication. To do the same, I'm trying to implement the steps given on Twitter API's documentation here - ...
0
votes
1answer
73 views
Understanding tornado coroutine decorator + twitter authentication
I am new to Tornado and trying to get simple OAuth twitter authentication working. As per the documention, I need to set up an authentication handler as follows:
class TwitterAuthHandler(BaseHandler, ...