CuriousYoda / tiktok-downloader

Downloads TikTok videos for a given user without water marks
MIT License
18 stars 3 forks source link

some problems #2

Closed Mayaman5566 closed 3 years ago

Mayaman5566 commented 3 years ago

Hi,

I use in the cmd the program works until it asks me to enter the number of tiktoks to download my python version is 3.9.5 Regards. gt

CuriousYoda commented 3 years ago

@Mayaman5566 Check now. Please follow the README properly.

Mayaman5566 commented 3 years ago

ï¼ CuriousYoda Hi, earlier problem is solved! but have new error

i think this error means that selenium is not launching correctly?

tik-tok-scraper.py", line 149, in <module>userPosts = api.byUsername(username, count=videosToDownload)
AttributeError: 'TikTokApi' object has no attribute 'byUsername'
CuriousYoda commented 3 years ago

@Mayaman5566 can you share the entire log

Mayaman5566 commented 3 years ago

Sure!

C:\Users\Mayaman\Documents\python\tiktok-downloader-main>python tik-tok-scraper.py
Setting up the selenium headless Chrome Driver
Setting up a connection to unofficial TikTokAPI
Setting up the session for requests

Do you wish to download TikToks for a
   1: User or
   2: HashTag
1
Enter the tik tok user name: Tiktok
Enter the number of tiktoks to download: 1
Traceback (most recent call last):
  File "C:\Users\Mayaman\Documents\python\tiktok-downloader-main\tik-tok-scraper.py", line 149, in <module>
    userPosts = api.byUsername(username, count=videosToDownload)
AttributeError: 'TikTokApi' object has no attribute 'byUsername'
CuriousYoda commented 3 years ago

@Mayaman5566 It could be the case that test end points are not accessible in your setup. I made it optional to use_test_endpoints.

Please do a git pull and try again

Mayaman5566 commented 3 years ago

The problem still exists, the error message is same :cry:

C:\Users\Mayaman\Documents\python\tiktok-downloader-main>python tik-tok-scraper.py
Setting up the selenium headless Chrome Driver
Setting up a connection to unofficial TikTokAPI
Setting up the session for requests

Do you wish to download TikToks for a
   1: User or
   2: HashTag
1
Enter the tik tok user name: Tiktok
Enter the number of tiktoks to download: 5
Traceback (most recent call last):
  File "C:\Users\Mayaman\Documents\python\tiktok-downloader-main\tik-tok-scraper.py", line 162, in <module>
    userPosts = api.byUsername(username, count=videosToDownload)
AttributeError: 'TikTokApi' object has no attribute 'byUsername'
CuriousYoda commented 3 years ago

Seems the update is not properly applied on your end. You should see one extra logging information about test end points.

image

Mayaman5566 commented 3 years ago

Because i set VERIFY_FP :sweat_smile: now i removed him

C:\Users\Mayaman\Documents\python\tiktok-downloader-main>python tik-tok-scraper.py
Setting up the selenium headless Chrome Driver
Setting up a connection to unofficial TikTokAPI
Missing property value: VERIFY_FP
NOT USING TEST END POINTS
Setting up the session for requests

Do you wish to download TikToks for a
   1: User or
   2: HashTag
1
Enter the tik tok user name: Tiktok
Enter the number of tiktoks to download: 1
Traceback (most recent call last):
  File "C:\Users\Mayaman\Documents\python\tiktok-downloader-main\tik-tok-scraper.py", line 162, in <module>
    userPosts = api.byUsername(username, count=videosToDownload)
AttributeError: 'TikTokApi' object has no attribute 'byUsername'
CuriousYoda commented 3 years ago

@Mayaman5566 Do you have the chromedriver downloaded and added to the folder? I think this was not clear in the documentation. I will update the README

  1. Do another git pull.
  2. Make sure your chromedriver is in the folder. Download the correct version matching your chrome browser version.
  3. Give it another go
CuriousYoda commented 3 years ago

@Mayaman5566 Did it work?

Mayaman5566 commented 3 years ago

doesn't work Actually I tried other Tiktok downloader project Surprisingly, the error codes is same I suspect it's my own problem

Setting up the selenium headless Chrome Driver
Setting up a connection to unofficial TikTokAPI
Missing property value: VERIFY_FP
Setting up the session for requests

Do you wish to download TikToks for a
   1: User or
   2: HashTag
1
Enter the tik tok user name: Tiktok
Enter the number of tiktoks to download: 1
Traceback (most recent call last):
  File "c:\Users\Mayaman\Documents\python\tiktok-downloader-main\tik-tok-scraper.py", line 163, in <module>
    userPosts = api.byUsername(username, count=videosToDownload)
AttributeError: 'TikTokApi' object has no attribute 'byUsername'
CuriousYoda commented 3 years ago

@Mayaman5566 My best guess is this is to do with your connection/proxy. Cannot say for sure though

CuriousYoda commented 3 years ago

closing as it seems to be a user specific issue