What is Nostr?
brugeman
npub1xdt…ntxy
2023-02-17 17:23:25
in reply to nevent1q…pgy8

brugeman on Nostr: Could this be useful? https://spam.nostr.band/spam_api?method=get_current_spam I ...

Could this be useful?

https://spam.nostr.band/spam_api?method=get_current_spam

I collect events from all relays for the last hour, group events w/ common words/ngrams, find clusters of >100 events.

This API prints the stop-words for big clusters - if event contains all of words, it's most likely spam. Relays/clients could proactively match new events against these words, or periodically delete specific events/pubkeys.

Was playing with this today, will be using in my relay. It's updated close to real-time.

Also
https://spam.nostr.band/spam_api?method=get_current_spam&view=pubkeys
https://spam.nostr.band/spam_api?method=get_current_spam&view=events - BIG!
Author Public Key
npub1xdtducdnjerex88gkg2qk2atsdlqsyxqaag4h05jmcpyspqt30wscmntxy