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.
Install Instaloader
pip3 install instaloaderUpgrade Instaloader to its current version.
pip3 install --upgrade instaloaderYou 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 seleniumCheck the selenium version (focus on its location, we will put WebDriver in that location).
pip3 show seleniumDownload 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-32Just visit this Selenium website for the details.
- 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 :)