Skip to content
Permalink
Browse files

added params and comments

  • Loading branch information...
marcobeierer committed Jul 2, 2019
1 parent a3180ce commit f3aada2861c1f4c37d2932d0779623aec32c224e
Showing with 3 additions and 1 deletion.
  1. +3 −1 main.go
@@ -12,6 +12,8 @@ import (
"time"
)

// log.Println() writes to stderr by default
// fmt.Println() writes to stdout by default
func main() {
log.SetFlags(0)

@@ -62,7 +64,7 @@ func doRequest(url, token string) (string, string, bool) {
urlBase64 := base64.URLEncoding.EncodeToString([]byte(url))

// TODO make max_etchers and reference count as param
req, err := http.NewRequest("GET", "https://api.marcobeierer.com/sitemap/v2/"+urlBase64+"?max_fetchers=3&reference_count_threshold=5", nil)
req, err := http.NewRequest("GET", "https://api.marcobeierer.com/sitemap/v2/"+urlBase64+"?pdfs=1&origin_system=cli&max_fetchers=3&reference_count_threshold=5", nil)
if err != nil {
log.Println(err)
return "", "", false

0 comments on commit f3aada2

Please sign in to comment.
You can’t perform that action at this time.