Hi I want to scrape https://www.tiktok.com/trending?lang=en and I have to wait to load videos on it. Then I want to scrape video data.
import requests
from bs4 import BeautifulSoup as bs
page = requests.get('https://www.tiktok.com/trending?lang=en', timeout=5)
soup = bs(page.text, 'html.parser')
video_list = soup.find_all('a')
print(video_list)
The main problem is tiktok takes some time to load video list of that page. So you can check the url first and help me. I checked with selenium with phantomjs but not working. Thanks for your help.