TikTok Data Extractor avatar
TikTok Data Extractor

Pricing

$4.00 / 1,000 results

Go to Store
TikTok Data Extractor

TikTok Data Extractor

clockworks/free-tiktok-scraper

Developed by

Clockworks

Maintained by Apify

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.

4.7 (26)

Pricing

$4.00 / 1,000 results

446

Monthly users

2.7k

Runs succeeded

>99%

Response time

20 hours

Last modified

2 days ago

id

text

createDate

webVideoUrl

diggCount

shareCount

playCount

collectCount

commentCount

743***45

How to ***** scraping series!

2024-11-10

https://www.tiktok.com/@***/video/743***45

42

6

3182

41

3

744***21

This is a must **** #leadgen #automations

2024-12-17

https://www.tiktok.com/@***/video/744***21

78

11

2434

118

0

747***58

You need **** #scaleyourbusiness

2025-02-19

https://www.tiktok.com/@***/video/74***58

98

22

3883

109

1

The data above is synthetic and does not reflect real-world values. View full dataset

TH

Getting unexpected keyword argument 'follow_redirects' when calling the API

Closed
theseusrex opened this issue
3 months ago

Starting 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

TH

theseusrex

3 months ago

Nevermind I updated the package and it fixed it lol

lukas.prusa avatar

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!

Pricing

Pricing model

Pay per result 

This Actor is paid per result. You are not charged for the Apify platform usage, but only a fixed price for each dataset of 1,000 items in the Actor outputs.

Price per 1,000 items

$4.00