Closed lotaf99 closed 11 months ago
yeah i have same problem too whilue using -user it failed to get the room_id but if we use the room id instead of user its work as usual
my script is also like this, have been 2 days. trying to make a solving script with this too, but no luck.
# Step 3: Cari room ID dalam tag <meta>
soup = BeautifulSoup(response.text, 'html.parser')
meta_tags = soup.find_all('meta', {'content': re.compile(r'snssdk1180://live\?room_id=\d+')})
if meta_tags:
room_id = re.search(r'room_id=(\d+)', meta_tags[0]['content']).group(1)
else:
logging.error(f"Tidak dapat menemukan room ID untuk @{username}. URL mungkin tidak valid.")
print(f"Tidak dapat menemukan room ID untuk @{username}. URL mungkin tidak valid.")
return
can't get room_id without login, if we type command with user parameter we can't get room_id
while we inspect element from tiktok.com/@(user)/live , we can see the room_id in
area