import schedule
import requests
from bs4 import BeautifulSoup
def job():
res = requests.get('https://news.naver.com/main/ranking/popularDay.nhn?mid=etc&sid1=111')
soup = BeautifulSoup(res.content, 'html.parser')
title = soup.find("i", { "class" : "count_view"})
print(title.get_text("i", { "class" : "count_view"}))
schedule.every().hour.do(job)
파이썬으로
네이버랭킹뉴스 조회수제일높은기사의 조회수를 1시간마다 가져오고싶은데
1시간마다 가져오기 추가하기 전에는 잘 됐는데
추가하니까 갑자기안대네,,
저능아좀 도와줘,,
tlqfus
레퀘스트 데이터는 잘오고있니
블로그여기저기 짜집기해서만든거라 ,,, 일단 저상태로돌리면 조회수도안뜨고 아무것도안나와