I think I'm definitely doing something wrong on my end as I'm not getting repeatable results
Here's the code I'm working off of if you want to take a look:
https://github.com/happylemonprogramming/gifbuddy/blob/main/nostrgifsearch.py
I think I'm definitely doing something wrong on my end as I'm not getting repeatable results
Here's the code I'm working off of if you want to take a look:
https://github.com/happylemonprogramming/gifbuddy/blob/main/nostrgifsearch.py
I made a PR, let me know if that fixes what you were looking for. I also added a second variant using a local database. In the end you only need to run one variant.
Nice! Iβll definitely try it out and let you know how it goes
I was playing with it more last night and discovered some things
I think the next problem I have is trying to find the right relays to add
Nostr.Build uses Blastr so the NIP94 events are published to whatever relay is online and working, which makes it challenging to know where to look
For example, if you just add the Damus relay you get 94 events, I added like 4 more and got up to almost 900, but I know weβve uploaded more GIFs than that
Just need to find where they are hiding
I don't get how to search nip94 events if I don't know what relay ask events from
Current process:
- Gifbuddy uploads to Nostr.Build
- Nostr.Build publishes a NIP94 event to Blastr
- Blastr goes to whatever relays are online and working (I don't 100% understand this area)
I expect Blastr would include publishing to popular relays like damus, primal, nos.lol, nostr.band, etc. Yet when I add these relays and search for such events (Kind 1063) I get less than 900 results for gifs, which can't be right.
Nostr.Build definitely has more than 900 gifs uploaded assuming that every file uploaded to Nostr.Build has a corresponding nip94 event published.
I can keep adding relays, but I don't think that's the right answer
Hopefully I'm making sense, but this is where I'm at right now:

nostr:nprofile1qqsglv2qkn5dmmuhee9cy8fywfu2rfp4xd3xy0myqg2gfvmjl9yqqrqppamhxue69uhk2tnwdaejumr0dsq3qamnwvaz7tmwdaehgu3wd3skueqpz3mhxue69uhhyetvv9ujuerpd46hxtnfduekf372 where are events published too? Any relay where chances are great to find them?
Nah, I figured it out with Fishcake in DMs: I messed up
When I upload a gif to nostr.build, I get nip94 event data in the response, which Iβm suppose to publish, but I interpreted that at the time as itβs already been published
So gifs have been uploading to nostr.build, but havenβt been publishing nip94 events, which super sucks
Working on fixing it this weekend
You wouldn't happen to know how to use Blastr in python with nostr-sdk, would you?
I pretty much finished the nip94 update to gifbuddy, but I want to broadcast it as wide as possible (right now it just does damus and primal relays)