Skip to content

EN_04 Using!

Fábio Augusto Buche Barros edited this page Sep 23, 2020 · 7 revisions

Using!

  • 1 - In main.py put the references in the list (you can open it with any Notepad or using an IDE).

    • If the search is made for hashtags, place the hashtags you want to perform the search in the hashtags list or, if you choose Trending Hashtags, make sure you have performed the scraping (step 2.5).
    • If you prefer to perform the process on followers of a specific profile, fill out the perfis list with the profiles you want to interact with. This will make you interact with the last 120 followers of this profile.
    • If you prefer to carry out the process interacting with photos linked to a 'Locations', fill in the local list with the links you want to interact with. This will make you interact with photos that have been tagged in those locations.
      • Note: the link must have this format -> 'https://www.instagram.com/explore/locations/214448557/cuiaba-brazil/'
  • 2 - Put the comments you want to comment on the respective lists:

    • primeira_palavra: It will always be the first element of the sentence.
    • complemento: It can be the element right after the 'first_word' or it can be the first element of the sentence, with an emoji right after it.
    • emoji: Emoticon that will always be the last element of the sentence.
      • Note: Emoticons don't usually work on Chrome, only on Firefox.
    • These lists are used to create random phrases, joining different elements randomly for each comment. The more words in each group the better!
  • 2.5 - If you chose to use the 'Trending Hashtags' mode, we need to perform the scraping manually:

    • Open the terminal in the folder containing the scrapy_twitter.py
    • Enter the command:
cd C: \Users\Download\InstaBot\instabot

scrapy runspider scrapy_twitter.py

3 - Open the terminal inside Instabot folder, that contains the file requirements.txt and use the command:

  • Linux:
cd ./Download/InstaBot/

python ./instabot/
# or
python3 ./instabot/
  • Mac OSX:
cd ./Download/InstaBot/

python ./instabot/
# or
python3 ./instabot/
  • Windows:
# change according to the path of your folder

cd C: \Users\Download\instabot

python instabot

3.5 If you have any problems with python execution, change the first line of the module main.py to:

#!/usr/bin/env python 

or

#!/usr/bin/env python3 

(you can open it with any Notepad or using an IDE).

  • 4 – ?????
  • 5 – profit!

Clone this wiki locally