1) #expnd_btn = browser.find_element_by_class_name('pHnkA')
[line:55]
2) #expnd_btn.click()
[line:56]
3) #time.sleep(1)
[line:58]
scheduler.py
1) username = 'USERNAME' # Enter your username here
[line:23]
2) password = 'PASSWORD' # Enter your password here
[line:24]
3) file_path = r"C:\Users\P Sinha\Desktop\Capture.png" # File Path Where Pic/Vid is Stored That You Want To Upload
[line:25]
4) timee = "21:44" # Specific Time When The Post will be Posted
[line:92]
5) caption = 'Hi There, P Sinha this side !' # Write Your Caption Here
[line:65]
Ensure that you have Chrome installed and the
chromedriver
that matches
your Chrome version available on your $PATH
. You may have to update this from time to time.
python
on the PATHpip install requests
pip install selenium
pip install schedule
pip install PyAutoGUI
python scheduler.py