post (1) 썸네일형 리스트형 [파이썬] 웹 스크래핑.3 - BeautifulSoup4 - 2. find_all [+ http 메소드:get,post] BeautifulSoup4 find_all() : 해당 조건에 해당하는 모든 걸 가져오기 태그 , class가 "title"인 것들 가져오기 # 공통 부분 ~ import requests from bs4 import BeautifulSoup url = "https://comic.naver.com/webtoon/weekday" res = requests.get(url) res.raise_for_status() soup = BeautifulSoup(res.text, "lxml") # ~ 공통 부분 ### 목록 가져오기 toons = soup.find_all("a", attrs={"class": "title"}) for toon in toons: print(toon.get_text() ) HTTP method.. 이전 1 다음