coracle-social / navigatr

A utility for scraping the nostr network

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Navigatr version

A utility for scraping the nostr network. Please be considerate with your limits and filters, since this will open a connection to every relay it can find.

export const nav = new Navigator({
  timeout: 10_000,
  relays: ['wss://relay.damus.io', 'wss://relay.snort.social'],
  filters: [{kinds: [1], limit: 10}],
})

nav.scrapeAll()
  .then(events => {
    nav.cleanup()

    console.log('done', n.events.size)
  })

About

A utility for scraping the nostr network

License:MIT License


Languages

Language:TypeScript 98.3%Language:JavaScript 1.7%