Replying to Avatar 9839a36d...

I finished my first useful python script, using my pynostr python library.

The script fetches the complete list of relays from https://api.nostr.watch/v1/online and requests from all relays my CONTACTS event.

Then the script checks if date and the follower count.

Finally the newest event is broadcasted to all relays that have a old version of my contact list. The best part is that my script does not need a private key.

Before:

wss://nos.lol: 2023-02-18 09:24:26 - 271

wss://nostr-pub.wellorder.net: 2023-02-05 15:17:34 - 205

wss://nostr.hackerman.pro: 2023-01-12 13:15:32 - 48

wss://relay.nostr.scot: 2023-02-05 10:52:12 - 204

wss://relay.nostr.band: 2023-02-18 09:24:26 - 271

wss://nostr.swiss-enigma.ch: 2023-01-11 15:34:37 - 17

wss://nostr.cercatrova.me: 2023-01-11 15:34:37 - 17

wss://relay.damus.io: 2023-02-18 09:24:26 - 271

wss://relay.current.fyi: 2023-02-18 09:24:12 - 264

wss://nostr-relay.digitalmob.ro: 2022-12-18 20:23:21 - 1

wss://nostr-verif.slothy.win: 2022-12-18 20:23:21 - 1

wss://relay.nostrich.de: 2023-02-18 09:24:26 - 271

wss://relay.wellorder.net: 2023-02-05 15:17:34 - 205

wss://nostr.coinos.io: 2023-01-12 13:15:32 - 48

wss://relay.austrich.net: 2023-02-18 09:23:32 - 255

wss://relay.nostrview.com: 2023-02-18 09:23:32 - 255

wss://relay.nostrati.com: 2023-02-18 09:23:32 - 255

wss://nostr.radixrat.com: 2023-02-10 09:06:31 - 213

wss://knostr.neutrine.com: 2023-02-12 13:50:35 - 219

wss://relay-pub.deschooling.us: 2023-01-16 11:36:50 - 91

wss://nostr.bostonbtc.com: 2023-02-10 09:06:31 - 213

wss://nostr.rdfriedl.com: 2023-01-27 19:45:06 - 171

wss://nproxy.kristapsk.lv: 2023-02-18 09:24:26 - 271

wss://relay.orangepill.dev: 2023-02-18 09:23:32 - 255

wss://nostr.wine: 2023-02-18 09:24:26 - 271

wss://atlas.nostr.land: 2023-01-27 19:45:06 - 171

wss://no.str.cr: 2023-02-18 09:24:26 - 271

wss://offchain.pub: 2023-02-16 20:50:23 - 250

wss://nr.yay.so: 2022-12-18 20:23:21 - 1

wss://nproxy.zerologin.co: 2023-02-18 09:24:26 - 271

After:

wss://nostr-pub.wellorder.net: 2023-02-18 09:24:26 - 271

wss://nos.lol: 2023-02-18 09:24:26 - 271

wss://nostr-verif.slothy.win: 2022-12-18 20:23:21 - 1

wss://relay.nostrich.de: 2023-02-18 09:24:26 - 271

wss://relay.nostr.band: 2023-02-18 09:24:26 - 271

wss://relay.nostr.scot: 2023-02-18 09:24:26 - 271

wss://relay.wellorder.net: 2023-02-18 09:24:26 - 271

wss://nostr.cercatrova.me: 2023-02-18 09:24:26 - 271

wss://nostr.swiss-enigma.ch: 2023-02-18 09:24:26 - 271

wss://relay.austrich.net: 2023-02-18 09:24:26 - 271

wss://relay.nostrview.com: 2023-02-18 09:24:26 - 271

wss://nostr.hackerman.pro: 2023-02-18 09:24:26 - 271

wss://relay.nostrati.com: 2023-02-18 09:24:26 - 271

wss://nostr.bostonbtc.com: 2023-02-18 09:24:26 - 271

wss://relay.damus.io: 2023-02-18 09:24:26 - 271

wss://relay.current.fyi: 2023-02-18 09:24:26 - 271

wss://knostr.neutrine.com: 2023-02-18 09:24:26 - 271

wss://relay-pub.deschooling.us: 2023-02-18 09:24:26 - 271

wss://relay.orangepill.dev: 2023-02-18 09:24:26 - 271

wss://nostr.radixrat.com: 2023-02-18 09:24:26 - 271

wss://nostr.rdfriedl.com: 2023-02-18 09:24:26 - 271

wss://nostr.wine: 2023-02-18 09:24:26 - 271

wss://nostr.coinos.io: 2023-02-18 09:24:26 - 271

wss://nproxy.kristapsk.lv: 2023-02-18 09:24:26 - 271

wss://no.str.cr: 2023-02-18 09:24:26 - 271

wss://offchain.pub: 2023-02-16 20:50:23 - 250

wss://nproxy.zerologin.co: 2023-02-18 09:24:26 - 271

wss://relay.nostr.bg: 2023-02-16 20:50:23 - 250

wss://nproxy.zerologin.co: 2023-02-18 09:24:26 - 271

Let me know if I should run your pubkey

Nice one! Can you find old contact lists where they’ve wrongly repropagated when switching between clients?

Reply to this note

Please Login to reply.

Discussion

No replies yet.