AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Instagram bot python3/31/2024 ![]() Like_button = lambda: second in reversed(range(0, random.randint(18, 28))): #I think the problem is somewhere at the xpath # print("Check: pic href length " + str(len(pic_hrefs))) If '.com/p/' in elem.get_attribute('href')] Hrefs_in_view = [elem.get_attribute('href') for elem in hrefs_in_view Hrefs_in_view = driver.find_elements_by_tag_name('a') #login_button = like_photo(self, hashtag):ĭriver.execute_script("window.scrollTo(0, ) ") Thanks in advance from selenium import webdriverįrom import Keysįrom import NoSuchElementException I tried changing the xpath a lot of times but it doesn't end up liking a picture. I think the problem is somewhere at # Liking photos Hey guys I am new into python, I learned java and Pascal and yea I wanted to learn how to use instagram bots with python and watched a youtube video, but my problem is that the bot just picks pictures and switches to the next one without liking it, so I think it can't find the like button.
0 Comments
Read More
Leave a Reply. |