Python 3.8+
should be installedDocker
should be installedPycharm IDE, IntelliJ IDEA, etc.
can be installed to open the project (Recommended)- Update the following
Twitter API
credentials with your configs (DON'T SHARE THEM) in ConfigFile.config fileconsumer_key
=consumer_secret
=access_key
=access_secret
=
- Run via
Terminal
(OPTION 1)- Run
docker-compose up --build
command cd data_collection_framework/
python3 -m pip install -r requirements.txt
chmod +x Server.py
./Server.py
- Run
- Run via
Pycharm IDE, IntelliJ IDEA, etc.
(OPTION 2)- Run
docker-compose up --build
command viaTerminal
- Right-click on the Server.py and click
Run
- Run
- http://localhost:3000/
- Sign up
- Sign in
docker-compose.yml contains the followings
- MongoDB
url
: http://localhost:8081/ or http://0.0.0.0:8081/username
:mexpress
password
:mexpress
- MariaDB
MARIADB_DATABASE
:root_db
MARIADB_USER
:user
MARIADB_PASSWORD
:user
- phpMyAdmin
- php-app
- http://localhost:3000/
- Sign up
- Sign in
Other variables in ConfigFile.config file can be reviewed
word_list_for_streaming
=['python', 'java', '#java', 'javascript']
modify the list according to the needsfile_path_for_timeline_outputs
= Path for timeline i.e. user path/timeline/file_path_for_followers_outputs
= Path for followers i.e user path/followers/file_path_for_list_of_username
= Path for userList file can be text file contains Twitter usernamesfile_path_for_mongo
= filepath/of/text/files/to/store/mongodb/*.txtfile_path_for_tokenization
= File path contains text filesfile_path_for_cross_val
= File path must have at least 2 folders contains text files