options = webdriver.ChromeOptions()
options.add_experimental_option("excludeSwitches", ["enable-automation"])
options.add_experimental_option("useAutomationExtension", False)
+ options.add_argument('--blink-settings=imagesEnabled=false')
options.add_argument('headless')
options.add_argument('window-size=1920x1080')
options.add_argument("disable-gpu")
def naver_blog_scrapper(keyword, start_day, end_day, date_interval, page_step=10, start_page_num=1, browser_thread_count=12):
url = get_url(keyword, start_day, end_day, 1)
total_page_num = get_total_page(url)
+ print(f"processing : {keyword}, during {start_day} to {end_day}")
print(f"total_page_num : {total_page_num}")
date_range = generate_date_range(start_day, end_day, date_interval)
if __name__ == "__main__":
- naver_blog_scrapper("선산읍", "2022-01-01", "2023-10-31", 7, 50, 1, 12)
+ naver_blog_scrapper("구미 송정동", "2022-01-01", "2023-10-31", 7, 50, 1, 12)
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?