![[파이썬]네이버 인기검색 키워드 20위 랜덤으로 1개 고르기](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FQYLBs%2FbtrPaNktdUD%2FAAAAAAAAAAAAAAAAAAAAAGnQKfZ2QvV9t0xDK426hSOGQWi3JeqA9JF2mtnLKApv%2Fimg.jpg%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1756652399%26allow_ip%3D%26allow_referer%3D%26signature%3DDXFV5c%252FUUQF4ZI0h5IXDJ5FP3Oc%253D)
#!/usr/bin/env python3 # 패키지 호출 from bs4 import BeautifulSoup from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.action_chains import ActionChains import chromedriver_autoinstaller import urllib.request import warnings import shutil import subprocess import time import requests import random # 1부터 20까지 중에 랜덤추출 ranking = random.rand..
![[파이썬]네이버 데이터랩 추출 및 엑셀 파일 저장(xlsx)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FQqjD5%2FbtrOkdczBLW%2FAAAAAAAAAAAAAAAAAAAAAJ9_aE7qZVQPf_9V0ZF2v9WCdhAeg5RCcSLgL1IHSWhe%2Fimg.jpg%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1756652399%26allow_ip%3D%26allow_referer%3D%26signature%3D1FRcAbek4y%252BFS0JaKW9N2M9%252BwpM%253D)
from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.action_chains import ActionChains import chromedriver_autoinstaller import os import requests import warnings import shutil import subprocess import time warnings.filterwarnings('ignore') try: shutil.rmtree(r"c:\chrometemp") # 쿠키 / 캐쉬파일 삭제 except FileNotFoundError: pass subprocess...