There is a very simple way to link your Twitter API and Orange 3.
What is Orange 3? Orange 3 is a component-based data mining framework. It includes a range of data visualization, exploration, preprocessing and modeling techniques. It can be used through a nice and intuitive user interface or, for more advanced users, as a module for the Python programming language.
But if you don’t know how to write a Python code, that’s fine! You still can use this software easily!
There is a link for you to down this free software! Say again: it’s free!
Let’s talk about how to link these two tools!
Step1: Go options and choose Add-ons and then click Text and OK!
Step2: Go to Text mining and choose Twitter widget
Twitter widget enables querying tweets through Twitter API. You can query by content, author or both and accummulate results should you wish to create a larger data set. The widget only supports REST API and allows queries for up to two weeks back.
Step3: To begin your queries, insert Twitter key and secret. They are securely saved in your system keyring service (like Credential Vault, Keychain, KWallet, etc.) and won’t be deleted when clearing widget settings. You must first create a Twitter appto get API keys.
Step4: Set query parameters:
- Query word list: list desired queries, one per line. Queries are automatically joined by OR.
- Search by: specify whether you want to search by content, author or both. If searching by author, you must enter proper Twitter handle (without @) in the query list.
- Allow retweets: if ‘Allow retweets’ is checked, retweeted tweets will also appear on the output. This might duplicate some results.
- Date: set the query time frame. Twitter only allows retrieving tweets from up to two weeks back.
- Language: set the language of retrieved tweets. Any will retrieve tweets in any language.
- Max tweets: set the top limit of retrieved tweets. If box is not ticked, no upper bound will be set – widget will retrieve all available tweets.
- Accumulate results: if ‘Accumulate results’ is ticked, widget will append new queries to the previous ones. Enter new queries, run Search and new results will be appended to the previous ones.
Step5: Define which features to include as text features
Step6: Information on the number of tweets on the output
Step7: Produce report
Step8: Run query
Relevent
How to apply a Twitter API account?
1 Comment.