🏯 Tweet Scraper V2 (Pay Per Result) - X / Twitter Scraper avatar
🏯 Tweet Scraper V2 (Pay Per Result) - X / Twitter Scraper
Try for free

Pay $0.30 for 1,000 tweets

View all Actors
🏯 Tweet Scraper V2 (Pay Per Result) - X / Twitter Scraper

🏯 Tweet Scraper V2 (Pay Per Result) - X / Twitter Scraper

apidojo/tweet-scraper
Try for free

Pay $0.30 for 1,000 tweets

⚡️ Lightning-fast search, URL, list, and profile scraping, with customizable filters. At $0.30 per 1000 tweets, and 30-80 tweets per second, it is ideal for researchers, entrepreneurs, and businesses! Get comprehensive insights from Twitter (X) now!

WM

Problem with actor input

Closed

watch_my_competitor opened this issue
a month ago

We use an input like this to search for posts: The purpose of this is to get posts by a specific author only, without retweets or replies:

{ "start": "2024-07-12", "startUrls": [], "author": "", "searchTerms": [ "from:elonmusk -filter:retweets -filter:replies" ], "twitterHandles": [], "maxItems": 1000, "sort": "Latest" }

For such an input we do not get information in the log that e.g. the page does not exist etc., which is a problem for us. If I add additional parameters like twitterHandles and author to the input, then we get some log information but we also get posts that are retweets and replies, searchTerms are ignored:

{ "start": "2024-07-12", "startUrls": [], "author": "elonmusk", "searchTerms": [ "from:elonmusk -filter:retweets -filter:replies" ], "twitterHandles": ["elonmusk"], "maxItems": 1000, "sort": "Latest" }

Is this a bug or should we create the input differently? Please provide example

apidojo avatar

Hello,

Actually your first example is a true usage. searchTerms and twitterHandles will create 2 different queries, that's what you are experiencing. However if you want to have a better control, you should remove start and include it in the searchTerms like the following:

1{
2	"searchTerms": [
3		"from:elonmusk -filter:retweets -filter:replies since:2024-07-12"
4
5	],
6	"maxItems": 1000,
7	"sort": "Latest"
8}

Here is an example run: https://console.apify.com/view/runs/6IQTlBcxE1zVLGOc6

This is how you can get the most out of our scraper. You can include as many queries as you want to the searchTerms array.

Please note that, you can always reach out to me via Discord to get faster and more detailed support!

Cheers!

Developer
Maintained by Community
Actor metrics
  • 1.4k monthly users
  • 166 stars
  • 98.5% runs succeeded
  • 6.5 hours response time
  • Created in Nov 2023
  • Modified about 22 hours ago