지정된 검색어로 뉴스 수집 후 Dropbox에 업로드하는 프로그램
- Make config file
vim config.json
{
"TIME": "20:00",
"DROPBOX_TOKEN": "{dropbox access token}",
"QUERY": {
"domain1": ["query1", "query2", "query3"],
"domain2": ["query1", "query2", "query3"]
}
}
Set "Time": "now" if you want to collect news immediately.
- Build docker container
sudo docker create --name news respect5716/news-crawler:1
sudo docker cp config.json news:News_Crawler/config.json
sudo docker start news
- 개발용 container
sudo docker build -t news-image -f DevDockerfile .
sudo docker run --name news -v ${PWD}:/app news-image