diff options
Diffstat (limited to 'scrape.go')
| -rw-r--r-- | scrape.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |
