Instagram Automation Using Python and Selenium

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 17

Instagram automation

using Python and Selenium


Introduction
• Automating social media platform Instagram
• Instagram is one of the leading social media apps today. You yourself
must have had some experience in using Instagram
Objective

• Most often we all are tired of doing basic tasks repeatedly


• By this project we have tried to automate some tasks such as liking
following and exploring instagram using web automation
• Also we designed a scheduler which will help to schedule these tasks
Why web automation?

• Web automation today is a goto solution for testing an application, but it


also has various other use cases like automating redundant processes for
digital marketers and SEO specialists
• Also, we can use automation to gather data for a particular business page,
helping them with better user engagement by helping them figure out their
audience's sentiment using NLP analysis on comments
Software and libraries used

• Python as scripting language for automation script


• Used tkinter of building scheduling interface
• Selenium for web crawling and automating browser
• Chrome webdriver for chrome version 94 .
• Anaconda comtymand prompt for execution
Hardware used

● Operating System: Windows 7,8,10.


● Memory Required : 4GB Ram or higher.
● Processor: Intel core i5/i3.
Project architecture

This Product Architecture consists of stages as follows:


• Firstly user will enter login credentials and desired inputs to schedule the
task
• Thereafter scheduler will run the script
• Then script will login to the provided account using login credentials
• Then it will explore and performs desired actions and navigate back to main
home page and resets scheduler
Project flowchart
User input scheduler

login

explore

Automating
tasks
High level approach

• The main aim is to perform is to automate user interaction with Instagram


• Firstly we need to automate the login process, which includes entering username,
password and clicking login button
• Next, we need a starting point to begin scraping, there are many choices for this, for
example, explore page
• Now when we are at the explore page, we will try to go through the posts one by one and
then perform a set of tasks, which are liking, commenting, following, and saving. To
achieve these we will use selenium webdriver tools to perform browser interactions such as
clicking, scrolling, and typing, etc.
Project work
Setting up the environment
and automate login into Instagram

• Firstly we require a valid username and password for logging into Instagram
• Then we will have to install certain dependencies such as selenium and
chromedriver
Using developer options

• All the elements in a web page are html tags


• We will use inspect element to find the class of desired elements such as
photo save like etc
• Then we will use chrome driver to automate the actions performed
manuially
• Creating script to automate the tasks
• There after we will create a user interface for scheduler which is going to
schedule tasks
• writing script using various modules of python such as Tkinter, time
selenium etc
• Now when we are at the explore page, we will try to go through the posts one by
one and then perform a set of tasks, which are liking, commenting, following and
saving. To achieve these we will use selenium webdriver tools to perform browser
interactions such as clicking, scrolling, and typing, etc.
• While going through posts we will save the image/video URL of these posts, and
then we will consolidate these URLs
Thank you

You might also like