Coder Social home page Coder Social logo

alpdias / instagram-bot Goto Github PK

View Code? Open in Web Editor NEW
79.0 5.0 18.0 4.22 MB

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

License: GNU General Public License v3.0

Python 100.00%
bot python instagram geckodriver webdriver webscraping scraping-websites like comments bot-python-instagram

instagram-bot's Introduction

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;


instagram-bot's People

Contributors

alpdias avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

instagram-bot's Issues

I wanna to use emoticons

When i try to use emoticons, it gives questionmarks error, like it can't be used. So my question is: can i use emoticons as a comment?

command execution error

I tried to run the command on my windows 10 cmd and it says: '' '$' is not recognized as an internal command
or external, an operable program or a batch file. ''
Provides the right command for windows please

Comentários aleatórios

Boa noite... primeiramente parabens pelo seu trabalho...

é possivel nesse codigo cadastrar varias frases e o robo postar uma de cada vez de forma aleatoria?

Ex... na hora de escolher o Draw, vc coloca as frases separadas por algum caracter Ex1 | Ex2 | Ex3, e a cada xxx segundos ele faz um input de uma frase na foto.. de forma aletatoria ou ate mesmo sequencial..

Obrigado,

Thales

Mais de um comentário ....

Primeiramente, parabens pelo codigo

Gostaria de saber se é possível colocar comentarios randomicos.. tipo.. separar eles por algum caracter e ele fazer o input de forma randomica..

Obrigado

Thales

Não passa para o próximo perfil

Olá!

Tentei usando o gecko e chromedriver, mas eles até abrem um perfil e curte, mas nunca passa pro próximo... precisa configurar algo a mais?

Abs!

Executar em diversas contas

Tenho diversa contas, gostaria de saber se consigo programar 10 contas e executar todos de uma vez. Que ele repita automaticamente em cada conta. Ou seja por exemplo quero que ele visite story, quando finalizar a visualização, sair e entrar em outra conta e executar a mesma coisa e assim sucessivamente

dificuldades com o caminho do geckodriver

C:\Users\carlos\python.exe C:/Users/carlos/Desktop/bot-instagram-python-master/bot-instagram-python-master/src/bot-instagram.py
Traceback (most recent call last):
File "C:/Users/carlos/Desktop/bot-instagram-python-master/bot-instagram-python-master/src/bot-instagram.py", line 12, in
import botLike
File "C:\Users\carlos\Desktop\bot-instagram-python-master\bot-instagram-python-master\src\botLike.py", line 57
driver = webdriver.Firefox(executable_path=f'{C:\Users\carlos\Desktop\bot-instagram-python-master\bot-instagram-python-master\geckodriver\windows}') # geckodriver path https://github.com/mozilla/geckodriver/releases/tag/v0.26.0
^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 0-1: truncated \UXXXXXXXX escape

Process finished with exit code 1

Not posting comments with botdraw.py

Hello, I recently used your code to post a comment on one of my favorite posts. Everything works fine except when the comment is written in the text field and it must then be posted.
your code can not post comments :(

Plugin pyfiglet

Boa Tarde,
Estou com um problema que não está reconhecendo o plugin
from pyfiglet import Figlet

e já realizei a instalação.
image

Você teria como me ajudar ?

obrigado por enquanto.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.