diff options
| author | Maximilian | 2019-04-20 14:51:57 +0200 |
|---|---|---|
| committer | Maximilian | 2019-04-20 14:51:57 +0200 |
| commit | 9407e1b46b3264888d1fe54ff9d5c37d8036c2e6 (patch) | |
| tree | 2fd5bada4e706d075e3c862a9c09af5312e02d20 /github.go | |
| parent | 421a7232e7f0436705b9f2819cd51227ac6cd821 (diff) | |
| download | ghrss-9407e1b46b3264888d1fe54ff9d5c37d8036c2e6.tar.gz | |
Small improvements regarding the database structure.
Diffstat (limited to 'github.go')
| -rw-r--r-- | github.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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+" /") |
