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
0
votes
1 answer

Twitter (python-twitter) package is failing

I have installed Python 2.7 and trying to use Twitter package. I have installed the 3 pre-requisite packages successfully... I have got the consumer keys and access tokens...But somehow getting this error: >>> import twitter >>> api =…
user2607677
  • 240
  • 1
  • 3
  • 13
0
votes
1 answer

Getting an error with Twitter Package in Python2.7

I have installed Python 2.7 and trying to use Twitter package. I have installed the 3 pre-requisite packages successfully... But somehow getting this error: >>> import twitter >>> api = twitter.Api() Traceback (most recent call last): File…
user2607677
  • 240
  • 1
  • 3
  • 13
0
votes
0 answers

Python-Twitter module -finding .pyc instead of py

I'm using Django and when pushing to Heroku I'm finding the 'module' object has no attribute 'Api' error. I'm aware of the error - the twitter.__file__ points to the twitter.pyc instead of the twitter.py. When the .pyc doesn't exist the .py is found…
0
votes
1 answer

python-twitter program only runs in shell

I am new to the Twitter API and python-twitter. I am trying to run the simple program below: import twitter api = twitter.Api() user = 'GoldmanSachs' statuses = api.GetUserTimeline(screen_name=user) for s in statuses: print s When I run the…
snown
  • 65
  • 1
  • 6
0
votes
2 answers

python twitter 404

I'm trying to use twitter-python to connect to twitter's API, and I keep getting this pesky 404 error! Code is below: import sys import twitter def main(): api = twitter.Api() statuses = api.GetPublicTimeline() print [s.user.name for s in…
0
votes
3 answers

(recent) Python Wrapper for Twitter API

I'm looking for a python wrapper for current Twitter API just to perform simple searches, but the wrappers I've tried (twython, python-twitter, etc.) are all outdated, and cannot perform search with under current Twitter. Is there a python wrapper…
CosmicRabbitMediaInc
  • 1,165
  • 4
  • 21
  • 32
0
votes
1 answer

Twitter API - how to have a user log in via Twitter to submit text to a database

I'm building a simple web app for New Year's Eve. I'm using Django and have an SQLite3 database set up. The idea behind the web app is that someone submits a piece of text (finishing off a sentence on the homepage) using their Twitter username so…
Jess
  • 1,749
  • 4
  • 16
  • 17
0
votes
1 answer

What is the alternative for the python-twitter app which works with Twitter API 1.1 ?

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 1.1. the following is the issue i was facing with…
Satya Teja
  • 616
  • 6
  • 18
0
votes
3 answers

Generate nested dictionary with list and dict comprehensions

I'm trying to create a nested dictionary with the following format: {person1: {tweet1 that person1 wrote: times that tweet was retweeted}, {tweet2 that person1 wrote: times that tweet was retweeted}, person2: {tweet1 that…
mac389
  • 3,004
  • 5
  • 38
  • 62
0
votes
2 answers

Python-twitter - unexpected keyword argument 'access_token_key'

#!/usr/bin/python # -*- coding: iso-8859-15 -*- import twitter class twitt(): def __init__(self): consumer_key = '...' consumer_secret = '...' access_key = '...' access_secret = '...' encoding =…
Torxed
  • 22,866
  • 14
  • 82
  • 131
0
votes
1 answer

Can not get tweets about subject

I am trying to get tweets about 'GHAZA' , I try to get public discussion of "GHAZA" on twitter , how much people tweets about it and what they said. My code run but It return strange result. >>> tweets=api.GetSearch("Ghaza",per_page=100,page=1) >>>…
user1626276
0
votes
2 answers

Python Twitter Not Registering in Eclipse

I am trying to import python-twitter on Eclipse with Python 2.7.3 and PyDev 2.5 I downloaded it as follows. pip install twitter Eclipse doesn't recognize it, instead saying: Traceback (most recent call last): File…
Jen Luk
  • 3
  • 3
-1
votes
1 answer

Finding and replacing keywords in an email file - Python

I am trying to write a program in Python to automatically populate an email with the name and email of the user using Twitter. This is the definition I am trying to use to find and replace the keywords ('$NAME', '$EMAIL', etc.) def modifyEmail(): …
admrply
  • 159
  • 3
  • 16
-2
votes
2 answers

How to get all the tweets from the specific trend in twitter from tweepy

I have a requirement to get all the tweets from the specific trend in twitter. Ex: api.get_all_tweets(trend="ABCD") How can I achieve this with tweepy?
Arunkumar
  • 19
  • 2
-3
votes
1 answer

Python twitter bot issue

Trying to run this twitter python bot. It just basicly needs to setup the tokens (already seted) and hashtag to search and favorite. I'm newbie into coding so i really dunno where i'm going here. Just cloned this code from github and trying to run…
fortes
  • 7
  • 1
1 2 3
10
11