diff options
Diffstat (limited to 'data/configs/indeed.go')
| -rw-r--r-- | data/configs/indeed.go | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/data/configs/indeed.go b/data/configs/indeed.go new file mode 100644 index 0000000..3fad0fd --- /dev/null +++ b/data/configs/indeed.go @@ -0,0 +1,20 @@ +package configs + +import ( + "github.com/Wacky404/lurchers/data" + "github.com/gocolly/colly" +) + +func indeedConfig() *colly.Collector { + job := new(data.Job) + c := colly.NewCollector() + c.OnHTML("a[id^='job_']", func(e *colly.HTMLElement) { + link := e.Attr("href") + c.Visit(e.Request.AbsoluteURL(link)) + }) + c.OnHTML("h1[class^='jobserch-JobInfoHeader-title']", func(e *colly.HTMLElement) { + + }) + + return c +} |
