How can I use twitter API in Python? I want to develop a web based application from scratch which uses twitter API.
-
The application will fetch tweets and followers and following people from twitter account. Twitter uses OAuth 2.0, right? How can I fetch the tweets from Twitter using Twitter API with OAuth and how can I develop an application using Python? Do I have to use Python with CGI or else any other suggestions?
-
Answer:
You can use (https://dev.twitter.com/docs/twitter-libraries#python) a library of python from the following libraries, it will included the api for OAuth as well. Here is also an example of using tweetpy for OAuth(https://github.com/tweepy/examples/blob/master/oauth/getaccesstoken.py ).
Gaurav Singh Chauhan at Quora Visit the source
Other answers
You can use tweepy or python twitter to connect and get your data from twitter . I use python-twitter . After that you can use python packages like NLTK if your app will have any kind of text classification. For prototype maybe you can store data in MySQL or any database you are comfortable with . To create web based application I would recommend to use Django as you are doing everything in python . For any graphical thing you can use hichart or D3 .
Pankaj Jha
https://github.com/bear/python-twitter is the way to go.
Derek Chiang
Related Q & A:
- How can I use a button to retrieve a phone 'number' from contacts?Best solution by Stack Overflow
- How can I find out how many GBs I use a month on Internet?Best solution by Yahoo! Answers
- How Can I Use A Picture For My Avatar?Best solution by Yahoo! Answers
- How can I use my PC with a wireless printer?Best solution by pcmag.com
- How can i use my laptop as a monitor for my xbox 360?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.