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시간마다 가져오기 추가하기 전에는 잘 됐는데

추가하니까 갑자기안대네,,

저능아좀 도와줘,,