Used Selenium automation tool to perform various operations on Instagram and to extract required information.
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”
Follow/Unfollow given handle -
- Open the Instagram Handle of “So Delhi”.
- Start following it. Print a message if you are already following.
- After following, unfollow the instagram handle. Print a message if you have already unfollowed.
Like/Unlike posts -
- Liking the top 30 posts of the ‘dilsefoodie'. Print message if you have already liked it.
- Unliking the top 30 posts of the ‘dilsefoodie’. Print message if you have already unliked it.
Extract list of followers-
- Extract the usernames of the first 500 followers of ‘foodtalkindia’ and ‘sodelhi’.
- Now print all the followers of “foodtalkindia” that you are following but those who don’t follow you.
Check the story of ‘coding.ninjas’. Consider the following Scenarios and print error messages accordingly -
- If You have already seen the story.
- Or The user has no story.
- Or View the story if not yet seen.