roju / tiktok-live-recorder

A Python script for recording TikTok live streams
MIT License
16 stars 2 forks source link

blacklist error tried with diferent user countries and tried with vpn #21

Open Liam942 opened 8 months ago

Liam942 commented 8 months ago

Unrestricted country list: https://github.com/Michele0303/TikTok-Live-Recorder/edit/main/GUIDE.md#unrestricted-country 2023-12-14 22:34:11,266 - ERROR - Exception caught in main: 2023-12-14 22:34:11,267 - ERROR - Redirect

Traceback (most recent call last): File "C:\Users\hejsa\Downloads\tiktok-live-recorder\tiktok_bot.py", line 279, in get_room_id_from_user raise errors.Blacklisted('Redirect') errors.Blacklisted: Redirect

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\hejsa\Downloads\tiktok-live-recorder\ttlr.py", line 103, in main bot.run() File "C:\Users\hejsa\Downloads\tiktok-live-recorder\tiktok_bot.py", line 87, in run raise e File "C:\Users\hejsa\Downloads\tiktok-live-recorder\tiktok_bot.py", line 48, in run self.room_id = self.get_room_id_from_user() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\hejsa\Downloads\tiktok-live-recorder\tiktok_bot.py", line 285, in get_room_id_from_user raise errors.Blacklisted(e) errors.Blacklisted: Redirect

booleangit commented 8 months ago

Same issue here! Also using the -proxy argument (TOR is installed and configured) does not solve this either.

Marksmanship256 commented 8 months ago

Same, with and without a proxy.

CyberbobGR commented 8 months ago

I'm having the same problem.

RealityQuizzicality commented 8 months ago

i think its working with vpn set to USA Houston, TX

Zopmozami commented 8 months ago

Same error with v4.2, but it's work with v4.1

booleangit commented 8 months ago

Same error with v4.2, but it's work with v4.1

Both don't work for me. It seems the default proxy (TOR) is also blocked by TikTok.

Marksmanship256 commented 8 months ago

Same error with v4.2, but it's work with v4.1

Just checked - it doesn't work on 4.1 also.

RealityQuizzicality commented 8 months ago

only working with American ip for me

RealityQuizzicality commented 8 months ago

I put on american ip and tried to record american tiktokers and failed on them as well

im using Mullvad vpn

Zopmozami commented 8 months ago

v4.1 without vpn and proxy, it's ok for me (i'm using python 3.9.7)

Live_recorder

RealityQuizzicality commented 8 months ago

v4.1 without vpn and proxy, it's ok for me (i'm using python 3.9.7)

i dont think -combine works properly in v4.1

Zopmozami commented 8 months ago

I now understand why it worked with this v4.1 I had included the cookie in the file "bot_utils.py" now it works properly with v4.2 if you included the cookie

Zopmozami commented 8 months ago

Capture d’écran 2023-12-15 155840

Marksmanship256 commented 8 months ago

Yes, it works. Thanks for the tip! v4.2 2023-12-15_171718

Liam942 commented 8 months ago

for me typing in feed/?aid makes nothing show up

SuicidalOrchid commented 8 months ago

for me typing in feed/?aid makes nothing show up

Try typing just "feed" in Network search, it should show up as I also had the same problem, and don't forget to refresh page. By the way, you can access Cookies without going to Dev Console. You can install Cookie editor extensions on your supported browser, for example EditThisCookie on Chrome.

SuicidalOrchid commented 8 months ago

I'm also trying to get it to work, but where the hell is csrf_session_id located? Searched it in feed, Cookie editor, but still can't find it.

fulopsoma23 commented 8 months ago

Yes, it worked, thank you!

It's important to look for the name feed/?WebldLastTime= in the network section. Copy all lines from the cookie section, not just csrf_session_id.

SuicidalOrchid commented 8 months ago

Yes, it worked, thank you!

It's important to look for the name feed/?WebldLastTime= in the network section. Copy all lines from the cookie section, not just csrf_session_id.

Oh, I thought that I needed csrf_session_id which I couldn't find, but it works without it. Cheers!

roberto-sartori-gl commented 8 months ago

So do we need cookies now? Not the best news...

booleangit commented 8 months ago

So do we need cookies now? Not the best news...

Indeed. You'd better start creating some burner accounts as I expect them to start blocking accounts very soon.

roberto-sartori-gl commented 8 months ago

@roberto-sartori-gl @booleangit Do you really understand how this works?

Yes, do you?

The problem is not the account being banned, the problem is that cookies may become invalid. I have my tiktok-live scripts running automatically on an headless machine, if now I have to keep the cookies up to date, it will become much more complex to manage.

roberto-sartori-gl commented 8 months ago

@roberto-sartori-gl @booleangit Do you really understand how this works?

Yes, do you? The problem is not the account being banned, the problem is that cookies may become invalid. I have my tiktok-live scripts running automatically on an headless machine, if now I have to keep the cookies up to date, it will become much more complex to manage.

Do you know how many times I have changed cookies in the T1kt0k script since 2021? One time and only because I logged in from a new phone.

I don't want to discuss this anymore, no one is forcing you. You either offer your solution, or use or do not use what you have. This is exactly how Github works.

The fact that you had to change cookies only one time, it doesn't mean that everyone will have the same experience.

And even if they change only on a new login/logout, this is still much more complex than just download a live using a script that doesn't change. Not sure why you are denying this.

booleangit commented 8 months ago

@roberto-sartori-gl @booleangit

Do you really understand how this works? Or are you afraid of the word cookies? Can you identify if it's a human refreshing the page every 30 seconds or a script? If yes, tell me how you would got it? If not.

Wow, where does this hostility come from? I've even thanked you for posting the solution. I'm a C++ developer, so Python would definitely be a hobby language in comparison, but I'm not calling you a hobbyist, am I?

All I said is that because of the cookie, they now can easily identify which account is making the requests. In the previous situation (where you're just an anonymous user), they could only block your IP if you're hammering their servers with requests. Is that really so hard to understand?