scraper

package
v0.1.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package scraper provides a function to Scrape UGC info from a JSON file.

A couple of variables can be set to make it function properly. The results are saved in a JSON file or XLSX file according according to the variable resultFormat.

Index

Constants

View Source
const (
	TIKTOK        = "https://www.tiktok.com"
	TIKTOK_SEARCH = TIKTOK + "/search?q="
)

Variables

This section is empty.

Functions

func Scrape

func Scrape(scrapedJSONFile string) error

Scrape scrapes UGC info according to a JSON file providing their unique IDs.

It will supposingly save results anyway whether the process has finished successfully or not.

func ScrapeUnscraped

func ScrapeUnscraped(filename string) error

TODO comments

func Search(hashtags string) error

func SetFromTo

func SetFromTo(f, t int)

func SetHeadless

func SetHeadless(h bool)

func SetLimit

func SetLimit(l uint)

func SetRecentVideosNum

func SetRecentVideosNum(r uint)

func SetResultFormat

func SetResultFormat(f string)

func SetVerbose

func SetVerbose(v bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL