OIDC2020
go to http://49.50.164.37:6002/ !
- front end: https://github.com/amkorousagi/trendup_front
- back end: https://github.com/amkorousagi/trendup_back
- data collection and machine learning: this repository!
- replace Authentication key(GCP api key, service json in youtube_*.py) with yours. (other containers not require Authentication key)
- Do not operate youtube_.py too many times, it only works 5~7 times on each day because of Google API call limit for Free user.(If you want to update several timme, plz convert youtube_ func in tcp.py to comment). also you need to command GOOGLE_APPLICATION_CREDENTIALS=".json" and to convert "~/api_key.txt" in tcp.py for running youtube_ containers
- If you operate containers on other public IP, only chage MASTER_PUBLIC_IP in tcp.py.
- Do not change port for each container, every port is fixed
- According to your environment, can occur errors. then, try converting all print* to comment. for DB, convert character set = utf8mb4
- docker build -t youtube_image -f Dockerfile_youtube
- follow commands below
- docker run -it -p 5001:5001 --name master_container youtube_image /bin/bash
- hostname -I
- in tcp.py, replace MASTER_PRIVATE_IP ="172.0.0.4" with MASTER_PRIVATE_IP = ""
- python3 master.py
- wait other all container connected
- docker run -it -p 5002:5002 --name youtube_data_container youtube_data_image /bin/bash
- python3 youtube_data1.py
- wait other all container connected
- docker run -it -p 5003:5003 --name youtube_map_container youtube_image /bin/bash
- python3 youtube_map.py
- wait other all container connected
- docker build -t webcrawling_image -f Dockerfille_webcrawling .
- follow commands below
- docker run -it -p 5004:5004 --name n_shopping_container webcrawling_image /bin/bash
- python3 n_shopping.py
- wait other all container connected
- docker run -it -p 5005:5005 --name c_shopping_container webcrawling_image /bin/bash
- python3 c_shopping.py
- wait other all container connected
- docker run -it -p 5006:5006 --name _11_shopping_container webcrawling_image /bin/bash
- python3 _11_shopping.py
- wait other all container connected
- docker run -it -p 5007:5007 --name keyword_rank_container webcrawling_image /bin/bash
- python3 keyword_rank.py
- wait other all container connected
- docker build -t ml_image -f Dockerfile_AI_male .
- follow commands below
- docker run -it -p 5008:5008 --name ml_male_container ml_image /bin/bash
- python3 "AI(machine_learning)_male.py"
- wait other all container connected
- docker run -it -p 5009:5009 --name ml_female_container ml_image /bin/bash
- python3 "AI(machine_learning)_female.py"
- wait other all container connected
- docker run -it -p 5010:5010 --name ml_predict_male_container ml_image /bin/bash
- python3 AI_predict_male.py
- wait other all container connected
- docker run -it -p 5011:5011 --name ml_predict_female_container ml_image /bin/bash
- python3 AI_predict_female.py
- wait other all container connected
go to https://github.com/amkorousagi/trendup_front
go to https://github.com/amkorousagi/trendup_back