PHP APP to call the Twitter's API and retrieve an X amount of tweets and count how many times all the keywords appear.
- Initialize all objects with the configuration from the ini file.
- Call the API to retrieve the tweets from the account passed as argument.
- Count the keywords.
- Print the keyword list to the console.
All the parameters/ settings should be added on the ini file. Create the config.ini with this structure:
[twitter_app_settings] oauth_access_token = oauth_access_token_secret = consumer_key = consumer_secret =
[url_settings] url =
[counter_settings] number_of_tweets =
The app should be called from the command line with 1 single argument, like this:
"$php run.php SCREEN_NAME"
(Where "SCREEN_NAME" is the Twitter's account name which tweets should be retrieved)
- [Hugo Cunha] - Developer