mirror of
https://github.com/pikami/tiktok-dl.git
synced 2026-02-01 08:02:56 +00:00
formatter
This commit is contained in:
@@ -3,17 +3,17 @@ package client
|
||||
import (
|
||||
models "../models"
|
||||
config "../models/config"
|
||||
"fmt"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// GetUserUploads - Get all uploads by user
|
||||
func GetUserUploads(username string) []models.Upload {
|
||||
jsMethod := fmt.Sprintf("bootstrapIteratingVideos(%d)", config.Config.Limit)
|
||||
jsMethod := fmt.Sprintf("bootstrapIteratingVideos(%d)", config.Config.Limit)
|
||||
actionOutput := executeClientAction(`https://www.tiktok.com/@`+username, jsMethod)
|
||||
return models.ParseUploads(actionOutput)
|
||||
}
|
||||
|
||||
func GetUserUploadsJson(username string) string {
|
||||
jsMethod := fmt.Sprintf("bootstrapIteratingVideos(%d)", config.Config.Limit)
|
||||
jsMethod := fmt.Sprintf("bootstrapIteratingVideos(%d)", config.Config.Limit)
|
||||
return executeClientAction(`https://www.tiktok.com/@`+username, jsMethod)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user