Skip to content

🤖 Python bot to view stories, like and comment on Instagram

License

Notifications You must be signed in to change notification settings

alpdias/instagram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python bot para usar com o Instagram

Python bot para ver stories, curtir e comentar fotos no Instagram, usando webdrivers e scranping.

❗❗ Adicionado uma nova função para enviar diversos comentarios em fotos de sorteio ❗❗

  • Script para curtir: 100% - Atualizado (12/11/2020)
  • Script para curtir e comentar: 100% - Atualizado (12/11/2020)
  • Script para ver stories: 100% - Atualizado (12/11/2020)
  • Script para sorteio: 100% - Atualizado (12/11/2020)

Python 3.8.0
Geckodriver v0.26.0
Codificação: -∗- coding: utf-8 -∗-
en-US

bot-insta


Execução:

  • Tenha o Python 3 ou superior instalado na máquina;

  • Instale os módulos Python;

  • Para começar e executar o código entre no diretório geckodriver e escolha o diretório referente ao seu sistema e descompacte o programa "geckodriver";

  • Execute o comando no terminal: python botInstagram.py;

  • A entrada 'delay' é o tempo em segundos para o carregamento das páginas (com uma boa internet use: 2).


Módulos Python

pip install selenium
pip install pyfiglet


Observações:

  • Caso apresente algum erro ao rodar o script, antes de abrir uma 'Issues' execute o script 'botError.py' para verificar o erro de forma mais específica e assim facilitar a resolução do seu problema.

  • O tempo de execução da função de 'comentários' vai variar entre 6 a 7 minutos, devido a política do instagram sobre mesmas funções que são executadas repetitivamente, as demais funções são executadas de acordo com a entrada 'delay';

  • Ao executar a função para ver 'stories', caso o primeiro item seja uma 'live' ele não vai ser executado e apresentará um erro (trabalhando nessa parte);

  • As pausas de tempo dadas dentro do código vão variar de acordo com sua conexão de internet, observe também a política do instagram sobre curtidas e comentários por hora e dia, atente-se a isso para que não ocorra erros e para manter sua conta sem bloqueios;


Python bot to use with Instagram

Python bot to view stories, like and comment on photos on Instagram, using webdrivers and scranping.

❗❗ Added a new function to send several comments in pictures of the draw ❗❗

  • Script to like: 100% - Updated (2020/11/12)
  • Script to like and comment: 100% - Updated (2020/11/12)
  • Script to see stories: 100% - Updated (2020/11/12)
  • Script to draw: 100% - Updated (2020/11/12)

Python 3.8.0
Geckodriver v0.26.0
Coding: -∗- coding: utf-8 -∗-
en-US

bot-insta


Execution:

  • Have Python 3 or higher installed on the machine;

  • Install Python modules;

  • To start and run the code enter the geckodriver directory and choose the directory for your system and unzip the "geckodriver" program;

  • Run the command in the terminal: python botInstagram.py;

  • The 'delay' entry is the time in seconds for the pages to load (with good internet use: 2).


Python modules

pip install selenium
pip install pyfiglet


Notes:

  • If there is an error when running the script, before opening an 'Issues' run the script 'botError.py' to check the error more specifically and thus facilitate the resolution of your problem.

  • The execution time of the 'comments' function will vary between 6 to 7 minutes, due to the instagram policy on the same functions that are executed repeatedly, the other functions are executed according to the 'delay' entry;

  • When executing the function to see 'stories', if the first item is a 'live' it will not be executed and will present an error (working on that part);

  • The time breaks given within the code will vary according to your internet connection, also observe the instagram policy on likes and comments by hour and day, pay attention to this so that there are no errors and to keep your account without locks;