#!/usr/bin/env python
# coding: utf-8

# In[1]:


from bs4 import BeautifulSoup as bs
from selenium import webdriver
import time
import numpy as np
import pandas as pd
client_id = "e9jbea0v6k"
client_secret = "2MFb9u0X1QKhDDPiClk2qCSpj5bEprzKDmNikzoo"

driver = webdriver.Chrome("C:\chromedriver_win32\chromedriver.exe")
driver.implicitly_wait(3)

area = ['경부선 졸음쉼터','서울양양선 졸음쉼터','서울외곽순환선 졸음쉼터','경상북도 졸음쉼터',
     '광주광역시 졸음쉼터','대구광역시 졸음쉼터','대전광역시 졸음쉼터','부산광역시 졸음쉼터'
        ,'서울특별시 졸음쉼터','울산광역시 졸음쉼터','인천광역시 졸음쉼터','전라남도 졸음쉼터',
        '전라북도 졸음쉼터','충청남도 졸음쉼터','충청북도 졸음쉼터','세종특별자치시 졸음쉼터']

add_name = []
for idx in area:
    driver.get('https://map.naver.com/v5/search/%EC%A1%B8%EC%9D%8C%EC%89%BC%ED%84%B0?c=14110913.0779308,4522082.4343128,14,0,0,0,dh')
    driver.find_element_by_css_selector('#search-input ').send_keys(idx)
    driver.fine_element_by_css_selector('#header button[type="submit"]').click()


# In[ ]:




