Git Product home page Git Product logo

Comments (6)

simonfarah avatar simonfarah commented on June 14, 2024

Try running this command : pip install selenium==3.141.0
Then try to run the script again. If this still doesn't work, you might be using the wrong version of the chrome driver. The chrome driver version must be the same as your google chrome browser.
And if none of the above is working, please tell so I can try to solve the error you're getting.

from tiktok-bot.

simonfarah avatar simonfarah commented on June 14, 2024

no response, issue will be closed

from tiktok-bot.

hungrybearpls avatar hungrybearpls commented on June 14, 2024

Receiving similar error.

Have ChromeDriver executable file in the Bot folder.

When running the bot, am prompted to enter which service is required. Upon entering number, receive error

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/common/service.py", line 72, in start
    self.process = subprocess.Popen(cmd, env=self.env,
  File "/usr/local/Cellar/[email protected]/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/local/Cellar/[email protected]/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1821, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/Users/hungrybear/Desktop/Bots/TikTok-Bot-main/chromedriver.exe'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/hungrybear/Desktop/Bots/TikTok-Bot-main/tiktok-bot.py", line 182, in <module>
    driver = webdriver.Chrome(PATH)
  File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__
    self.service.start()
  File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/common/service.py", line 81, in start
    raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'chromedriver.exe' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

ChromeDriver version is 96 but Chrome is 97.

brew install --cask [email protected]
Cask '[email protected]' is unavailable: No Cask with this name exists.

Thanks for your help

HB

from tiktok-bot.

simonfarah avatar simonfarah commented on June 14, 2024

Hello! Thank you for sharing the issue. So the script is running fine on my local machine, so lets try to find a solution for you. First, be sure that your chromedriver is the same version of your chrome browser. Then, on line 181, replace PATH = os.getcwd() + "/chromedriver.exe" with PATH = "./chromedriver.exe", save the file and rerun the script. If this still doesn't work, send me a screenshot of your installation directory, and I'll be working on another solution.

from tiktok-bot.

hungrybearpls avatar hungrybearpls commented on June 14, 2024

Got it to work, however the likes to the hearts on the video did not increase.

from tiktok-bot.

simonfarah avatar simonfarah commented on June 14, 2024

Great to hear. Well for the likes, that would be a zefoy problem, I can't control that.

from tiktok-bot.

Related Issues (20)

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.