A collection of Python scripts that automates the Firefox browser to log on to a Instagram account (account username and password specified by user in each script) to like/follow/unfollow user photos, accounts and more (script specific information and instructions follow). Users can use InstaBot passively and will be notified of completion/status of tasks through an automatic Gmail email.
7
stars
2
forks
source link
Add support for headless Firefox and some small issue #2
1) Using the headless version of Firefox by settings the headless flag to true
2) Using JavaScript to trigger a click event before calling the self.driver.find_element_by_css_selector('div[role=\'dialog\'] ul') since ths code will cost some issue becuase the div[role='dialog'] ul element dosen't event exists unless someone has click the "following list"
Hi Felix, I agree with your changes and have committed them to the master branch for other's to use as well. I hope it helps with browserless use of the scripts. Happy coding!
1) Using the headless version of Firefox by settings the
headless
flag totrue
2) Using JavaScript to trigger a click event before calling the
self.driver.find_element_by_css_selector('div[role=\'dialog\'] ul')
since ths code will cost some issue becuase thediv[role='dialog'] ul
element dosen't event exists unless someone has click the "following list"