🏯 Tiktok Scraper (Pay Per Result) avatar

🏯 Tiktok Scraper (Pay Per Result)

Try for free

Pay $0.30 for 1,000 posts

Go to Store
🏯 Tiktok Scraper (Pay Per Result)

🏯 Tiktok Scraper (Pay Per Result)

apidojo/tiktok-scraper
Try for free

Pay $0.30 for 1,000 posts

The most complete and effective solution for extracting data from TikTok.com. User, Profile, Hashtag, Music, Location, Tag, and many other support is just the beginning. The intelligent algorithm allows TikTok Scraper to retrieve any posts/videos around the platform in the blink of an eye!

B2

Can you add a column for keyword query?

Closed

BSD_24 opened this issue
6 days ago

Hi so i have been using search functionality..can you perhaps put the search query in a column so that i can see what search query gives the post? And can you add this same column to Tweet Scraper V2 actor too? Many thanks!

apidojo avatar

Hello,

You can use customMapFunction to append any data to the result dataset so you can just add the search query to the data objects.

You can do the same with Tweet Scraper however it already has that functionality built in called Include Search Term under Advanced settings

Cheers

B2

BSD_24

3 days ago

Thanks for the info!

B2

BSD_24

3 days ago

Hi I need to ask again, how do i find the search query? I cannot find the field you use to map it.

apidojo avatar

Hello,

When you are running the actor, you can provide that to the customMapFunction and you will get it back with the result. Something like:

1{
2  "customMapFunction": "(object) => {  let data = object; data.newField = `anything you want here, maybe your search query?`; return data }",  
3}

Cheers

B2

BSD_24

2 days ago

Hi thanks for the reply. I should elaborate on my initial issue that it would be nice to have the search query for each result to know where this particular result comes from. Its like turning on the "include search terms" option from the Tweet Scraper but for this particular scraper.

I know that if it is directly available, I can just append it to my object through the map function, but the problem is accessing the search query in the first place.

apidojo avatar

Hello,

When you are initiating the run in the beginning, you have the search query right? And you are using it in the INPUT. You can also add it to the customMapFunction and get back with the objects. Does that make sense?

Best

B2

BSD_24

15 hours ago

Hi. I want to ask again. I already tried that with one search query, like this: (object) => {let data = object; data.keyword = 'test' ;return {data} } Now I want to do it for multiple search query in one run like attached here..how do i do that? Thanks, and sorry for asking too much.

apidojo avatar

API Dojo (apidojo)

10 hours ago

Hello,

You can do this with a custom logic on your end, unfortunately we cannot give you code level support.

Cheers

Developer
Maintained by Community

Actor Metrics

  • 221 monthly users

  • 39 stars

  • >99% runs succeeded

  • 3.4 hours response time

  • Created in Dec 2023

  • Modified 20 hours ago