This is a ruby script that can be used to scrape Instagram and like and comment any post that matches a hash tag.
Use
bundle
to install all the necessary gems.
On the command line:
bundle exec ruby instagram_scraping.rb <your_username> <hash_tag_without_sharp_symbol> <your_message_in_single_quotes_if_many_words>
Example of usage:
bundle exec ruby instagram_scraping.rb panayotism 12345678 studybreak 'This is my message to all posts'