An extension for extracting and downloading tweets for text mining.
If you use this extension for your research, please reference it as follows:
Moncomble, F. (2026). 𝕏-Scraper (Version 0.7) [JavaScript]. Arras, France: Université d'Artois. Available at: https://fmoncomble.github.io/X-scraper/
Remember to pin the add-on to the toolbar.
Chromium-based browsers are no longer supported.
- Navigate to 𝕏/Twitter and perform a search (simple or advanced).
- It is advised to create a specific account for the purpose of scraping content.
- Click the add-on's icon in the toolbar.
- Click
Start. - The interface appears as a layer over the current webpage:
- (Optional) Set the maximum number of tweets to scrape.
- You can stop at any time by clicking the
Stopbutton or abort by closing the dialog. ⚠️ User requests to the 𝕏 server are rate-limited (50 requests — each returning 20 tweets — per 15 minutes). As of v0.5, the extension now handles your rate limit automatically: if the number of tweets you want to scrape exceeds your current allowance, or if you do not set a maximum number, requests are paced at a rate of one every few seconds. This allows for your rate limit to reset before it is exhausted, preventing the collection process from stalling.
- When the scrape finishes, a new dialog appears to let you choose the data you want to keep. By default, the author's
screen_name, the tweet's publication date (created_at), full text and URL are selected.- (Optional) Tick the checkbox to anonymize the tweets: usernames will be replaced with unique identifiers of the form
user_#and tweet URLs will not be included. - Choose your preferred output format:
XML/XTZ (TXM)for an XML file to import into TXM (using theXML/TEI-Zeromodule)- When initiating the import process, open the "Textual planes" section and type
refin the field labelled "Out of text to edit"
- When initiating the import process, open the "Textual planes" section and type
XML (Sketch Engine)for an XML file to import into Sketch EngineIRaMuTeQfor a plain text file formatted for IRaMuTeQ softwareTXTfor plain textCSVXLSX(Excel spreadsheet)JSON
- Click
Downloadto save the output file to your computer.
- (Optional) Tick the checkbox to anonymize the tweets: usernames will be replaced with unique identifiers of the form
~~The add-on collects tweets by automatically scrolling the search results page. This makes repeated calls to the 𝕏/Twitter server, which eventually times out with a 429 response (Too many requests). When that happens (generally after scraping ~900 tweets), download the file, reset, allow a few minutes for the server to 'cool down', then adjust your search parameters to avoid collecting duplicates and resume scraping.~~
This is addressed in v0.3 through a redesigned interface: make sure to download the newest version.
Although Elon Musk has repeatedly expressed his opposition to scraping 𝕏/Twitter data, collecting publicly available data for research purposes is legal in most countries. However, as a precaution, it is advisable to create an ad-hoc account for this specific purpose.
