Content
@
0 reply
0 recast
0 reaction
Jorge Pablo Franetovic 🎩
@jpfraneto.eth
i have my hub running i want to extract from its current state all the casts that meet a certain condition (let's say they have the string $bleu inside its text), and save all those casts on on that same machine how would you do this? what's the equivalent of a for loop to check all this info?
4 replies
0 recast
3 reactions
Nabil Abdellaoui
@randombishop
There's one way to do that but I am new to farcaster so maybe there's way easier solutions than mine: 1) Install a postgres db and shuttle to replicate all hub data to a database. 2) Add an index to casts.text column. (https://www.postgresql.org/docs/current/textsearch.html) 3) You can now find anything you need with SQL queries.
0 reply
0 recast
0 reaction