Skip to content

irwanafandi24/Instagram-Bot-and-Web-Scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Instagram Bot and Web Scraper

This repository contains web scraper sample code (scrape the data from a website then save it into csv format) and my instagram bot (follow, like 3 post, comment in the first post, unfollow, direct message - automatically) using instaloader, selenium, and webdiriver.

Note: I use python 3 and Jupyter Notebook for this project.

Getting Started

Let's Install

Install Instaloader

pip3 install instaloader

Upgrade Instaloader to its current version.

pip3 install --upgrade instaloader

You can use this library to scrape many data from Instagram like post, insta story, comment, etc. So you can explore it by yourself on Istaloader website.

Install Selenium

pip3 install selenium

Check the selenium version (focus on its location, we will put WebDriver in that location).

pip3 show selenium

Download WebDriver:

  • Firefox for windows geckodriver
  • Chrome for windows chromedriver
    Extract the folder, then put it into your python installation folder (copy your selenium location).
C:\Users\moham\AppData\Local\Programs\Python\Python38-32

Just visit this Selenium website for the details.

Other Support Library

  • pandas (dataframe)
  • random
  • re (regular expression)
  • decimal (str to decimal)
  • time
  • tqdm (progress bar)

🎉 Congrats, you ready to create your own Bot or Scraper now :)

About

This repository contains web scraper sample code (scrape the data from website and save it into csv format) and also my instagram bot (follow, like 3 post, comment in the first post, unfollow, dm - automatically) using selenium and webdiriver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors