Skip to content

happy-code-vector/subnet-111

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Streaming API Fetcher

Fetches data from the Macrocosmos streaming API with automatic timeout.

Setup

  1. Install dependencies:
npm install
  1. Update the API_KEY in index.js with your actual API key

Usage

Run the script:

npm start

The script will:

  • Connect to the streaming API
  • Collect data for up to 10 seconds
  • Automatically stop before timeout
  • Save all collected data to output.json

Configuration

Edit index.js to modify:

  • TIMEOUT_SECONDS: Change the timeout duration (default: 10)
  • keywords: Update the search keywords
  • limit: Change the data limit

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors