Skip to content
GhostglowDev edited this page Mar 21, 2024 · 2 revisions
local web = require "ghostutil.web"

See source code

Funfact: This is the smallest class in Ghostutil

getDataFromWebsite(website:String) -> String

Gets data from a website and returns it as a string.

  • website: The website url you want to grab data from

Example:

function onCreatePost()
    debugPrint(web.getDataFromWebsite("https://raw.githubusercontent.com/GhostglowDev/Ghost-s-Utilities/main/ghostutil/ghostutil.version"))
end

browserLoad(website:String) -> Void

Loads up a website and sends you to it.

  • website: The website url

Example:

function onUpdate()
   if keyboardPressed('5') then
      browserLoad("https://www.youtube.com/watch?v=dQw4w9WgXcQ")
   end
end