jobscraper/scrapers/cwjobs.js
Martin Donnelly 17a348f625 Added angular to indeed, cws and total
Added a new search for jobserve
2020-12-10 16:05:21 +00:00

36 lines
1.5 KiB
JavaScript

/**
* Created by WebStorm.
* User: martin
* Date: 24/05/2020
* Time: 23:43
*/
const TotaljobsScraper = require('./totaljobs');
class CwjobsScraper extends TotaljobsScraper {
constructor() {
super();
this.siteurl = 'www.cwjobs.co.uk';
this.siteid = 'cwjobs';
this.requestOptions = {
'url' : ''
};
}
async go(location = 'london') {
this.setStartUrl(`https://www.cwjobs.co.uk/jobs/contract/html-or-angular-or-vue-or-vuejs-or-web-or-sql-or-delphi-or-vb-or-vbscript-or-php-or-ajax-or-mysql-or-sqlserver-or-javascript-or-node-or-nodejs-or-svelte-or-sveltejs-not-react/in-${encodeURIComponent(location)}?q=Html+Or+Vue+Or+Vuejs+Or+Web+Or+Sql+Or+Delphi+Or+Vb+Or+Vbscript+Or+Php+Or+Ajax+Or+Mysql+Or+Sqlserver+Or+Javascript+Or+Node+Or+Nodejs+Or+Svelte+Or+Sveltejs+NOT+React&postedwithin=3&radius=20`);
// this.setStartUrl('https://www.indeed.co.uk/jobs?as_and=&as_phr=&as_any=javascript+nodejs&as_not=&as_ttl=&as_cmp=&jt=contract&st=&as_src=&salary=&radius=25&l=london&fromage=7&limit=10&sort=date&psf=advsrch&from=advancedsearch');
// Glasgow
// 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();
console.log(`CWJobs ${location} completed`);
}
}
module.exports = CwjobsScraper;