🎙️ Scrape X Spaces
Find and collect data on live, scheduled, and ended X Spaces.
📋 What It Does
- Searches for Spaces matching your query
- Scrolls through timeline and search results
- Collects Space data: title, host, participant count, status, link
- Categorizes by status: live, scheduled, ended
- Exports results as JSON
🌐 Browser Console Script
Steps:
- Go to
x.com/search?q=yourqueryorx.com/home - Edit CONFIG with your search query
- Open console (F12) and paste
src/scrapeSpaces.js
Configuration:
const CONFIG = {
query: 'web3 crypto',
scrollCycles: 15,
delayBetweenScrolls: 1500,
includeEnded: false,
};
📊 Output
{
"query": "web3 crypto",
"spaces": [
{
"title": "Web3 Builder AMA",
"host": "@cryptodev",
"listeners": 342,
"status": "live",
"link": "https://x.com/i/spaces/..."
}
],
"stats": { "live": 3, "scheduled": 5, "ended": 12 }
}
📁 Files
src/scrapeSpaces.js— Browser console Spaces scraper
⚠️ Notes
- X Spaces appear in search results and timeline as special cards
- Set
includeEnded: falseto only see live and upcoming Spaces - Results are limited by what X shows in search
- Space links can be opened directly in a browser
⚡ Ready to try Scrape X Spaces?
XActions is 100% free and open-source. No API keys, no fees, no signup.
Browse All Scripts