Best Twitter Scraper

  • zhangzhenhu/best-twitter-scraper
  • Modified
  • Users 65
  • Runs 206
  • Created by Author's avatarzhang zhenhu

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 的账号。

To run the code examples, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token. For a more detailed explanation, please read about running Actors via the API in Apify Docs.

# Set API token

# Prepare Actor input
cat > input.json <<'EOF'
  "login_user": "HuZhang18851",
  "login_password": "r7pkkp22",
  "names": [
  "tweet_urls": [],
  "search_urls": []

# Run the Actor
curl "$API_TOKEN" \
  -X POST \
  -d @input.json \
  -H 'Content-Type: application/json'