updated cache path
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 28s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 28s
This commit is contained in:
parent
7060e66713
commit
8a5e665f77
4
main.go
4
main.go
@ -111,7 +111,7 @@ func scrapeHub() {
|
||||
// Instantiate a new collector to visit the job details page
|
||||
detailsCollector := colly.NewCollector(
|
||||
colly.AllowedDomains("www.thehub.io", "thehub.io"),
|
||||
colly.CacheDir("./thehub_cache"),
|
||||
colly.CacheDir("/app/data/thehub_cache"),
|
||||
)
|
||||
// On every <div> element with class "card__content attribute call callback
|
||||
c.OnHTML("div[class=card__content]", func(e *colly.HTMLElement) {
|
||||
@ -215,7 +215,7 @@ func scrapeItJobBank() {
|
||||
detailsCollector := colly.NewCollector(
|
||||
colly.AllowedDomains("www.it-jobbank.dk", "it-jobbank.dk"),
|
||||
// Cache responses to prevent multiple requests
|
||||
colly.CacheDir("./itjobbank_cache"))
|
||||
colly.CacheDir("/app/data/itjobbank_cache"))
|
||||
|
||||
// On every <div> element with class "card__content attribute call callback
|
||||
c.OnHTML("div[class=result]", func(e *colly.HTMLElement) {
|
||||
|
Loading…
Reference in New Issue
Block a user