Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jakopako committed Sep 18, 2022
1 parent ae58c37 commit 7172cee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions automate/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ func GetDynamicFieldsConfig(s *scraper.Scraper, minOcc int, removeStaticFields b
if s.URL == "" {
return errors.New("URL field cannot be empty")
}
s.Name = s.URL
res, err := utils.FetchUrl(s.URL, "")
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var version = "dev"

func runScraper(s scraper.Scraper, itemsChannel chan map[string]interface{}, globalConfig *scraper.GlobalConfig, wg *sync.WaitGroup) {
defer wg.Done()
log.Printf("crawling %s\n", s.Name)
log.Printf("scraping %s\n", s.Name)
// This could probably be improved. We could pass the channel to
// GetItems instead of waiting for the scraper to finish.
items, err := s.GetItems(globalConfig)
Expand Down

0 comments on commit 7172cee

Please sign in to comment.