drawrowfly / tiktok-scraper

TikTok Scraper. Download video posts, collect user/trend/hashtag/music feed metadata, sign URL and etc.
4.44k stars 805 forks source link

Deprecation Warning #612

Open njscorpion opened 3 years ago

njscorpion commented 3 years ago

Keeps getting the following Deprecation Warning and no scrapping

TikTok Bulk Scraping Started (node:52476) [DEP0123] DeprecationWarning: Setting the TLS ServerName to an IP address is not permitted by RFC 6066. This will be ignored in a future version.

If fields below will be empty then issue will be Ignored and Closed

To Reproduce Steps to reproduce the behavior: Used OS : Windows 10 21H1 Build 1052 NodeJs Version (node -v) : v14.15.4 Scraper Version (tiktok-scraper --version) : Latest (tiktok-scraper@1.4.33) CLI or Module : CLI Used method : CLI Used options : tiktok-scraper -p socks5://0.0.0.0:8080 --filepath "C:\tmp\tiktok-rip" from-file "C:\tmp\tiktok-rip\update.txt" 10 -d -s --historypath C:\tmp\tiktok-rip\tiktok.download.history --session sid_tt=xxxxxxxx (*Removed Real Proxy) Do you run the scraper through Proxy, VPN, VPS? : Socks v5 Proxy, Opened profile URL on browser via proxy without any issue If scraping from a profile. Did you checked if profile is Public? Scraper won't work with Private profiles! : Yes it's Public Profile Preferably provide URL to the profile,hashtag,video and etc page : https://www.tiktok.com/@laceycakes03

Screenshots If applicable, add screenshots to help explain your problem.

NA

fleescree commented 3 years ago

I was also having this problem with socks5 proxy I changed to HTTP and it works again.

To Reproduce Steps to reproduce the behavior: Used OS : Linux localhost 5.4.0-77-generic Ubuntu 20.04.2 LTS NodeJs Version (node -v) : v12.21.0 Scraper Version (tiktok-scraper --version) : Latest (tiktok-scraper@1.4.33) CLI or Module : CLI Used method : CLI Used options :

❯ tiktok-scraper video https://www.tiktok.com/@cutepetowner/video/6980867950899137798 -d  -p socks5://proxy.provider.com:9999 --session sid_tt=521kkadkasdaskdj4j213j12j312 # removed real session id
(node:1109288) [DEP0123] DeprecationWarning: Setting the TLS ServerName to an IP address is not permitted by RFC 6066. This will be ignored in a future version.
Error [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname/IP does not match certificate's altnames: IP: 23.10.240.40 is not in the cert's list: 

(*Removed Real Proxy) Do you run the scraper through Proxy, VPN, VPS? : Socks v5 Proxy. Also checked in browser using firefox proxy toggle extension also connecting with socks5 If scraping from a profile. Did you checked if profile is Public? Scraper won't work with Private profiles! : Yes it's Public Profile Preferably provide URL to the profile,hashtag,video and etc page : https://www.tiktok.com/@cutepetowner/video/6980867950899137798

Work around Changing the proxy from SOCKS5 to HTTP, the scrapper works as expected. Note: the provider supports SOCKS and HTTP proxy on the same port

❯ tiktok-scraper video https://www.tiktok.com/@cutepetowner/video/6980867950899137798 -d  -p proxy.provider.com:9999 --session sid_tt=521kkadkasdaskdj4j213j12j312 # removed real session id
Video location: /home/fleescree/6980867950899137798.mp4
ThaDeveloper commented 3 years ago

Still getting this error Error [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname/IP does not match certificate's altnames with proxy, can't scrap without proxy

FallingMaestro commented 3 years ago

Same issue here whenever using socks5 proxy:

(node:70563) [DEP0123] DeprecationWarning: Setting the TLS ServerName to an IP address is not permitted by RFC 6066. This will (Use 'node --trace-deprecation ...' to show where the warning was created)

And no scraping happening/working.

njscorpion commented 3 years ago

. . . Work around Changing the proxy from SOCKS5 to HTTP, the scrapper works as expected. Note: the provider supports SOCKS and HTTP proxy on the same port

❯ tiktok-scraper video https://www.tiktok.com/@cutepetowner/video/6980867950899137798 -d  -p proxy.provider.com:9999 --session sid_tt=521kkadkasdaskdj4j213j12j312 # removed real session id
Video location: /home/fleescree/6980867950899137798.mp4

Can someone confirm if this work around still working?