Michele0303 / tiktok-live-recorder

🎥✨ A TikTok live streaming recorder tool written in Python. Capture and relive your favorite TikTok moments effortlessly. 🎥✨
MIT License
373 stars 102 forks source link

"Invalid URL" error. Script does not work #4

Closed Tempo-c closed 1 year ago

Tempo-c commented 1 year ago

Done in PowerShell 7 on windows 10

Command used: py main.py -room_id 7276784253637265062 -mode manual

Output:


| () || || | | | () __ | _ _ | |_ | | | | / / | |/ _ \ / / | || \ V / -) | / -) / \ '/ ` / -) '| || ||_\ ||_/_\ |____||_/_| ||____/| _,\|_|

[] USERNAME: imkevinhart [] ROOM_ID: 7276784253637735062 [] URL M3U8 [] URL FLV

[*] RECORDING... Invalid URL '': No scheme supplied. Perhaps you meant http://?

Michele0303 commented 1 year ago

Try the new version.

When a user has never been live, it is not possible to get the room_id

3v3rm4rt3lL commented 1 year ago

Try the new version.

When a user has never been live, it is not possible to get the ro

the first time when I use it worked, but after I always got this error : HTTPConnectionPool(host='pull-flv-f16-tt02.fcdn.us.tiktokv.com', port=80): Max retries exceeded with url: /stage/stream-35709xxxxx74_or4/index.flv (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x00000268EEAF0D30>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

What should got wrong.

Michele0303 commented 1 year ago

From the tests I did, "imkevinhart" has never been live, so you have no way of knowing his room_id

spinningsand commented 1 year ago

Try the new version. When a user has never been live, it is not possible to get the ro

the first time when I use it worked, but after I always got this error : HTTPConnectionPool(host='pull-flv-f16-tt02.fcdn.us.tiktokv.com', port=80): Max retries exceeded with url: /stage/stream-35709xxxxx74_or4/index.flv (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x00000268EEAF0D30>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

What should got wrong.

I got the same error from everyone I tried, even when they were live. It worked the first time (used manual mode), then I used automatic mode on someone who was offline and noticed it didn't start working when they went online. Now it won't work at all in either mode.

EDIT: Is it possible that it's blocking the IP?

3v3rm4rt3lL commented 1 year ago

I tried with vpns is not a blocking ip, i still have this issue, is something about https and http i think I tried other code made with node js, and works perfect, every live.

spinningsand commented 1 year ago

I tried with vpns is not a blocking ip, i still have this issue, is something about https and http i think I tried other code made with node js, and works perfect, every live.

What's the other code?

Michele0303 commented 1 year ago

I think I understand the problem. As soon as I can I will solve

3v3rm4rt3lL commented 1 year ago

Thank you Michele.

spinningsand commented 1 year ago

Any updates?

Michele0303 commented 1 year ago

Fixed

3v3rm4rt3lL commented 1 year ago

How can I get work youtube-dl.exe on linux ? Thanks.

3v3rm4rt3lL commented 1 year ago

How can I get work youtube-dl.exe on linux ? Thanks.

got it, thanks.

spinningsand commented 1 year ago

I get this error when I try to use it:

'youtube-dl' is not recognized as an internal or external command,
operable program or batch file.

I have youtube-dl and it's added to my PATH.

3v3rm4rt3lL commented 1 year ago

Windows or linux?

spinningsand commented 1 year ago

Windows

3v3rm4rt3lL commented 1 year ago

Well, when I running something like this I try run the terminal or powershell where youtube-dl.exe is. And then run it the live tiktok py.

spinningsand commented 1 year ago

The tiktok py and youtube-dl are both in the same directory if that's what you mean.

3v3rm4rt3lL commented 1 year ago

And obvsly you terminal is running in the folder path. Right? Because I tested right now and it works for me, pretty well.

spinningsand commented 1 year ago

Yes, I go to cd TikTok-Live-Recorder before I try using it. The default directory my terminal starts out in is the same one that youtube-dl and the tiktok py are both in.

Michele0303 commented 1 year ago

I get this error when I try to use it:

'youtube-dl' is not recognized as an internal or external command,
operable program or batch file.

I have youtube-dl and it's added to my PATH.

Try: pip install youtube-dl

spinningsand commented 1 year ago

I get this error when I try to use it:

'youtube-dl' is not recognized as an internal or external command,
operable program or batch file.

I have youtube-dl and it's added to my PATH.

Try: pip install youtube-dl

Thanks! This did help and it works now.

I did notice that the automatic mode doesn't work. If you run a command in automatic mode when someone is offline, it doesn't start working after they come on. It only repeats this as if they're still offline:

[*] [user] is offline
waiting 5 minutes before recheck