From 9407e1b46b3264888d1fe54ff9d5c37d8036c2e6 Mon Sep 17 00:00:00 2001 From: Maximilian Date: Sat, 20 Apr 2019 14:51:57 +0200 Subject: Small improvements regarding the database structure. --- github.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'github.go') diff --git a/github.go b/github.go index 668fd6c..50564d6 100644 --- a/github.go +++ b/github.go @@ -27,7 +27,7 @@ func (app *App) ScrapeGithub(platform Platform) []Entry { owner := Owner{} e.ForEach("div > h3", func(i int, e *colly.HTMLElement) { - entry.URL = URL + e.ChildAttr("a", "href") + entry.URL = e.ChildAttr("a", "href") owner.Name = strings.TrimSuffix(e.ChildText("a > span"), " /") owner.Name = strings.TrimSpace(owner.Name) entry.Title = strings.TrimPrefix(e.ChildText("a"), owner.Name+" /") -- cgit v1.2.3