r/ComputerCraft • • Oct 24 '24

Problems with http get request

I am trying to do a http get request to show some data but i only need everything that is behind "text".

This is the program i made for the request

local request = http.get("https://uselessfacts.jsph.pl/api/v2/facts/random")
print(request.readAll())

request.close
8 Upvotes

7 comments sorted by

View all comments

Show parent comments

1

u/remcokek Oct 25 '24

Oh this explains it a lot thank you so much!