diff --git a/pages/about.go b/pages/about.go index a9d7c25..962e0a6 100644 --- a/pages/about.go +++ b/pages/about.go @@ -8,17 +8,17 @@ import ( ) type PrivacyInfo struct { - IPAddr string - ReqURL string - UserAgent string - Diagnostics string - Country string - Provider string - Cloudflare string - PrivacyPolicy string - Version string - GoVersion string - FiberVersion string + IPAddr string + ReqURL string + UserAgent string + Diagnostics string + Country string + Provider string + Cloudflare string + PrivacyPolicy string + Version string + GoVersion string + FiberVersion string } func HandleAbout(c *fiber.Ctx) error { diff --git a/pages/user.go b/pages/user.go index 7baed06..610cccd 100644 --- a/pages/user.go +++ b/pages/user.go @@ -102,7 +102,7 @@ func HandleUser(c *fiber.Ctx) error { Scrape.Company = e.ChildText("li[itemprop*='worksFor'] span") Scrape.Link = e.ChildText("li[itemprop*='url'] a") e.ForEach("li[itemprop*='social']", func(i int, el *colly.HTMLElement) { - Scrape.Social = append(Scrape.Social, el.ChildText("a.Link--primary")) + Scrape.Social = append(Scrape.Social, el.ChildAttr("a.Link--primary", "href")) }) // Followers/Following Scrape.Followers = e.ChildText("a[href*='https://github.com/" + c.Params("user") + "?tab=followers' i] span")