2022-04-02 13:57:55 +00:00
|
|
|
# Socialmetrica
|
2021-06-30 14:47:40 +00:00
|
|
|
|
2022-04-02 14:05:42 +00:00
|
|
|
Social Networks data analysis utilities and tools, starting with Twitter/[Nitter](https://nitter.net/about).
|
2021-07-18 17:41:41 +00:00
|
|
|
|
2021-07-28 00:14:40 +00:00
|
|
|
To install, first install [ExoRepo](https://code.tupale.co/Offray/ExoRepo) and then from a _playground_ in [GToolkit](https://gtoolkit.com/) execute:
|
2021-07-18 17:41:41 +00:00
|
|
|
|
|
|
|
```smalltalk
|
2021-09-03 14:43:56 +00:00
|
|
|
ExoRepo new
|
2022-04-02 14:05:42 +00:00
|
|
|
repository: 'https://code.tupale.co/Offray/Socialmetrica';
|
2021-09-03 14:43:56 +00:00
|
|
|
load.
|
|
|
|
```
|
|
|
|
|
2022-04-02 14:05:42 +00:00
|
|
|
**Important:** Following a local first approach, improved documentation is being written in Spanish at this moment.
|
|
|
|
We write it according to the context where we are sharing and using our developments.
|
|
|
|
Once we share back with non Spanish speaking audiences and developers, we will point to English documentation here.
|
|
|
|
|
2021-09-03 14:43:56 +00:00
|
|
|
## Minimal usage example
|
|
|
|
|
|
|
|
**Prerequisite**: You will need to have already your [Twitter API Keys](https://developer.twitter.com/en/support/twitter-api).
|
|
|
|
|
|
|
|
Load your API keys into a `TwitterAPI` object:
|
|
|
|
|
|
|
|
```smalltalk
|
|
|
|
twitterAPI := TwitterAPI new
|
|
|
|
apiKeysFile: FileLocator home / 'Route/To/myAPIKeysFile.json';
|
|
|
|
loadKeys.
|
|
|
|
```
|
|
|
|
|
|
|
|
(If you don't define a particular route to your API keys file, it will be loaded from a default location
|
|
|
|
in : `~/.config/Datanalitica/twitter-api-keys.json`)
|
|
|
|
|
|
|
|
Once you have loaded your keys, you can run your first query using the DSL (Domain Specific Lanuage):
|
|
|
|
|
|
|
|
```smalltalk
|
|
|
|
twitterAPI usersGroupMentioning: 'feenkcom'
|
|
|
|
```
|
|
|
|
|
2021-09-03 14:56:17 +00:00
|
|
|
![Running the MiniDoc example](https://i.imgur.com/SjMzR4X.png)
|
|
|
|
|
|
|
|
If you click in a particular user, you can get details on him/her and an overview of his/her tweets,
|
|
|
|
and clicking on a particular tweet you can see details on it:
|
|
|
|
|
|
|
|
![Exploring further details](https://i.imgur.com/89EInrp.png)
|
|
|
|
|
2021-09-03 15:35:52 +00:00
|
|
|
Next: improved data paging, chaching and storage and some support for topic modelling and clustering.
|
|
|
|
|
|
|
|
That is for now.
|