How to reply to particular tweet using Twitter API?

How can I get a stream of tweets from Twitter containing a particular hashtag using the Twitter API?

Sylvain Carle at Quora Visit the source

Was this solution helpful to you?

Other answers

You can use either the Twitter search REST API or streaming API.

Adam Loving

Why bother, just use the RSS feed. Replace "mymagapp" with the desired hashtag: (see image) as quora converted the text to an actual search when I entered the text.

Jeff Ski Kinsey

In addition to the tweet text, I wanted meta - data for each tweet (for example, the location from which the user has tweeted, time and so on...). I found https://github.com/tweepy/tweepy.git" Python package very useful for this task. It gets tweets and the metadata in JSON format which is being distributed by the Twitter API which can be post processed using the JSON parser in Python. Thanks everyone for answering.

Satheeshkumar Karuppusamy

Can we get tweets for last 4 months... suppose I am pulling tweets in April.. is there any way to get all the tweets since 1st Jan to 1st april ?? I tried using below command but I am not getting tweets since Jan..  tweets <- searchTwitter("India",n=10000, since="2015-01-01", lang="en")

Nitin Agarwal

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.