Closed Mayaman5566 closed 3 years ago
@Mayaman5566 Check now. Please follow the README properly.
ï¼ 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'
@Mayaman5566 can you share the entire log
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'
@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
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'
Seems the update is not properly applied on your end. You should see one extra logging information about test end points.
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'
@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
@Mayaman5566 Did it work?
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'
@Mayaman5566 My best guess is this is to do with your connection/proxy. Cannot say for sure though
closing as it seems to be a user specific issue
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.