Copy Title by class INSTAGRAM, selenium python

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Copy Title by class INSTAGRAM, selenium python



Guys i want copy nick of followers Instagram.



This is my code but don't work:


browser = webdriver.Chrome('./chromedriver')

"GO INSTAGRAM PAGE FOR LOGIN"

browser.get('https://www.instagram.com/accounts/login/?hl=it')

sleep(2)

"ID AND PASSWORD"

elem = browser.find_element_by_name("username").send_keys('test')

elem = browser.find_element_by_name("password").send_keys('pswtest')

"CLICK BUTTON AND OPEN INSTAGRAM"
sleep(5)
good_elem = browser.find_element_by_xpath('//*[@id="react-root"]/section/main/div/article/div/div[1]/div/form/span/button').click()

sleep(5)

browser.get("https://www.instagram.com")

sleep(2)

browser.get("https://www.instagram.com/test/")
sleep(10)

copy = browser.find_element_by_class_name('FPmhX notranslate zsYNt').Text



This is Instagram:


"
a class="FPmhX notranslate zsYNt " title="s_yagami_" href="/s_yagami_/">s_yagami_ a"



I want copy title, help me.









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

JACqtRElPwp,zZJE 43 LAvMrw8a3 nQj,6 J
IJbhqHzBJcCNHn8BRkVluOwqjfLjFFZueg wAoaKp4fOBN1EPCkg084uKRtzsY Hsh,Hvel7iOps2a8a wT2fG5jj

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Store custom data using WC_Cart add_to_cart() method in Woocommerce 3