Linktree ❤️
No, i do not expect donations though they do help video quality and the kinds of content i make on ALL platforms. i currently have no real (consistent) income from the content i make, but when i do i put it all back into the content 100% of the time. Of course i appreciate all donos and if you dm me your btc/eth addy and a ss of you sending it i will gladly say thanks in the next YouTube video as you guys make it all happen.
BTC: bc1qh9culj8vlk6qe36apkwcrvr6f37emg5dwa288r
ETH: 0x4afB2ACa7B111D572FD01FF7F78b3176305B31E3
This is a simple public documented wrapper that is for flowGPT API. Nothing special though it could be useful to imlpement in your personal projects. You can custom search for a specific promt or explore the wide range of prompts available. This could be useful for a variety of things such as AI generated anything really.
FlowGPT API docs Public API Wrapper
git clone https://github.com/im-kuro/flowGPT-API
python -m pip install requirements.txt
The following code snippet shows how to use the API wrapper & requests to retrieve a list of prompts and loop through them to find the
prompt ID and title. The code snippet uses the searchPrompt
endpoint to retrieve a list of prompts. The searchPrompt
endpoint is used to search for prompts based on a specific tag, sorting criteria, and search term. The code snippet uses the following parameters:
flowGPT.py wrapper
from flowGPT import flowGPT# init the classflowgptHandle = flowGPT()# search for a prompt, saving the results to the variable 'x'x = flowgptHandle.searchPromt(tag="python", sort="popularity", seachQ="python")#loop through all the results to find ids/promts/ect.for i in x[0]['result']['data']['json']: print("promt ID -> " + i['id']) print("title -> " + i['title']) print("")
useing requests
import requests, urllib.parse, json#define varstag = "null"sort = "null"searchQ = "marketing"# define data to senddata = { "0": { "json": { "tag": tag, "sort": sort, "q": searchQ, "language": "en" }, "meta": { "values": { "tag": [ "undefined" ], "sort": [ "undefined" ] } } } }# send the request and save the results to the variable 'z'z = requests.get(f"https://flowgpt.com/api/trpc/prompt.getPrompts?batch=1&input={urllib.parse.quote(json.dumps(data))}").json()#loop through all the results to find ids/promts/ect.for i in z[0]['result']['data']['json']: print("promt ID -> " + i['id']) print("title -> " + i['title']) print("")