![[파이썬]네이버 인기검색 키워드 20위 랜덤으로 1개 고르기](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FQYLBs%2FbtrPaNktdUD%2FmtuHMg1BKKKpdxXaYKv7J1%2Fimg.jpg)
#!/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%2Fdn%2FQqjD5%2FbtrOkdczBLW%2F02ZKkZE0vyk7jSTMmwk6l0%2Fimg.jpg)
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...