<

Selenium Automation

Welcome, it's great to have you here. Want to hear more about the Instagram Web Browser Automation with Selenium Python?

Part of the Selenium Python code for following in Instagram.

Selenium is an open-source umbrella project for a range of tools and libraries aimed at supporting web browser automation. Selenium provides a playback tool for authoring functional tests without the need to learn a test scripting language (Selenium IDE). It also provides a test domain-specific language (Selenese) to write tests in several popular programming languages, including JavaScript (Node.js), C#, Groovy, Java, Perl, PHP, Python, Ruby, and Scala. The tests can then run against most modern web browsers. Selenium runs on Windows, Linux, and macOS. (wiki)

I implemented a Python code with Selenium module to open the Instagram and perform some actions. For example, This can automatically follow people by extracting their HTML element information (XPath). The most challenging part of this project was "scrolling down" to get more information from the web. For example, if I open a modal window showing the likers of a post, it only shows up to 17 user elements. Therefore, it should be written in such a way to perform actions for 1 to 13 users, then scrolling down to get elements for the next 14 to 27 users.

I also assigned random sleeping time between these actions to avoid having the account suspended by Instagram. Note that the aim of this project is educational not for business purposes. I hope to represent how to learn automatic action on web browsers. , I do not intend to violate Instagram community guidelines.