Coombaa / TTAutoRecord

TikTok Live AutoRecorder for Windows
41 stars 2 forks source link

No active stream links found #46

Open apexmod2 opened 2 weeks ago

apexmod2 commented 2 weeks ago

Trying everything but I seem to not to be able to run the program correctly. I followed the guide and installed all prerequisites but still get ,"No active stream links found". I am able to authenticate my account using the cookies but that's as far as it gets. (see screenshot) I have tried Windows 11, Windows 10, and Ubuntu. I have also tried using multiple different account methods such as email/phone login, google login, and twitter/x login. Tried using different versions of the program too. I made sure on all the account I was following accounts that were actively live streaming but that didn't seen to help. What am I doing wrong? image

nmro97 commented 2 weeks ago

did u change tiktok to english ?

nmro97 commented 2 weeks ago

AND as i see ure not using the newest version ure using v4.1.0 -

apexmod2 commented 2 weeks ago

Yes language is set to English and I just happened to be using an older version in the screenshot but I have also tried the latest version too.

FabLeKebab commented 1 week ago

I think the problem is with Firefox, as an error message appears: 'The page is unavailable. We are sorry! Please try again later.' Then, on TTAutoRecord, it says: 'No active stream links found'

nmro97 commented 1 week ago

same problem for me same error in firefox since today

FabLeKebab commented 1 week ago

It's happening to me now with Chrome and Firefox, I think they are updating again :s

jean75000 commented 1 week ago

same for me today :(, I updated Firefox and Chrome, I relaunched and it works for the moment :)

quick question, do you know why the project was made with Firefox as the browser and not Chrome?

FabLeKebab commented 1 week ago

It's all good for me too, everything restarted without any issues! As for Mozilla, it's probably because Geckodriver is designed to be compatible with that browser (I suppose)

jean75000 commented 1 week ago

yes but for chrome there is chromedriver and I find that tiktok works much better with chrome (faster to load live) less display bugs

Coombaa commented 1 week ago

same for me today :(, I updated Firefox and Chrome, I relaunched and it works for the moment :)

quick question, do you know why the project was made with Firefox as the browser and not Chrome?

I cant remember exactly now, I initially did it with chrome and was having issues but it was a while ago now. Feel free to do a PR if you can get it working well with chrome.

Recently they have been killing off sessions often. If you get no active links then you probably got logged out and will need to get fresh cookies.

Ideally it should log back in automatically when this happens with stored credentials, however it doesn't like the automated browser.

jean75000 commented 1 week ago

Thanks for your answer, I'm not good enough for that :( but I often use Tiktok on firefox and Chrome and I see that the pages and lives load faster with chrome

yes I think so because after several months of testing (the script runs 24/7 on a dedicated server) I noticed that Tiktok randomly disconnects my account (I kept 16 days connected at most) I have to monitor my server and reconnect regularly my tiktok account

@Coombaa for me the two parts to improve:

Coombaa commented 1 week ago

I am working on it now, i have converted it to undetected_chromedriver and also removed the cookie file bs. It now uses your main browser session which should fix OPs issue.

Next i will add a telegram notification, however it will require the user to set up their own bot through botfather

jean75000 commented 1 week ago

Cool Thanks !!!

jean75000 commented 2 days ago

I am working on it now, i have converted it to undetected_chromedriver and also removed the cookie file bs. It now uses your main browser session which should fix OPs issue.

Next i will add a telegram notification, however it will require the user to set up their own bot through botfather

@Coombaa I saw that there was a version 4.2 of the program, is it usable as is?

FabLeKebab commented 1 day ago

I am working on it now, i have converted it to undetected_chromedriver and also removed the cookie file bs. It now uses your main browser session which should fix OPs issue. Next i will add a telegram notification, however it will require the user to set up their own bot through botfather

@Coombaa I saw that there was a version 4.2 of the program, is it usable as is?

image I’ve just launched version 4.2.0, and so far, everything is running smoothly. You just need to install ChromeDriver using the requirements file, then update Chrome to version 130. To do that, click on the three dots in the top-right corner of the browser, go to “Help” at the bottom, and then select « Update »

You can have both versions side by side, meaning you can keep the old version (4.1.2) alongside the new version (4.2.0). Then, it’s necessary to run pip install, which will install ChromeDriver for the version necessary for Chrome

jean75000 commented 1 day ago

This version now uses Chrome and no longer Firefox, is that it? If this is the case, there is normally no longer any need for GeckoDriver, it is reserved for Firefox. On Chrome, ChromeDriver is the one to use

nmro97 commented 1 day ago

This version now uses Chrome and no longer Firefox, is that it?

the problem was that tiktok logged you out after some time so this one should work better i gues

FabLeKebab commented 1 day ago

Cette version utilise désormais Chrome et non plus Firefox, c'est ça ? Si tel est le cas, GeckoDriver n'est normalement plus nécessaire, il est réservé à Firefox. Sur Chrome, ChromeDriver est celui à utiliser

Yes, it's indeed ChromeDriver. I thought I had made a mistake, so I made a correction, but I ended up making another mistake while correcting, haha. For now, since I sent the message, everything is working very well. And indeed, I no longer need Firefox; it's much better!

Ps : Regarding RAM, I feel like the manager is much calmer with Chrome, especially compared to Firefox, where I had a multitude of tabs open to run TTAutoRecord

FabLeKebab commented 1 day ago

Cette version utilise désormais Chrome et non plus Firefox, c'est ça ?

le problème était que tiktok vous a déconnecté après un certain temps, donc celui-ci devrait mieux fonctionner, je suppose

Yes, that's right, TikTok disconnected me three times in one day, but since then, I haven't had any more disconnections. I prefer to start directly from version 4.2.0 and update it gradually, and then configure my bot on Telegram

jean75000 commented 1 day ago

The other tiktok stream recording projects are all based on Chrome.

I have been using for several months in parallel with this project another project based on chrome (selenium steath) and cookies and I have never been disconnected so I think it is more reliable with Chrome.

the Tiktok website is smoother (loading of lives and pages faster on chrome) and less buggy (impossible to comment on lives on firefox and sometimes we can no longer like lives) on Chrome than on Firefox

nmro97 commented 1 day ago

i have the error could not detect version_main.therefore we are assuming it is chrome 108 or higher how do i fix this

FabLeKebab commented 1 day ago

Honestly, Firefox really got on my nerves because I couldn't do anything anymore. But even on Chrome, there's still an issue: for now, you can't subscribe (and it's been like that for a while). I don't know if it's a general problem or just me, but it's pretty annoying...

nmro97 commented 1 day ago

i cant use the new version its says no stream link found idk why

FabLeKebab commented 1 day ago

i have the error could not detect version_main.therefore we are assuming it is chrome 108 or higher how do i fix this

Even if you let it run, does it keep showing the same error on a loop? Because I get that message too, but it’s more of a warning. It only shows up at the start, and then it works fine afterwards (as you can see in the screenshot I posted above) ?

nmro97 commented 1 day ago

i have the error could not detect version_main.therefore we are assuming it is chrome 108 or higher how do i fix this

Even if you let it run, does it keep showing the same error on a loop? Because I get that message too, but it’s more of a warning. It only shows up at the start, and then it works fine afterwards (as you can see in the screenshot I posted above) ?

it says no active stream link found

FabLeKebab commented 1 day ago

i cant use the new version its says no stream link found idk why

They probably updated TikTok in your region, but not yet on our side. They must be doing it in waves, so it’s possible that we’ll experience these errors soon too...

nmro97 commented 1 day ago

i cant use the new version its says no stream link found idk why

They probably updated TikTok in your region, but not yet on our side. They must be doing it in waves, so it’s possible that we’ll experience these errors soon too...

i dont think so the main version with firefox works fine for me

nmro97 commented 1 day ago

so i installed the requirements file add the cookies from tiktok/live , do i need to do anything else ?

FabLeKebab commented 1 day ago

so i installed the requirements file add the cookies from tiktok/live , do i need to do anything else ?

Normally no, except for updating Chrome to version 130 if you haven't done so already, as mentioned above

nmro97 commented 1 day ago

so i installed the requirements file add the cookies from tiktok/live , do i need to do anything else ?

Normally no, except for updating Chrome to version 130 if you haven't done so already, as mentioned above

ok solved the problem on chrome it wasnt on english :D

jean75000 commented 1 day ago

@FabLeKebab it's a bug on Tiktok on web browser you can't follow people.

you have to use the smartphone app to follow people and even then sometimes it doesn't work :(

jean75000 commented 1 day ago

at one point I was blocked, unable to follow anyone on my phone, it unchecked the follow button every time I clicked on it.

I had to create a 2nd account and I did some tests again some time later (10 days) on my 1st account and it worked again ...

FabLeKebab commented 1 day ago

That's what I do too; I use my phone to follow people, even though it's rare for me to follow someone. I don't know if it has to do with following a lot of accounts at once, but in my case, I've never had a problem following anyone on my phone (knock on wood)

jean75000 commented 22 hours ago

small question is it possible to put a more up-to-date ffmpeg binaries I see that the one provided is a year old (I have live which bugs from time to time I have the sound but not the image) I don't know if that can improve

jean75000 commented 5 hours ago

this error :

i have the error could not detect version_main.therefore we are assuming it is chrome 108 or higher how do i fix this

I analyzed the script it is missing version_main = 130 in the script

image

it must surely be intentional because I think it must be modified manually each time the version is changed (131,132....) so I suppose that is why the parameter is not present I have not tested but I think that if we put

driver = uc.Chrome(options = options, version_main = 130)

there should no longer be the error message (I haven't tested it because the script is already running :) )