Merge branch 'master' of https://gitlab.silvrtree.co.uk/martind2000/jobscraper
This commit is contained in:
commit
32d96a7cb8
@ -27,6 +27,7 @@ class CwjobsScraper extends TotaljobsScraper {
|
|||||||
// https://www.indeed.co.uk/jobs?as_and=&as_phr=&as_any=Html+Web+Sql+Delphi+Vb+Vbscript+Php+Ajax+Mysql+Sqlserver+Javascript+Nodejs+vuejs+sveltejs&as_not=React&as_ttl=&as_cmp=&jt=contract&st=&as_src=&salary=&radius=0&l=glasgow&fromage=1&limit=50&sort=&psf=advsrch&from=advancedsearch
|
// https://www.indeed.co.uk/jobs?as_and=&as_phr=&as_any=Html+Web+Sql+Delphi+Vb+Vbscript+Php+Ajax+Mysql+Sqlserver+Javascript+Nodejs+vuejs+sveltejs&as_not=React&as_ttl=&as_cmp=&jt=contract&st=&as_src=&salary=&radius=0&l=glasgow&fromage=1&limit=50&sort=&psf=advsrch&from=advancedsearch
|
||||||
|
|
||||||
await this.processSite();
|
await this.processSite();
|
||||||
|
console.log(`CWJobs ${location} completed`);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -143,6 +143,8 @@ class IndeedScraper extends MasterScraper {
|
|||||||
// https://www.indeed.co.uk/jobs?as_and=&as_phr=&as_any=Html+Web+Sql+Delphi+Vb+Vbscript+Php+Ajax+Mysql+Sqlserver+Javascript+Nodejs+vuejs+sveltejs&as_not=React&as_ttl=&as_cmp=&jt=contract&st=&as_src=&salary=&radius=0&l=glasgow&fromage=1&limit=50&sort=&psf=advsrch&from=advancedsearch
|
// https://www.indeed.co.uk/jobs?as_and=&as_phr=&as_any=Html+Web+Sql+Delphi+Vb+Vbscript+Php+Ajax+Mysql+Sqlserver+Javascript+Nodejs+vuejs+sveltejs&as_not=React&as_ttl=&as_cmp=&jt=contract&st=&as_src=&salary=&radius=0&l=glasgow&fromage=1&limit=50&sort=&psf=advsrch&from=advancedsearch
|
||||||
|
|
||||||
await this.processSite();
|
await this.processSite();
|
||||||
|
|
||||||
|
console.log(`Indeed ${location} completed`);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -131,6 +131,7 @@ class TotaljobsScraper extends MasterScraper {
|
|||||||
// https://www.indeed.co.uk/jobs?as_and=&as_phr=&as_any=Html+Web+Sql+Delphi+Vb+Vbscript+Php+Ajax+Mysql+Sqlserver+Javascript+Nodejs+vuejs+sveltejs&as_not=React&as_ttl=&as_cmp=&jt=contract&st=&as_src=&salary=&radius=0&l=glasgow&fromage=1&limit=50&sort=&psf=advsrch&from=advancedsearch
|
// https://www.indeed.co.uk/jobs?as_and=&as_phr=&as_any=Html+Web+Sql+Delphi+Vb+Vbscript+Php+Ajax+Mysql+Sqlserver+Javascript+Nodejs+vuejs+sveltejs&as_not=React&as_ttl=&as_cmp=&jt=contract&st=&as_src=&salary=&radius=0&l=glasgow&fromage=1&limit=50&sort=&psf=advsrch&from=advancedsearch
|
||||||
|
|
||||||
await this.processSite();
|
await this.processSite();
|
||||||
|
console.log(`TotalJobs ${location} completed`);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@ const indeedScraper = new IndeedScraper();
|
|||||||
const page = fs.readFileSync('data/indeed/page2.html');
|
const page = fs.readFileSync('data/indeed/page2.html');
|
||||||
|
|
||||||
test.test('Test Indeed scraper', async t => {
|
test.test('Test Indeed scraper', async t => {
|
||||||
/*const $ = cheerio.load(page);
|
const $ = cheerio.load(page);
|
||||||
|
|
||||||
indeedScraper.loadPage($);
|
indeedScraper.loadPage($);
|
||||||
|
|
||||||
@ -35,20 +35,7 @@ test.test('Test Indeed scraper', async t => {
|
|||||||
|
|
||||||
await indeedScraper.filterAdverts();
|
await indeedScraper.filterAdverts();
|
||||||
|
|
||||||
// await indeedScraper.addToDB();*/
|
// await indeedScraper.addToDB();
|
||||||
|
|
||||||
await indeedScraper.go('london');
|
|
||||||
await totaljobsScraper.go('london');
|
|
||||||
await cwjobsScraper.go('london');
|
|
||||||
await indeedScraper.go('glasgow');
|
|
||||||
await totaljobsScraper.go('glasgow');
|
|
||||||
await cwjobsScraper.go('glasgow');
|
|
||||||
await indeedScraper.go('edinburgh');
|
|
||||||
await totaljobsScraper.go('edinburgh');
|
|
||||||
await cwjobsScraper.go('edinburgh');
|
|
||||||
await indeedScraper.go('milton keynes');
|
|
||||||
await totaljobsScraper.go('milton keynes');
|
|
||||||
await cwjobsScraper.go('milton keynes');
|
|
||||||
|
|
||||||
t.end();
|
t.end();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user