Development 73

[python, requests, bs4] select와 select_one을 사용한 웹페이지 크롤링

import requests from bs4 import BeautifulSoup 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://movie.naver.com/movie/sdb/rank/rmovie.nhn?sel=pnt&date=20200303',headers=headers) soup = BeautifulSoup(data.text, 'html.parser') trs = soup.select('#old_content > table > tbody > t..

Development 2021.12.30

[JavaScript] JQuery 사용하기

JQuery는 미리 작성된 JavaScript 같은 개념이다. 이를 import 해서 JavaScript 코드를 더 간결하게 작성할 수 있다. https://www.w3schools.com/jquery/jquery_get_started.asp jQuery Get Started W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more. www.w3schools.com 위 링크에서 코드를 복사하여 안에 붙여넣기 한다.

Development 2021.12.29