Twythonx is a library that can search tweet and post tweet. Moreover, Twythonx includes inter-process communication library which is called IPCx.
You can search tweet and select parameter to search. For more information about search parameter of twitter here.
IPCx stands for Inter-process communication x. Our IPC type is publish–subscribe pattern. Now we are developing it with matlab and python3 which are based on ROS . The IPCx runs python3 on WSL but runs matlab on Windows 10.
We developed on
| software | version |
|---|---|
| WSL | Ubuntu 20.04 LTS |
| Python | Python 3.8.2 64 bit |
| Matlab | 2020a |
| ROS | ROS Noetic Ninjemys (ROS 1) |
Moreover, IPCx require ROS Toolbox on Matlab.
-
For more information about ROS Toolbox: https://www.mathworks.com/products/ros.html
-
For installation of ROS Toolbox: https://www.mathworks.com/help/ros/ug/install-robotics-system-toolbox-support-packages.html
1.Install WSL, Python3, Matlab
2.Install required python library :
- twython
- pandas
please run this following command on WSL
pip3 install pandas
pip3 install twython3.Install ROS
you can see our ROS installation tutorial at https://github.com/CUASL/ipcx/wiki/Installation
4.Copy our library folder ipcx on our github to your project directory so that you can use our library.
5.import our library in your code
python
import twythonxmatlab
addpath('twythonx')You can get start and see more tutorial wiki
If you want to use only twitter API, you can install only twitter API(twythonxx) and for more information at here
Note For twythonx you must run python3 on WSL only, but in twythonxx can run on Windows, Mac, Ubuntu, WSL, etc. This example will show how to run on WSL.
- step 1 open WSL
- step 2 run following command (replace your file Name)
python3 yourFileName.pyThis example will show case server: python and client: matlab
- step 1 open WSL
roscore- step 2 open another WSL and run your serverfile (replace your file Name)
python3 yourServerFileName.pyFor Example in example directory
python3 ex_publisher.py- step 3 open matlab and run your client file (replace your file Name)
for example(run in matlab bash or you can click run at matlab UI)
ex_subscriber- platforms
- Windows 10 with WSL
- Linux/Ubuntu
- Languages
- Python3
- Matlab