Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var JSON_FILE_DATE string = time.Now().Format("2006-01-02")
Functions ¶
func PttImageBoard ¶
func PttImageBoard(board string, titlePrefix string, chunkSize int, limitSize int, write bool) []string
PttImageBoard is a function for crawling a specific board on PTT. Parameters:
board: The name of the board to crawl. titlePrefix: The prefix used to filter article titles. It can be an empty string. chunkSize: The number of articles to request per chunk. limitSize: The maximum number of articles to crawl. write: A boolean indicating whether to write the results to a file.
Returns: A list of image links crawled.
func PttRandomImageBoard ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.