click () print ( "success" ) sleep ( 2 ) for i in range ( int ( posts - 1 )): like = self. find_element_by_xpath ( '/html/body/div/div/div/div/a' ) nextPic. find_element_by_xpath ( "/html/body/div/div/div/article/div/section/div/form/textarea" ). find_element_by_xpath ( '/html/body/div/div/div/article/div/section/span/button' ) like. find_element_by_class_name ( "_9AhH0" ) pic. text posts = Decimal ( sub ( r'', '', posts )) print ( posts ) pic = self. find_element_by_xpath ( "/html/body/div/section/main/div/header/section/ul/li/span/span" ). find_element_by_xpath ( \" submit \" ]" ). find_element_by_xpath ( \" password \" ]" ). find_element_by_xpath ( \" username \" ]" ). From selenium import webdriver from import Keys from time import sleep from re import sub from decimal import Decimal class Instabot : def _init_ ( self, username, password, OtherUserId, comment ): self.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |