name: spaces-live description: Interacts with X/Twitter Spaces (live audio) including joining rooms, scraping metadata, discovering live or scheduled Spaces, and managing Space participation. Use when finding Spaces, scraping Space data, or interacting with live audio features on X. license: MIT metadata: author: nichxbt version: "4.0"
Spaces & Live Audio
Browser console scripts for interacting with X/Twitter Spaces.
Script Selection
| Script | File | Purpose |
|---|---|---|
| Spaces Manager | src/spacesManager.js |
Join, manage, and interact with Spaces |
| Scrape Spaces | src/scrapeSpaces.js |
Find and collect Space metadata from search |
Spaces Manager
File: src/spacesManager.js
Manages interactions with X Spaces: join, leave, request to speak, and get live Space data.
How to Use
- Navigate to a Space or
x.com/i/spaces - Open DevTools (F12) -> Console
- Paste the script -> Enter
Scrape Spaces
File: src/scrapeSpaces.js
Finds X Spaces from search results or timelines. Identifies live, scheduled, and ended Spaces with metadata.
How to Use
- Search for Spaces:
x.com/search?q=your-topic&f=liveor any timeline - Open DevTools (F12) -> Console
- Paste the script -> Enter
Configuration
const CONFIG = {
maxSpaces: 50,
scrollDelay: 2000,
maxScrollAttempts: 20,
exportResults: true,
};
Output
- Live, scheduled, and ended Space counts
- Host and title for each Space
- Direct links to join
- JSON export of all collected metadata
DOM Selectors
| Element | Selector |
|---|---|
| Start Space | [data-testid="SpaceButton"] |
| Join Space | [data-testid="joinSpace"] |
| Speaker list | [data-testid="spaceSpeakers"] |
| Listener count | [data-testid="spaceListeners"] |
| Recording | [data-testid="spaceRecording"] |
| Schedule | [data-testid="scheduleSpace"] |
| Space title | [data-testid="spaceTitle"] |
| Space topic | [data-testid="spaceTopic"] |
Strategy Guide
Using Spaces for growth
- Use
src/scrapeSpaces.jsto find active Spaces in your niche - Join as a listener -- consistent presence builds recognition
- Request to speak when topic aligns with your expertise
- Follow hosts and frequent speakers afterward
- Post about key takeaways after each Space (content repurposing)
Discovering niche Spaces
- Search
x.com/search?q=your-topic&f=livefor live Spaces - Follow accounts that regularly host Spaces in your niche
- Set up
src/keywordMonitor.jswith Space-related keywords - Check
/i/spacesfor recommended Spaces in your interests
Hosting workflow
- Schedule a Space from the compose button
- Promote it with a tweet thread 24h before
- Use
src/scrapeSpaces.jsto record participant metadata - After the Space, engage with attendees using
src/engagementBooster.js
Notes
- Scraping captures metadata only (not audio content)
- Spaces can be live, scheduled, or ended -- all three states are detected
- Recording availability depends on host settings
- Space links:
x.com/i/spaces/{spaceId} - Live Spaces filter: append
&f=liveto search URL - Hosting requires 600+ followers (X restriction)