Giter VIP home page Giter VIP logo

insta-bot-tutorial's Introduction

๐Ÿ‘จ๐Ÿผโ€๐ŸŽจ About Me:

๐Ÿ‘‹ Hi, Iโ€™m Farzan Yaz!
๐ŸŽ“ I'm a 5th-year Computer Science student at McMaster.
๐Ÿฅฅ I interned at Coconut Software as a Junior Software Developer!
๐Ÿ’ป I'm currently creating with TypeScript, Next.js, React, Prisma, and PostgreSQL.
๐ŸŽฅ I create programming content on YouTube and my personal website as blog posts.
โšก๏ธ Fun fact - I have nearly 3000 hours on CSGO!

Websites

๐ŸŒ Socials:

Instagram LinkedIn X YouTube

๐Ÿ’ป Tech Stack:

JavaScript HTML5 CSS3 PHP Python Rust TypeScript DigitalOcean Netlify Vercel Flask Laravel MUI NPM Next JS NodeJS React Socket.io TailwindCSS Postgres Adobe Photoshop Adobe Premiere Pro Figma Docker CIRCLECI

๐Ÿ“Š GitHub Stats:


โœ๏ธ Random Dev Quote


insta-bot-tutorial's People

Contributors

farzany avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

insta-bot-tutorial's Issues

(method) CreateFiles: () -> None

The follow user's followers is working as it should, but it's not creating the files on Visual Studio.
When I hover over the self.CreateFiles() it shows "(method) CreateFiles: () -> None".

When I tested the Unfollow Users function. it gave me those errors:

Choice: 2
How many to unfollow? (followed 10) 3
Traceback (most recent call last):
File "c:\Users\Vitor Santos\Documents\Instagram\insta-bot-tutorial-main\insta-bot-tutorial-main\InstagramBot [Episode 2].py",
line 247, in
TestRuns = InstagramBot("nintenshirts", "123789456s3")
File "c:\Users\Vitor Santos\Documents\Instagram\insta-bot-tutorial-main\insta-bot-tutorial-main\InstagramBot [Episode 2].py",
line 21, in init
self.Choose()
File "c:\Users\Vitor Santos\Documents\Instagram\insta-bot-tutorial-main\insta-bot-tutorial-main\InstagramBot [Episode 2].py",
line 36, in Choose
self.UnfollowFollowed()
File "c:\Users\Vitor Santos\Documents\Instagram\insta-bot-tutorial-main\insta-bot-tutorial-main\InstagramBot [Episode 2].py",
line 206, in UnfollowFollowed
self.UnfollowUser(user)
File "c:\Users\Vitor Santos\Documents\Instagram\insta-bot-tutorial-main\insta-bot-tutorial-main\InstagramBot [Episode 2].py",
line 75, in UnfollowUser
self.driver.find_element_by_xpath("/html/body/div[5]/div/div/div/div[3]/button[1]").click()
File "C:\Users\Vitor Santos\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py",
line 394, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "C:\Users\Vitor Santos\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py",
line 976, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "C:\Users\Vitor Santos\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py",
line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\Vitor Santos\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"/html/body/div[5]/div/div/div/div[3]/button[1]"}
(Session info: chrome=92.0.4515.131)

I'm a complete beginner on codding and VS, I would appreciate a lot if you could help me. Thank you!

Set time-frame to unfollow

Hi Farzany,
I am new to using Python and recently started learning. And tried to implement your code for follow-unfollow bot on Instagram.
However, there is an additional if function I wanted to add and was having difficulty identifying what code should be used and where to put it, required function as below:

When unfollowing from followed list, only unfollow after username has been in the list for x amount of days and keep the rest.

What would be the code? and should it be added in the def UnfollowedFollowed? remFollowedList? or Unfollowuser?

Your help will be massively appreciated.
Thanks!
Gaurav

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.