Skip to content

Java application to access twitter account using twitter API. Twitter data extraction in Java using Twitter4j.

Notifications You must be signed in to change notification settings

samyukthagopalsamy/TwitterApplication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

Twitter data extraction

Java application to access twitter account using twitter API.

  1. A Twitter developer account is created to access Twitter APIs.
  2. A Twitter app called Basic_Twitter_Application is created.
  3. Consumer API keys, access token, and access token secret are obtained for the twitter account using which the app is created.
  4. Twitter4J, an unofficial Java library for the Twitter API is used to integrate the java application with the Twitter service.
  5. Twitter4j library is downloaded from http://twitter4j.org and the jar file is added to the java application classpath. (twitter4j-core-4.0.4.jar is used for this application)
  6. In the Java project, all the required twitter4j classes such as ConfigurationBuild, TwitterFactory, Twitter, Status, Query, Trends, IDs, User, etc are imported and the following can be performed.

(‘ user’ refers to the twitter account used to generate the access tokens.)

  1. Display of twitter timeline of the user or any other twitter account.
  2. Display the trends on Twitter for a specific WOEID(Where On Earth Identifier)
  3. Post or delete a status to the user timeline.
  4. Send personal messages to the followers of the account.
  5. Search for tweets using keywords.
  6. List the friends and followers of the user.

OUTPUT

output1

output2

About

Java application to access twitter account using twitter API. Twitter data extraction in Java using Twitter4j.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages