summaryrefslogtreecommitdiff
path: root/scrape.go
diff options
context:
space:
mode:
authorMaximilian2019-04-17 10:33:39 +0200
committerMaximilian2019-04-17 10:33:39 +0200
commit6a771c754a9ede42fa9bff743087510a2168cf59 (patch)
tree1e0d5ba00d93e4d53fceb97fc3990ce49dfa712e /scrape.go
parent4dc18e3691127e058833fd9c7a5bbee333c3a66c (diff)
downloadghrss-6a771c754a9ede42fa9bff743087510a2168cf59.tar.gz
Adds crawler for Github.
Diffstat (limited to 'scrape.go')
-rw-r--r--scrape.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/scrape.go b/scrape.go
index ebb02fa..3b7887b 100644
--- a/scrape.go
+++ b/scrape.go
@@ -7,14 +7,14 @@ import (
"github.com/gocolly/colly"
)
-func (app *App) ScrapeHTML(platforms []Platform) {
+func (app *App) Scrape(platforms []Platform) {
wait := make(chan bool)
count := 0
for _, platform := range platforms {
- go app.Scrape(platform, wait)
+ go app.ScrapeHTML(platform, wait)
count++
}
@@ -25,7 +25,7 @@ func (app *App) ScrapeHTML(platforms []Platform) {
}
}
-func (app *App) Scrape(platform Platform, wait chan bool) {
+func (app *App) ScrapeHTML(platform Platform, wait chan bool) {
var Entries []Entry
var err error