#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:
- Login to your Instagram Handle Submit with sample username and password.
- 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.
- 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:
-
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.
-
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.
-
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.