This project is deprecated and no more maintained.
Please use the new improved version of this project named as “Fetchwitter” and available at https://github.com/jabranr/fetchwitter
First of you will need to register/login at https://dev.twitter.com/apps and create a new application. Fill out the required fields and it will generate the required credentials for you. The only credentials you need are
consumer key and
Now you need to make a POST request to API’s oAuth endpoint to exchange above-mentioned credentials for an
access token. The request made at this stage requires
Authorization headers. This will result in a response with app level
bearer access token. You might want to save/cache the acquired
access token instead of making a request each time.
Now that you have the
access token, you can make requests to Twitter API endpoint and receive data in response. The request made at this stage also requires inclusion of
Now since all these results are returned in plain text and so are the links, hashtags and mentions in the tweets. This issue can easily be solved by using
regex match and replace methods, that is available in this example as
Project is available under MIT License