Best Twitter Scraper avatar
Best Twitter Scraper
Try for free

No credit card required

View all Actors
Best Twitter Scraper

Best Twitter Scraper

zhangzhenhu/best-twitter-scraper
Try for free

No credit card required

Twitter scraper that scrapes the latest Twitter content of any user. Since you need to be logged in to Twitter to crawl, you need to provide a Twitter account. Twitter 抓取器,可以抓取任意用户最新的Twitter内容。 因为需要先登录 Twitter 才能抓取,所以需要提供一个 Twitter 的账号。

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more

1# Set API token
2API_TOKEN=<YOUR_API_TOKEN>
3
4# Prepare Actor input
5cat > input.json <<'EOF'
6{
7  "login_user": "HuZhang18851",
8  "login_password": "r7pkkp22",
9  "names": [
10    "elonmusk"
11  ],
12  "tweet_urls": [],
13  "search_urls": []
14}
15EOF
16
17# Run the Actor using an HTTP API
18# See the full API reference at https://docs.apify.com/api/v2
19curl "https://api.apify.com/v2/acts/zhangzhenhu~best-twitter-scraper/runs?token=$API_TOKEN" \
20  -X POST \
21  -d @input.json \
22  -H 'Content-Type: application/json'
Developer
Maintained by Community
Actor metrics
  • 33 monthly users
  • 1 star
  • 9.4% runs succeeded
  • 3.8 days response time
  • Created in Aug 2023
  • Modified 10 months ago
Categories