#Github instagram bot full
Right click > Inspect element > Find the html code > Right click on this html code > Copy > Copy XPath or Full XPathĪnd use this into the find_element_by_xpath.
# From here, put the tasks you want to be done,ĭepending on the task to be performed, put some sleep() between one and the other to avoid having your account to be suspended for some time. Notnow.click() #comment these last 2 lines out, if you don't get a pop up asking about notifications You have to specify a folder from where it will upload images (you can keep adding pictures later as well), then, it writes caption, hashtags, current day etc for your post and upload the contents of the. Here: Description: A simple yet elegant Instagram Bot that creates posts and upload it to your account from a local folder in your machine. Notnow = webdriver.find_element_by_xpath('//button') A Instagram Bot that uploads pictures, writes caption including hashtags from a local directory in your machine.
#Github instagram bot password
Password = webdriver.find_element_by_name('password')īutton_login = webdriver.find_element_by_xpath('//button') Username = webdriver.find_element_by_name('username') Webdriver = webdriver.Chrome(executable_path=chrome_driver_binary, options=optionss) Optionss.binary_location = 'C:/Program Files (x86)/Google/Chrome Beta/Application/chrome.exe' # Directory where your chrome.exe isĬhrome_driver_binary = './chromedriver.exe' # Change this to your own chromedriver path! Example: from selenium import webdriverįrom import Keys I understand I may have been vague but not sure what to ask yet given my ignorance so please ask away if needed to hone the question/s.Ī idea is to use Selenium, webdriver and chromedriver to open a Chrome tab, login into the account and do some job like click in some place, do something, etc.
#Github instagram bot pro
I will want to make other projects in future based on web automation so felt this would be a good one to learn from what I was told by a pro programmer. I was told that python is the best all rounder to learn since it does everything in a tidy fashion ie less code and is intuitive. So please illuminate me on how Id go about that. I want to just upload pictures as one operation and follow/unfollow as another on instagram. So since I know nothing about it, but I have my goal in mind can people suggest what where I start in terms of what I should study for the task? Then I can laser focus what I need to learn and work at it piece by piece.
I have been feeling that learning a proper language will be a better investment long term. I don't know any programming languages yet but have wanted to branch out since I use a GUI based web automaiton tool which I see has quite alot of overlap with programming languages such as if statements, variables, loops etc.
I dont have a specific time frame so no rush. Ok so I know nothing about programming with python yet but I have wanted to make a bot to post to instagram for a while so thought it would be a good way to 'hit the ground running'.