mirror of
https://github.com/pikami/tiktok-dl.git
synced 2026-01-27 13:42:56 +00:00
Merge branch 'master' into master
This commit is contained in:
@@ -7,10 +7,13 @@ import (
|
||||
)
|
||||
|
||||
// GetUserUploads - Get all uploads by user
|
||||
func GetUserUploads(username string) []models.Upload {
|
||||
jsMethod := fmt.Sprintf("bootstrapIteratingVideos(%d)", config.Config.Limit)
|
||||
actionOutput := executeClientAction(`https://www.tiktok.com/@`+username, jsMethod)
|
||||
return models.ParseUploads(actionOutput)
|
||||
func GetUserUploads(username string) ([]models.Upload, error) {
|
||||
jsMethod := fmt.Sprintf("bootstrapIteratingVideos(%d)", config.Config.Limit)
|
||||
actionOutput, err := executeClientAction(`https://www.tiktok.com/@`+username, jsMethod)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return models.ParseUploads(actionOutput), nil
|
||||
}
|
||||
|
||||
func GetUserUploadsJson(username string) string {
|
||||
|
||||
Reference in New Issue
Block a user