Questions tagged [tweets]

Tweets are text-based posts of up to 280 characters, created by users of Twitter, a social networking and microblogging service.

Tweets are text-based posts of up to 280 characters, created by users of Twitter, a social networking and microblogging service. Use this tag when your question is specifically about handling tweets. See also .

700 questions
-1
votes
1 answer

Twitter or Facebook Like Live Status Updates On User Interface

Hi fellow programmers, I am using Twitter Streaming API to search for tweets containing specific keywords. My requirement is to build a user interface which will show the tweets to the user of my system just like Twitter i.e. in real time. As soon…
Sam ツ
  • 583
  • 2
  • 7
  • 17
-1
votes
1 answer

How to make the Twitter API returns me over 800 tweets

How to make the Twitter API (home_timeline) returns me over 800 tweets? For example applications like tweetbot how do it to have more updates in the 3000 home timeline? I think that using a cache system but which one?
victor bill
  • 209
  • 2
  • 15
-1
votes
1 answer

while reading lines from file, java program is reading one single line into two different lines in some cases

I need to read lots of text files to develop my project. Each file contains tweets and retweets of a person. I wrote simple java code to do that. I also tried to read the files using c code. it is showing same problems as well The program can read…
-1
votes
1 answer

Give structure to tweets in JSON format

I have the following code, which displays tweets in JSON format to an HTML page. I would like to display these tweets in a more presentable manner. Could anyone provide me with any…
user2675041
  • 115
  • 1
  • 5
  • 15
-1
votes
1 answer

How to use twitter API with date parameters?

We're building an app that analyzes twitter feed using streaming api. But it will only start analyzing after app starts. We need to download historical twitter data using API to initialize our system. As per documentation twitter API only has until…
Sunil
  • 139
  • 1
  • 2
  • 8
-1
votes
1 answer

Read Json file and Split the Tweet message

public class Tweets { private String Name; private String Username; private String Time; private long Followers; private long Following; private int Location; private String Tweet; private double longitude; …
-1
votes
2 answers

Tweets in Python

def twitter_search(twitter_api,q,max_results=200,**kw): search_results = twitter_api.search.tweets(q=q,count=100,**kw) statuses = search_results['statuses'] max_results=min(1000,max_results) for _ in range(10): try: …
-1
votes
1 answer

Writing to files faster in Python

I have been mining tweets. The main problem I have been facing is - I have to encode the tweets to UTF-8 and then write them to a file. My current method: def on_data(self,data): f=open('new','w') dict1=json.loads(data) …
-1
votes
1 answer

TWYTHON . Getting user name from tweets. Generating friends list from username

I am trying to mine data in a local area. First I would like to Twython to search all tweets on twitter to find those tweets that contain a particular keyword, and then print those tweets. I have successfully written the few lines of code that do…
-1
votes
2 answers

How to recover tweet feed

I used this url to recover the tweet feed: http://api.twitter.com/1/statuses/user_timeline/XXXX.json?callback=twitterCallback2&count=10 but I have this error: {"errors": [{"message": "The Twitter REST API v1 is no longer active. Please migrate to…
Kory
  • 1
-1
votes
1 answer

How to open links of a tweet in a new tab / new window?

Dear stackoverflowers, I am displaying the latest tweet on my website. However, when I have a tweet that contains a link, it opens the link the same window. My best guess would be to add the target-value to the . But how can I do that? Is there a…
-1
votes
1 answer

How extract the data from a list?

I'm developing an Android application and I want to recognize hashtags, mentions and links. I have a code that can be usable in objective-c that do my propose. I question these and now I have these code: import java.net.URL; import…
Gabriel Esteban
  • 752
  • 2
  • 9
  • 34
-2
votes
3 answers

How to use all the numbers in a range of a for loop in python?

I am trying to print the location of a set of tweets. It is a list with ten dictionaries. I want the location of all ten to be displayed. When I use range it takes just one value. tweets is the list with ten dictionaries. statuses is the key and…
S B
  • 1
  • 2
-2
votes
1 answer

list index out of range CSV for twitter

I'm trying to create a data structure for each tweet and I have troubles with the following code: with open('tweets.csv', 'rb') as csvfile: reader = csv.reader('tweets.csv', delimiter=',') next(reader) for row in reader: …
Banker
  • 63
  • 1
  • 6
-2
votes
1 answer

Retrieve all tweets ever posted

Is there a chance I can get ALL the tweets ever posted on Twitter (I want to extract only those that contain a specific keyword)? I tried a lot of codes. For example this one…
Mr. Wizard
  • 1,093
  • 1
  • 12
  • 19
1 2 3
46
47