편집 기록

편집 기록
  • 프로필 nowp님의 편집
    날짜2021.05.26

    셀레니움 인스타크롤링 첫번째 포스트 클릭이 안되어 문의남깁니다.


    안녕하세요! 할 수 있는 한 찾아봤는데, 정말 이상해서 질문드립니다!


    from selenium import webdriver
    from selenium.webdriver.common.keys import Keys
    from selenium.webdriver.chrome.options import Options
    from bs4 import BeautifulSoup
    import time as time
    
    
    
    mobile_emulation = { "deviceName": "Nexus 5" }
    chrome_options = Options()
    chrome_options.add_experimental_option("mobileEmulation", mobile_emulation)
    driver = webdriver.Chrome('Chromedriver.exe', chrome_options = chrome_options)
    
    
    url = 'https://www.instagram.com/'
    driver.get(url)
    
    
    
    
    
    time.sleep(3)
    
    
    driver.find_element_by_xpath('//*[@id="react-root"]/section/main/article/div/div/div/div[3]/button[1]').click()
    
    
    time.sleep(3)
    
    
    
    driver.find_element_by_xpath('//*[@id="loginForm"]/div[1]/div[3]/div/label/input').send_keys('아이디')
    driver.find_element_by_xpath('//*[@id="loginForm"]/div[1]/div[4]/div/label/input').send_keys('비밀번호')
    driver.find_element_by_xpath('//*[@id="loginForm"]/div[1]/div[6]').click()
    
    
    
    time.sleep(3)
    
    driver.find_element_by_xpath('//*[@id="react-root"]/section/main/div/div/div/button').click()
    
    
    time.sleep(3)
    driver.get('https://www.instagram.com/imvely_jihyun/')
    
    
    
    time.sleep(3)
    
    
    
    
    driver.find_element_by_xpath('//*[@id="react-root"]/section/main/div/div[3]/article/div/div/div/div[1]/a/div/div[2]').click() 
    

    전체 코드는 위와 같고요. 댓글을 가져오려고, 크롬 모바일 모드로 접속했습니다. 문제는 마지막 부분에서 첫번째 포스트를 클릭하려는데 더이상 진행이 안되네요. 검색버튼이나 나머지 부분은 잘 클릭이 되는데 희안하게도 첫번째 포스트만 클릭이 안되고 있습니다.

  • 프로필 ᅟᅟᅟᅟ님의 편집
    날짜2021.05.25

    셀레니움 인스타크롤링 첫번째 포스트 클릭이 안되어 문의남깁니다 ㅠㅠ


    안녕하세요! 할 수 있는 한 찾아봤는데... 정말 이상해서 질문드립니다!


    from selenium import webdriver
    from selenium.webdriver.common.keys import Keys
    from selenium.webdriver.chrome.options import Options
    from bs4 import BeautifulSoup
    import time as time
    
    
    
    mobile_emulation = { "deviceName": "Nexus 5" }
    chrome_options = Options()
    chrome_options.add_experimental_option("mobileEmulation", mobile_emulation)
    driver = webdriver.Chrome('Chromedriver.exe', chrome_options = chrome_options)
    
    
    url = 'https://www.instagram.com/'
    driver.get(url)
    
    
    
    
    
    time.sleep(3)
    
    
    driver.find_element_by_xpath('//*[@id="react-root"]/section/main/article/div/div/div/div[3]/button[1]').click()
    
    
    time.sleep(3)
    
    
    
    driver.find_element_by_xpath('//*[@id="loginForm"]/div[1]/div[3]/div/label/input').send_keys('아이디')
    driver.find_element_by_xpath('//*[@id="loginForm"]/div[1]/div[4]/div/label/input').send_keys('비밀번호')
    driver.find_element_by_xpath('//*[@id="loginForm"]/div[1]/div[6]').click()
    
    
    
    time.sleep(3)
    
    driver.find_element_by_xpath('//*[@id="react-root"]/section/main/div/div/div/button').click()
    
    
    time.sleep(3)
    driver.get('https://www.instagram.com/imvely_jihyun/')
    
    
    
    time.sleep(3)
    
    
    
    
    driver.find_element_by_xpath('//*[@id="react-root"]/section/main/div/div[3]/article/div/div/div/div[1]/a/div/div[2]').click() 
    

    전체 코드는 위와 같고요. 댓글을 가져오려고, 크롬 모바일 모드로 접속했습니다. 문제는 마지막 부분에서 첫번째 포스트를 클릭하려는데 더이상 진행이 안되네요 ㅜ 검색버튼이나 나머지 부분은 잘 클릭이 되는데 희안하게도... 첫번째 포스트만 클릭이 안되고 있습니다.ㅠㅠ

  • 프로필 알 수 없는 사용자님의 편집
    날짜2021.05.25

    셀레니움 인스타크롤링 첫번째 포스트 클릭이 안되어 문의남깁니다 ㅠㅠ


    안녕하세요! 할 수 있는 한 찾아봤는데... 정말 이상해서 질문드립니다!


    from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.chrome.options import Options from bs4 import BeautifulSoup import time as time

    mobile_emulation = { "deviceName": "Nexus 5" } chrome_options = Options() chrome_options.add_experimental_option("mobileEmulation", mobile_emulation) driver = webdriver.Chrome('Chromedriver.exe', chrome_options = chrome_options)

    url = 'https://www.instagram.com/' driver.get(url)

    time.sleep(3)

    driver.find_element_by_xpath('//*[@id="react-root"]/section/main/article/div/div/div/div[3]/button[1]').click()

    time.sleep(3)

    driver.find_element_by_xpath('//[@id="loginForm"]/div[1]/div[3]/div/label/input').send_keys('아이디') driver.find_element_by_xpath('//[@id="loginForm"]/div[1]/div[4]/div/label/input').send_keys('비밀번호') driver.find_element_by_xpath('//*[@id="loginForm"]/div[1]/div[6]').click()

    time.sleep(3)

    driver.find_element_by_xpath('//*[@id="react-root"]/section/main/div/div/div/button').click()

    time.sleep(3) driver.get('https://www.instagram.com/imvely_jihyun/')

    time.sleep(3)

    driver.find_element_by_xpath('//*[@id="react-root"]/section/main/div/div[3]/article/div/div/div/div[1]/a/div/div[2]').click()


    전체 코드는 위와 같고요. 댓글을 가져오려고, 크롬 모바일 모드로 접속했습니다. 문제는 마지막 부분에서 첫번째 포스트를 클릭하려는데 더이상 진행이 안되네요 ㅜ 검색버튼이나 나머지 부분은 잘 클릭이 되는데 희안하게도... 첫번째 포스트만 클릭이 안되고 있습니다.ㅠㅠ