summaryrefslogtreecommitdiff
path: root/scrape.go
diff options
context:
space:
mode:
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