diff --git a/pages/dirview.go b/pages/dirview.go index da39ff7..691d1df 100644 --- a/pages/dirview.go +++ b/pages/dirview.go @@ -66,8 +66,8 @@ func DirView(c *fiber.Ctx) error { sc := colly.NewCollector(colly.AllowedDomains("github.com"), colly.UserAgent(UserAgent)) sc.Limit(&colly.LimitRule{ DomainGlob: "github.githubassets.com/*", - Delay: 5 * time.Second, - RandomDelay: 5 * time.Second, + Delay: 15 * time.Second, + RandomDelay: 15 * time.Second, }) sc.OnHTML("div#readme", func(e *colly.HTMLElement) { Scrape.Readme = e.ChildText("a[href='#readme']") diff --git a/pages/repo.go b/pages/repo.go index 6bf3a49..241445c 100644 --- a/pages/repo.go +++ b/pages/repo.go @@ -81,8 +81,8 @@ func HandleRepo(c *fiber.Ctx) error { sc := colly.NewCollector(colly.AllowedDomains("github.com"), colly.UserAgent(UserAgent)) sc.Limit(&colly.LimitRule{ DomainGlob: "github.githubassets.com/*", - Delay: 5 * time.Second, - RandomDelay: 5 * time.Second, + Delay: 15 * time.Second, + RandomDelay: 15 * time.Second, }) sc.OnHTML("div.Layout-sidebar", func(e *colly.HTMLElement) { Scrape.Username = c.Params("user")