4차산업혁명의 일꾼/웹개발

스파르타코딩 웹개발 3주차

르무엘 2021. 8. 17. 22:13

1. (윈도우)파이썬 다운로드 링크 https://www.python.org/ftp/python/3.8.6/python-3.8.6-amd64.exe

2. (윈도우) mongoDB다운로드 링크

https://www.mongodb.com/try/download/community

 

3. (윈도우)  몽고DB 기본url

http://localhost:27017/

 

4. Robot3T 다운로드링크

https://robomongo.org/download

5. (윈도우)Git bash 다운로드 링크

https://git-scm.com/

 

 

6. requests , bs4 , pymongo 라이브러리

import requests
from bs4 import BeautifulSoup

from pymongo import MongoClient
client = MongoClient('localhost', 27017)
db = client.dbsparta

headers = {'User-Agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36'}
data = requests.get('https://www.genie.co.kr/chart/top200?ditc=D&ymd=20200403&hh=23&rtm=N&pg=1',headers=headers)

soup = BeautifulSoup(data.text, 'html.parser')

LIST