Giter Club home page Giter Club logo

political-disposition-determiner's Introduction

political-disposition-determiner

Folders

  • news_crawler : news crawler to suggest articles
  • comment_crawler : comments crawler to make comment database
  • determiner : codes for train, inference and serve model
  • notebooks : colab notebooks

Press

Level Conservative Progressive
0 조선일보 한겨례
1 중앙일보 프레시안
2 동아일보 오마이뉴스
3 문화일보 경향신문

Crawl comments

For convenience, the code connecting to the server was separated into the following file : mongodbAuth.py.

from pymongo import MongoClient

AuthMongoClient = MongoClient("mongodb://<ID>:<PASSWORD>@localhost:<PORT>", authSource="admin")

To crawl comments, the server starting to query the data to the database must be preceded.

cd comment_crawler
python3 app.py

Then, modify the date range and level in the last line of crawlerMONGODB.py.

python3 crawlerMONGODB.py

If you crawled using the depreciated code crawlerSQLITE.py, you have to merge the db into mongo db by using dbupdate.py.

Deploy frontend to Heroku

heroku login #Heroku에 로그인
heroku create <APP_NAME> #Heroku에 저장소가 없다면 생성
heroku git:remote <APP_NAME> #Heroku에 이미 저장소가 있다면 사용
heroku stack:set container #스택 유형 변경

git add .
git commit -m "heroku"
git push heroku master #Deploy 끝

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.