diff --git a/main.go b/main.go index e20573c..b7497a2 100644 --- a/main.go +++ b/main.go @@ -59,6 +59,7 @@ var ( jobCount int maxJobs int = 30 fName string = "jobs.json" + excluded = []string{"senior", "lead", "founder", "cto", "vp of"} ) func scrapeJobs() { @@ -79,8 +80,6 @@ func scrapeJobs() { colly.CacheDir("./thehub_cache"), ) - // Slice of excluded words in the job titles - excluded := []string{"senior", "lead"} // Instantiate a new collector to visit the job details page detailsCollector := c.Clone() // On every
element with class "card__content attribute call callback