VOOZH about

URL: https://apify.com/jupri/twitter-scraper

โ‡ฑ Twitter X-Plorer ๐Ÿฆœ ยท Apify


Pricing

$30.00/month + usage

Go to Apify Store

Twitter X-Plorer ๐Ÿฆœ

๐Ÿ’ซ All-in-one Twitter X.com Scraper ๐Ÿฆ๐Ÿฆโ€โฌ›๐Ÿค

Pricing

$30.00/month + usage

Rating

0.0

(0)

Developer

๐Ÿ‘ cat

cat

Maintained by Community

Actor stats

11

Bookmarked

756

Total users

5

Monthly active users

7 months ago

Last modified

Categories

Share

๐Ÿ’ซ Welcome to Twitter X-Plorer

๐Ÿ‘ Image
๐Ÿ‘ Image

๐Ÿฆœ About Twitter.com

๐Ÿ‘ title

Twitter is an online social media and social networking service owned and operated by American company X Corp., the legal successor of Twitter, Inc. Twitter users outside the United States are legally served by the Ireland-based Twitter International Unlimited Company, which makes these users subject to Irish and European Union data protection laws[9][10]

๐Ÿฆœ About This Actor

๐Ÿ’ซ All-In-One Twitter Data Extractor

  • โญScrape User timeline, followers, following, media, likes, lists, topics, highlights, etc.
  • โญScrape List timeline, members, followers
  • โญScrape Specific Topic
  • โญScrape Status & Threads
  • โญScrape Media: Photo / Video / Gif, etc.
  • โญAdvanced Search
  • โญContent Formatting: HTML or Plain TEXT
  • โญLow Memory Cost
  • โญA.S.A.P

DISCLAIMER:

  • This Twitter scraper only collects data thatโ€™s publicly available. This means data thatโ€™s accessible without logging in to Twitter and without accepting Twitterโ€™s terms of use. Please note that if you accepted Twitterโ€™s terms of use, your ability to scrape Twitter data may be limited. If that is the case, please review the terms and make an informed decision yourself.
  • By providing your personal auth_token, you agree to obey twitter TOS, especially regarding rate-limit policy 50 request per 15 minutes enforced by elonmusk

๐Ÿฆœ Tutorial

๐Ÿ‘‰ Parameters

ParameterTypeOptionsDescription
querystringList of Query, Keywords or URL
filtersobjectAdvanced search filters
limitintegernumericNumber of results (per-query)
contentstringtext, htmlFormat of results content
auth_tokenstringcookieValue of auth_token cookie

๐Ÿ’ซ NOTES :

If a multiline Query is provided (Queries separated by line breaks), each line will be processed separately.

Example :

๐Ÿ‘ Image

๐Ÿ‘‰ Basic Usage

Scrape user profiles

{"query":"@elonmusk @apify"}

Scrape user posts

{"query":"@elonmusk/posts"}

Advanced Search (Cookies required)

{"query":"what is happening","limit":10}

Scrape an URL

{"query":"https://x.com/elonmusk/media","limit":10}

๐Ÿ‘‰ Advanced Usage

Twitter Query Language (TQL)

[ <COMMAND:> | # | @ ] [ <NAME> | <ID> | <KEYWORD> | <URL> ] [ /<SECTION> ]

โ“ QUERIES Overview

FormatExamplesDescription
<KEYWORD>web scrapingSearch Anything
jobs:<KEYWORD>jobs:python engineerSearch Jobs
#<HASHTAG>#AISearch Hashtag
@<USER>
/info /about /replies /media /articles
/likes /affiliates /followers
/following /lists /topics
/highlights /subscriptions /jobs
@elonmusk
@elonmusk/info
@elonmusk/about
@elonmusk/replies
@elonmusk/followers
Scrape User Data
<STATUS_ID>
/info /quotes /reposts /likes
1562015197543497728Scrape Posting (Tweet)
topic:<TOPIC_ID>topic:1280550787207147521Scrape Topic
list:<LIST_ID>
/info /posts
/members /followers
list:1334803406523953152
list:1334803406523953152/posts
list:1334803406523953152/members
Scrape List
comm:<COMM_ID>Scrape Community
https:<URL>https://x.com/...Start URL

โ“ Possible QUERY Values :

FormatExampleDescription
<KEYWORD>web scrapingSearch Anything
#<HASHTAG>#AISearch Hashtag
@<USER>@elonmuskScrape User Data
/info@elonmusk/infoUser info
/about@elonmusk/aboutUser about
/replies@elonmusk/repliesUser replies
/highlights@elonmusk/highlights
/media@elonmusk/media
/jobs@elonmusk/jobsJobs opportunity
/articles@elonmusk/articles
/likes@elonmusk/likes
/lists@elonmusk/lists
/topics@elonmusk/topics
/affiliates@elonmusk/affiliates
/followers@elonmusk/followers
/verified_followers@elonmusk/verified_followers
/followers_you_know@elonmusk/followers_you_know
/following@elonmusk/following
/subscriptions@elonmusk/subscriptions
<STATUS_ID>1562015197543497728Scrape Posting (Tweet)
/info1562015197543497728/infoPost content
/replies1562015197543497728/replies
/quotes1562015197543497728/quotes
/reposts1562015197543497728/reposts
/likes1562015197543497728/likes
/analytics1562015197543497728/analytics
topic:<TOPIC_ID>topic:1280550787207147521Scrape Topic Timeline
list:<KEYWORD>list:java scriptSearch List
list:<LIST_ID>list:1334803406523953152List Data
/infolist:1334803406523953152/infoList info
/postslist:1334803406523953152/postsList posts
/memberslist:1334803406523953152/membersList members
/followerslist:1334803406523953152/followersList followers
com:<KEYWORD>com:pythonSearch Community
com:<COM_ID>com:1672458762852921344Community Data
/infocom:1672458762852921344/infoCommunity info
/topcom:1672458762852921344/topTop posts
/latestcom:1672458762852921344/latestLatest posts
/mediacom:1672458762852921344/mediaMedia posts
/memberscom:1672458762852921344/membersMembers list
/moderatorscom:1672458762852921344/moderatorsModerators list
job:<KEYWORD>job:python engineerSearch Jobs
job:<JOB_ID>job:1723106649395671391Job Data
https:<URL>https://x.com/...Start URL

๐Ÿ‘‰ TheAUTH_TOKEN parameter (auth_token cookie)

Some function require auth_token cookie to work properly (required sign-in to Twitter.com). When you receive log error something like below, then probably you need to supply parameters with auth_token value.

โŒ Authorization: Denied by access control: unspecified reason
โŒ HTTP error 404: Not Found

Important Notes :

  • This is NOT your APIFY Token, instead a value from your browser cookie, named auth_token.
  • Use this only if necessary, as it have risk your account getting blocked by @elonmusk.
  • Your cookies is your SECRET. Please don't share it with someone else.
  • The auth_token value will always valid until you logged out from Twitter.com

To get auth_token cookie value :

  1. Login to Twitter.com
  2. Open Chrome Developer Tools (Ctrl + Shift + I)
  3. Open Application Tab
  4. On left panel, go to: Storage -> Cookies -> https://twitter.com
  5. Find cookie named auth_token (40 characters string value).
  6. Copy & Paste Here :
{
"query":"@elonmusk/followers",
"auth_token":"YOUR_TWITTER_AUTH_TOKEN"
}

๐Ÿ‘ enter image description here

๐Ÿฆœ Input Examples

๐Ÿ‘‰ Example #1 : Searching

Search for Posts by Keyword

{"query":"Web Scraping"}

Search for Posts by #Hashtag

{"query":"#AI"}

๐Ÿ‘‰ Example #2 : User Info

User profile @USERNAME

{"query":"@apify"}

User media @USERNAME/media

{"query":"@apify/media"}

User following Lists: @USERNAME/lists

{"query":"@elonmusk/lists"}

๐Ÿ‘‰ Example #3 : Topic

Topic latest Posts : topic/<TOPIC_ID>

{"query":"topic:1280550787207147521/posts"}# Arts & Culture

List lates Posts :list/<LIST_ID>

{"query":"list:1334803406523953152/posts"}# Web scraping + automation

๐Ÿ‘‰ Example #4 : Advanced Searchfilters

{
"filters.from":"@apify",# (@ symbol is optional)
"filters.hashtag":"#scraper",# (# symbol is optional)
"filters.type":"videos",
"filters.phrase":"Space The Final Frontier",
"filters.replies":250,
"filters.since":"2022-01-20"
}

๐Ÿ‘‰ Example #5 : Content Formatting

In case you want content format in HTML use content parameter :

{"query":"@apify/posts","limit":10,"content":"html"}

๐Ÿฆœ Advanced Search Filters

ParameterTypeExampleSummaryDescription
filters.rawstringAnimals +cat -dog lang:enSearching raw query
filters.typestringOne of: latest, top, photos, videos, peoplePost type
filters.wordstringwhatโ€™s happeningboth โ€œwhatโ€™sโ€ and โ€œhappeningโ€All of these words
filters.phrasestringhappy hourthe exact phrase โ€œhappy hourโ€This exact phrase
filters.anystringcats dogseither โ€œcatsโ€ or โ€œdogsโ€ (or both)Any of these words
filters.excludestringcats dogsdoes not contain โ€œcatsโ€ and does not contain โ€œdogsโ€None of these words
filters.hashtagstring#ThrowbackThursdaythe hashtag #ThrowbackThursdayThese hashtags
filters.fromstring@Twittersent from @TwitterFrom these accounts
filters.tostring@Twittersent in reply to @TwitterTo these accounts
filters.mentionstring@SFBART @Caltrainmentions @SFBART or mentions @CaltrainMentioning these accounts
filters.repliesinteger250Minimum replies
filters.favesinteger200Minimum likes
filters.retweetsinteger100Minimum retweets
filters.sincedate2022-01-20Since date YYYY-MM-DD
filters.untildate2022-02-30Until date YYYY-MM-DD

๐Ÿฆœ Did You Know ?

Twitter internally detect faces on images.

...
"media":[
{
"id":"1695968940185534464",
"image":"https://pbs.twimg.com/media/F4lKw_XawAAT-xn.jpg",
"url":"https://t.co/Lk3VtAaKQ7",
"features":{
"orig":{
"faces":[{"x":315,"y":130,"h":232,"w":232}]
}
},
"__type":"photo",
"key":"3_1695968940185534464"
}
]
๐Ÿ‘ Image

๐Ÿฆœ To-Do List

  • Constructing status URL: https://twitter.com/_/status/<status_id> or https://twitter.com/<screen-name>/status/<status-id>
  • Resize and format images URL: https://pbs.twimg.com/media/xxxxxxxxxx.jpg?format=[jpg|png|webp]&name=[orig|normal|large|medium|thumb]

๐Ÿฆœ Support

โšก๏ธ Feel free to reach out to the developer for any issues or suggestions for improvement.

๐Ÿ‘ Image

You might also like

Twitter / X Scraper

rupom888/twitter-scraper

X / Twitter Email Scraper

scrapapi/x-twitter-email-scraper