When you receive data from a website, how can you access it if you can see the data after logging in?
from bs4 import BeautifulSoup
from selenium import webdriver
driver = webdriver.Chrome('c://chromedriver.exe')
driver.get("http://www.gevolution.co.kr/rank/history.asp")
soup = BeautifulSoup(driver.page_source, 'html.parser')
blocks = soup.findAll('div', {'class': 'grp'})
bodys = []
for block in blocks:
body = block.text
body = str(body).strip()
bodys.append(body)
print(bodys)
result : []
Some of the code that collects data on the sites I want to collect. By the way, if I turn on Chrome automatically, it will not be collected due to login problem. I want to know how to solve login problems.