Advertisement
Guest User

Untitled

a guest
Dec 5th, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. def likes():
  2. browser.get('https://www.instagram.com/explore/tags/newyork/') #hasztag
  3. browser.find_element_by_xpath('/html/body/div[1]/section/main/article/div[2]/div/div[1]/div[1]/a/div').click() #wybiera zdjecie
  4. for i in range(10):
  5. browser.find_element_by_xpath('/html/body/div[5]/div[2]/div/article/div[3]/section[1]/span[1]/button').click() #serduszko
  6. browser.find_element_by_xpath('/html/body/div[5]/div[2]/div/article/header/div[2]/div[1]/div[2]/button').click() #follow
  7. browser.find_element_by_xpath('/html/body/div[5]/div[1]/div/div/a[2]').click() #przewin nastepne zdjecie
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement