package tiktok import ( "github.com/iawia002/annie/downloader" "github.com/iawia002/annie/extractors" "github.com/iawia002/annie/request" "github.com/iawia002/annie/utils" ) // Extract is the main function for extracting data func Extract(uri string) ([]downloader.Data, error) { html, err := request.Get(uri, uri, nil) if err != nil { return nil, err } // There are a few json objects loaded into the html that are useful. We're able to parse the video url from the // videoObject json. videoScriptTag := utils.MatchOneOf(html, `