virtualenv py_name_project_env
source py_name_project_env/bin/activate
pip install -r requirements.txt
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
flask run
which python
which pip
pip list
pip freeze --local > requirements.txt
rm -rf py_name_project_env
rm -rf py_name_project_env
which pip
deactivate
which pip
Insert .env file
TWITTER_KEY
TWITTER_SECRET
-
Login user
-
Create app
- App Name: sngularRocks
- Description: Finally it is to perform a proof of concept with Python to popularize a section of a website with the tweets related to the company.
- Sign in with Twitter: Disabled
- Callback URL: None
- Terms of service URL: None
- Privacy policy URL: None
- Organization name: None
- Organization website URL: None
-
View and copy Keys and tokens Tab
docker run -p 27017:27017 -d mongo:latest
Now you can connect to DB on localhost:27017
Get al tweets with certain hastag
python3 main.py twitter_service
Calculate user count posts
python3 main.py count_service