dobizz / TikTok

Download public videos on TikTok using Python with Selenium
MIT License
48 stars 24 forks source link

Any version 83 available on official site throws an error #2

Closed ind3p3nd3nt closed 4 years ago

ind3p3nd3nt commented 4 years ago

I've installed with pip3 install -r requirements.txt then independent@kali:~/TikTok$ python3 run.py -=[ TikTok Public Video Scraper ]=-

0 - Scrape by Trending Videos 1 - Scrape by Username 2 - Scrape by Music [WIP] 3 - Scrape by Hashtag [WIP]

Enter choice [0-3]: 1 Enter username to scrape: mollyeskam

How many vidoes would you like to scrape [-1 for all possible]: -1 User-Agent: Naverbot IP Address: 74.12.213.95 Traceback (most recent call last): File "run.py", line 215, in loop.run_until_complete(scrape(mode, username=username, count=count, likes=likes, views=views, shares=shares, comments=comments)) File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete return future.result() File "run.py", line 74, in scrape tt = TikTok(proxify=False) File "/home/independent/TikTok/api.py", line 65, in init self.driver = webdriver.Chrome(self.driver_path, options=self.chrome_options) File "/usr/lib/python3/dist-packages/selenium/webdriver/chrome/webdriver.py", line 95, in init RemoteWebDriver.init( File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/webdriver.py", line 152, in init self.start_session(capabilities, browser_profile) File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/webdriver.py", line 249, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/webdriver.py", line 318, in execute self.error_handler.check_response(response) File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 83

Exception ignored in: <function TikTok.del at 0x7fa737fa2a60> Traceback (most recent call last): File "/home/independent/TikTok/api.py", line 88, in del AttributeError: 'TikTok' object has no attribute 'driver'

dobizz commented 4 years ago

Could you check the version of Chrome installed in your system? If it is not version 83 (current stable release), you could either update/downgrade your Chrome installation or download the version of the ChromeDriver that matches your current Chrome installation from here https://chromedriver.chromium.org/downloads I will try to find a way to address this issue to automatically detect the installed version and download the respective ChromeDriver. Currently it only downloads the current stable release, as it assumes that the system has the same version of Chrome installed.

dobizz commented 4 years ago

Please check the latest commit 6dbed56. I will close this now. Thanks