Code Monkey home page Code Monkey logo

seleniumbased-insta-bot's Introduction

SeleniumBased-Insta-Bot

#Problem Statement Your friend has opened a new Food Blogging handle on Instagram and wants to get famous. He wants to follow a lot of people so that he can get noticed quickly but it is a tedious task so he asks you to help him. As you have just learned automation using Selenium, you decided to help him by creating an Instagram Bot.

Tasks: Part 1:

  1. Login to your Instagram Handle Submit with sample username and password.
  2. Type for “food” in search bar and print all the names of the Instagram Handles that are displayed in list after typing “food” Note: Make sure to avoid printing hashtags.
  3. Searching and Opening a profile using Open profile of “So Delhi” 4.Follow/Unfollow given handle - a.Open the Instagram Handle of “So Delhi” b.Start following it. Print a message if you are already following c.After following, unfollow the instagram handle. Print a message if you have already unfollowed. 5.Like/Unlike posts a.Liking the top 30 posts of the ‘dilsefoodie'. Print message if you have already liked it. b.Unliking the top 30 posts of the ‘dilsefoodie’. Print message if you have already unliked it. 6.Extract list of followers a.Extract the usernames of the first 500 followers of ‘foodtalkindia’ and ‘sodelhi’. b.Now print all the followers of “foodtalkindia” that you are following but those who don’t follow you. 7.Print all the followers of “foodtalkindia” that you are following but those who don’t follow you.

Part 2:

  1. Now your friend has followed a lot of different food bloggers, he needs to analyse the habits of these bloggers. a.From the list of instagram handles you obtained when you searched ‘food’ in previous project. Open the first 10 handles and find the top 5 which have the highest number of followers b.Now Find the number of posts these handles have done in the previous 3 days. c.Depict this information using a suitable graph.

  2. Your friend also needs a list of hashtags that he should use in his posts. a.Open the 5 handles you obtained in the last question, and scrape the content of the first 10 posts of each handle. b.Prepare a list of all words used in all the scraped posts and calculate the frequency of each word. c.Create a csv file with two columns : the word and its frequency d.Now, find the hashtags that were most popular among these bloggers e.Plot a Pie Chart of the top 5 hashtags obtained and the number of times they were used by these bloggers in the scraped posts.

  3. You need to also calculate average followers : likes ratio for the obtained handles. Followers : Likes ratio is calculated as follows: a.Find out the likes of the top 10 posts of the 5 handles obtained earlier. b.Calculate the average likes for a handle. c.Divide the average likes obtained from the number of followers of the handle to get the average followers:like ratio of each handle. d.Create a bar graph to depict the above obtained information.

seleniumbased-insta-bot's People

Contributors

mrinalpy20 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.