Documentation ¶
Overview ¶
This package is mostly a rewrite of https://github.com/SegoCode/swd/blob/main/swd.go which was provided via GitHub under The Unlicence
Index ¶
Constants ¶
const ENDPOINT string = "https://node05.steamworkshopdownloader.io/prod//api/"
Variables ¶
This section is empty.
Functions ¶
func CheckAvailable ¶
Checks if a resource is available.
Param `resource` is an int for its Workshop ID or a string for its Workshop URL.
func DownloadResource ¶
Writes Workshop resource by ID to given Writer.
func ExtractResource ¶
Extracts things that match "dir/id - (downloaded title).zip" where dir is a given directory and id is the given Workshop ID.
Deletes the archive if successful.
func IsCollection ¶
Returns true if the given page is a URL.
At the top of a Workshop page theres "breadcrumbs" which look like "Game > Workshop > Collections > User's Workshop". This function checks if "Collection" is in those breadcrumbs.
Types ¶
This section is empty.