mirror of
https://github.com/pikami/tiktok-dl.git
synced 2024-11-25 17:25:42 +00:00
20 lines
571 B
Go
20 lines
571 B
Go
package client
|
|
|
|
import (
|
|
models "../models"
|
|
config "../models/config"
|
|
"fmt"
|
|
)
|
|
|
|
// GetUserUploads - Get all uploads marked with given hashtag
|
|
func GetHashtagUploads(hashtagURL string) []models.Upload {
|
|
jsMethod := fmt.Sprintf("bootstrapIteratingVideos(%d)", config.Config.Limit)
|
|
actionOutput := executeClientAction(hashtagURL, jsMethod)
|
|
return models.ParseUploads(actionOutput)
|
|
}
|
|
|
|
func GetHashtagUploadsJson(hashtagURL string) string {
|
|
jsMethod := fmt.Sprintf("bootstrapIteratingVideos(%d)", config.Config.Limit)
|
|
return executeClientAction(hashtagURL, jsMethod)
|
|
}
|