kangoka / tiktodv3

Get unlimited Tik Tok views or hearts or followers or shares.
664 stars 322 forks source link

Is it still working? #86

Closed venturaEffect closed 2 years ago

venturaEffect commented 2 years ago

I'm a newbie and miss that the readme has no more information about what it does and how it works.

Anyway, appreciate your work.

I'm trying to make it work but come in some issues.

  1. One is installing selenium. I get a warning:

CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead

  1. When trying to install pip install pyfiglet==0.7.5 I still get the same error.

  2. When writing python tiktodv3.py I get:

File "tiktodv3.py", line 46 system(f'title TIKTOD V3 ^| Views Sent: {beautify(Views)} ^| Elapsed Time: {time_elapsed}') ^ SyntaxError: invalid syntax

  1. When adding the URL I get this message:

`TikTok video URL: https://www.tiktok.com/@abcd Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/common/service.py", line 76, in start stdin=PIPE) File "/usr/lib/python3.6/subprocess.py", line 729, in init restore_signals, start_new_session) File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'chromedriver.exe': 'chromedriver.exe'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "tiktodv3.py", line 31, in driver = webdriver.Chrome(r"chromedriver.exe", options=chrome_options) File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/chrome/webdriver.py", line 73, in init self.service.start() File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/common/service.py", line 83, in start os.path.basename(self.path), self.start_error_message) selenium.common.exceptions.WebDriverException: Message: 'chromedriver.exe' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home`

Does anyone know what to do? Also, how do I work with settings like adding my username and so forth? I'm curious to use this but don't know what it does. Appreciate any help and more info about it.

Thanks in advance.

Oliver-Johnson commented 2 years ago

Issue 1 and 2 mean its using an older method rather than the latest method. - Should be fine but maybe you want to update pip? Issue 3 looks like maybe you might be using python 2 instead of python 3? and with issue 4, have you installed the chromedriver.exe and put it in the same folder as the python file?

venturaEffect commented 2 years ago

Thanks for your answer.

Issue 1 and 2, seems not be an issue. Because it seems to work. Issue 3, I'm now using python3.

Issue 4. I've installed from the link the chromedriver for my Chrome version. Installed the chromedriver folder on the same folder that the python file. Thinking maybe it is that what gives me error, took the chromedrive file that is inside the folder and added into the same folder that the python file. No success.

Any suggestions?

Oliver-Johnson commented 2 years ago

When installing the chromedriver file, did it come in a .zip file? If it did make sure you properly extracted that file before putting it into the same location as the python file. If you had properly extracted it, what you said about initially installing the folder in the same location shouldn't have an effect. Do ensure you haven't renamed the chromedriver too. it should be called chromedriver.exe with no capitals. One error you had says executable needs to be in PATH. From my experience this is not necessary, but if anything else I've said doesn't help you could try doing that. If you need help with that do ask.

venturaEffect commented 2 years ago

What I've seen is that the chorme driver is just called chromedriver no .exe what is strange because I downloaded from the link it is in readme. And have downloaded for my Chrome version Versión 97.0.4692.71 (Build oficial) (64 bits) and for Linux 64 bits.

No idea why it isn't working. Should I change the name of the file into chromedriver.exe?

Appreciate a ton your time-

venturaEffect commented 2 years ago

I have changed now the name of the file into chromedriver.exe and tried again. I get this error:

`Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/common/service.py", line 76, in start stdin=PIPE) File "/usr/lib/python3.6/subprocess.py", line 729, in init restore_signals, start_new_session) File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'chromedriver.exe': 'chromedriver.exe'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "tiktodv3.py", line 31, in driver = webdriver.Chrome(r"chromedriver.exe", options=chrome_options) File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/chrome/webdriver.py", line 73, in init self.service.start() File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/common/service.py", line 83, in start os.path.basename(self.path), self.start_error_message) selenium.common.exceptions.WebDriverException: Message: 'chromedriver.exe' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home`

Oliver-Johnson commented 2 years ago

Are you using a linux machine then? I don't have any experience running selenium with chromedriver on a linux machine, only a couple of things I could suggest trying.

change this line driver = webdriver.Chrome(r"chromedriver.exe", options=chrome_options) to driver = webdriver.Chrome("./chromedriver.exe", options=chrome_options)

If that doesn't work, there was a pull request made a few months ago, which hasn't been merged with the main path yet. You could try to follow that using the code there instead of this main branch. It uses a chromedriver binary instead of the .exe which might work for you.

Oliver-Johnson commented 2 years ago

Easiest way to get there, would be to follow the instructions in this link. https://github.com/itseasy21/tiktodv3

venturaEffect commented 2 years ago

I've followed the instructions and being on the folder tiktodv3-master on the terminal when I write pip install -r requirement.txt I get an error:

~/tiktok-bot/tiktodv3-master$ pip install -r requirement.txt /usr/lib/python3/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead from cryptography.utils import int_from_bytes /usr/lib/python3/dist-packages/secretstorage/util.py:19: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead from cryptography.utils import int_from_bytes Defaulting to user installation because normal site-packages is not writeable ERROR: Could not open requirements file: [Errno 2] the file or directory doesn't exist: 'requirement.txt'

Note also that it tells to write requirements.txt in plural. But the file is in singular!

Tried both ways with no success. Can't understand what is wrong making it work.

Appreciate your time.

Oliver-Johnson commented 2 years ago

Thats a nice spot! So yes make it singular. you'll need to move the command line interface into the correct location before you run the pip install line. Type cd location where location is where its stored e.g C:\Users\olive\Documents\Python\Projects\ So for me looks like cd C:\Users\olive\Documents\Python\Projects\

venturaEffect commented 2 years ago

Oh, sorry. My fault. I had twice the file tiktodv3-master

Oliver-Johnson commented 2 years ago

The file is in one more file down. There's the 2nd file /tiktodv3-master/tiktodv3-master so cd into the 2nd one. if that doesn't work. Just do each line at a time pip install chromedriver-binary pip install selenium pip install pyfiglet==0.7.5

venturaEffect commented 2 years ago

After doing how you mean could get it run but when I enter the tiktok URL from the account I get:

Traceback (most recent call last): File "tiktodv3.py", line 32, in <module> driver = webdriver.Chrome( options=chrome_options) File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/chrome/webdriver.py", line 81, in __init__ desired_capabilities=desired_capabilities) File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__ self.start_session(capabilities, browser_profile) File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute self.error_handler.check_response(response) File "/usr/local/lib/python3.6/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 100 Current browser version is 99.0.4844.51 with binary path /usr/bin/google-chrome

I think this means the chromedriver is not with my chrome version. Tried downloading my version but the folder downloaded doesn't have a chromedriver.exe . It has just a chromedriver file. Without .exe

Oliver-Johnson commented 2 years ago

Try running this piece of code pip install --upgrade --force-reinstall chromedriver-binary-auto I believe it should reinstall the correct version for your pc

venturaEffect commented 2 years ago

Yes it works!

But, what makes tiktodv3.py ? It sends me to a page and when I add the URL from a video it just tells me the views. I thought it would increase the views. I'm wrong?

Appreciate your time answering me!

Oliver-Johnson commented 2 years ago

It should send you to a page, input the URL, and then it clicks on the views. If you leave it running for 20 minutes and then check your views on tiktok again you should notice a difference. an hours use might get you ~10k views

venturaEffect commented 2 years ago

Oh, ok!

Will do that!

Thanks!

venturaEffect commented 2 years ago

I get all the time on terminal:

sh: 1: Elapsed: not found sh: 1: title: not found

Is it normal?

Oliver-Johnson commented 2 years ago

I'm not too sure... I run a slimmed down version of the code which removes the changing title so I don't have a problem with that at all.

venturaEffect commented 2 years ago

Ok, it seems to work at the beginning but after a while it stops to increase the number of views. Is it maybe because I'm opening tiktok on other device. Should we take care of something when handling with this automation?

Appreciate your time

Oliver-Johnson commented 2 years ago

Thats strange, does the kernel output anything suggesting why? I haven't had any problems with it. I don't see how opening tiktok would impact it. Are you checking the view count using the app or website? Try using the website... It seems to update more accurately.

Oliver-Johnson commented 2 years ago

oh and btw if you're happy, close this issue just to tidy up the issue panel.

venturaEffect commented 2 years ago

Thats strange, does the kernel output anything suggesting why? I haven't had any problems with it. I don't see how opening tiktok would impact it. Are you checking the view count using the app or website? Try using the website... It seems to update more accurately.

Thaks for the response. I'm using both website and app. And it seems it starts good at the beginning but then it stops. It increase around 800 views and then nothing more.

Yes, I will close this issue. But first if you don't mind would like to know what it can do this automation. Because on the readme it doesn't explain what all it can do.

Again appreciate your effort answering me. Really appreciate

Oliver-Johnson commented 2 years ago

Ideally this code automates the use of a website that allows you to get views and followers and other things. Currently the only feature that works reliably is Views, because the website isn't running the pages for followers. When using views every 5 minutes you should gain around 800ish views as you saw this all come at once. When other settings are fixed, it may be possible to utilise them. However I believe the program would need some adjustments to work with them.

korenhskoh commented 2 years ago

Hey Guys, any advice for this ? selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 97 Current browser version is 99.0.4844.82 with binary path C:\Program Files (x86)\Google\Chrome\Application\chrome.exe Stacktrace:

ezzcodeezzlife commented 2 years ago

You need another version of chromedriver. like the message said: your chrome is version 99 and your current driver does not support this version. just download the correct driver for your chrome version 🔥