Skip to content

A bot made with Selenium and Python to like and comment on jazz musicians' Instagram posts.

Notifications You must be signed in to change notification settings

MeghanPund/JazzBoot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Jazz Bot

Program Description

A foray into browser automation, featuring selenium.

A Video of the Program in Action:

[(https://drive.google.com/file/d/1oG5GnFFOKXbuZwLOHu-AhbgDJG0eXfs0/view?usp=sharing)]

Note

If you intend to clone this and run it with your own account:

  • you will need to find
    username_input.send_keys(secure_info.username) 
    password_input.send_keys(secure_info.password)

and replace secure_info.username with your own username, as well as secure_info.password with your own password, as 'string'.

  • You will also need to install Google Chrome's chromedriver, or the webdriver for your browser of choice. After doing that, you'll need to reconfigure the PATH variable to the correct filepath.
  • Finally, pip install selenium.

Functionality

As of December 2021, this bot logs in, searches for a hashtag (randomly chosen from a list), and comments, likes, & subscribes to a set number of posts/accounts (the parameter passed to the runbot() function) with that hashtag. After this, the bot writes a log in a text file that shows the date/timestamps and the comments posted (and to which accounts).

Future Functionality

  1. Refactor code and replace deprecated Selenium with current Selenium
  2. Refine criteria for interaction with accounts
  3. Streamline the code so it is more efficient and can run faster (research Instagram's automation detection)
  4. Update log.write to include post's caption - FIX FOR NON-UTF8 ENCODABLE TEXT - AND to prepend to the file instead of append.
  5. (Simple, but not useful) Watch stories function
  6. (More intense) Use sentiment analysis to more accurately comment on posts
  7. (More intense) Use a translation API to determine the language of a post, read the caption, and translate the comment posted to the correct language.

About

A bot made with Selenium and Python to like and comment on jazz musicians' Instagram posts.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages