Guys, i need help. I want to scrap the instagram data user's using selenium webdriver modul on python. But, when i run my code :
Python:
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chrop = Options()
chrop.add_argument('--incognito')
chrop.add_argument('--headless')
url = 'https://www.instagram.com/chelseaislan'
driver = webdriver.Chrome(options=chrop)
driver.get(url)
results = driver.find_element_by_xpath('//*[@id="react-root"]/section/main/div/div[3]')
print(results)
# import pdb; pdb.set_trace()
The output just like this :
<selenium.webdriver.remote.webelement.WebElement (session="cffacb17e5c8acd79o267e6725308b5f", element="310718e1-6c93-4cfa-8d59-28951d5ff308")>
i dont know, iam stuck. I was watching other tutorial and any code which i just copy-paste to my code. But, the output very different. So guys, please help me