Which operating system?
Discussion
I just need it in python .. though I use Mac, it may not make much difference to the python script ?
I am asking, because a lib did not work for me on windows from python-nostr, so I forked it.
It shall be os independent but because of cryptography, there was a cryptography lib, that seem not to work on windows, so I just swaped it to a different one that works on Windows.
Oh yes there was a problem with secp251k1 I think.. but I managed to sort out…
I tried using the relay class from https://armstrys.github.io/nostrfastr/ and also the original from https://github.com/jeffthibault/python-nostr but I think I’m missing something.
my end goal is to download ALL notes from ALL relays.. going to one relay after the other in a database where I can then analyze a bit the activity each relay has.. so I need NoteID to compare content and few other stuff… so I’ll need to at some point store all in an SQLlite or postgres etc.. but that I can do later. I at least need to be able to connect, stay connected until my query is finished, one relay after the other
I am not sure if relays support "all". Maybe you have to split your request into smaller requests, otherwise they won't go through.
Did you get an error message back?
Well.. I was thinking adding a limit in my first subscription for example I connect now and I ask last X events… and then connect again or something like that.
Some how all clients are able to get a global feed?. So I would like to be able to have a view of the real deduplicated global feed across most of the realys… at least from 1 day.. to then do some stats
I think downloading between timestamps are the best.
You set between now and yesterday midnight maybe.
Then yesterday midnight 2 days ago midnight.
Then you can slowly go back in time. But you shall be careful, because too much requests can get rate limited. So don't bombard the relays.
Correct yes I want to do it carefully but first I’d need to have a script that works. If you have a recommendation or any script that I can try it out even if I need to modify any library I can do that