TikTok Data Extractor
Pay $4.00 for 1,000 results
TikTok Data Extractor
Pay $4.00 for 1,000 results
Extract data about videos, users, and channels based on hashtags or scrape full user profiles including posts, total likes, name, nickname, numbers of comments, shares, followers, following, and more.
Do you want to learn more about this Actor?
Get a demoStarting yesterday, I started getting an error when trying to fetch TikTok post information using the ApifyClient package in Python. This code had been working for months prior and hadn't changed.
Here is the error:
Client.init() got an unexpected keyword argument 'follow_redirects'
And here is the code:
def download_slideshows(slideshow_urls, directory, username): # Given a user and a list of slideshow post urls, download the images in the slideshow to the # user's directory. Use Apify's "free-tiktok-scraper" API to do so. slideshow_files = [] parent_directory = os.path.dirname(directory) num_slideshows_downloaded = 0 client = ApifyClient("apify_api_Hk9[...]H0JhDNF")
1run_input = { 2 "postURLs": slideshow_urls, 3 "shouldDownloadVideos": False, 4 "shouldDownloadCovers": False, 5 "shouldDownloadSubtitles": False, 6 "shouldDownloadSlideshowImages": False # don't download them to Apify's server 7} 8 9try: 10 # Get a list of json blobs representing slideshow posts 11 run = client.actor("clockworks/free-tiktok-scraper").call(run_input=run_input) 12 response = client.dataset(run["defaultDatasetId"]).list_items() 13 slideshows = response.items
... ... # do stuff with json
Nevermind I updated the package and it fixed it lol
Hi, thanks for opening this issue!
Yeah, our python clients are always getting updated so it's possible that you had some older broken version installed. If you want more stability then you can use our JavaScript client. It's also better integrated with our platform as a whole as most scrapers are built on JS/TS :)
Let me know if you have any more questions about the clients :) Thanks and happy scrapping!
Actor Metrics
1.7k monthly users
-
286 stars
>99% runs succeeded
1.8 days response time
Created in Feb 2022
Modified 5 days ago