jobscraper/test/testfeeds.js
2020-06-01 08:59:29 +01:00

29 lines
1.1 KiB
JavaScript

/**
* Created by WebStorm.
* User: martin
* Date: 22/05/2020
* Time: 12:18
*/
const tape = require('tape');
const _test = require('tape-promise').default; // <---- notice 'default'
const test = _test(tape); // decorate tape
const fs = require('fs');
const cheerio = require('cheerio');
const JobserveScraper = require('../scrapers/rss.jobserve');
const RssS1Jobs = require('../scrapers/rss.s1jobs');
const RssTechnojobs = require('../scrapers/rss.technojobs');
const jobserveScraper = new JobserveScraper();
const s1jobsScraper = new RssS1Jobs();
const technojobsScraper = new RssTechnojobs();
test.test('Test Jobserve scraper', async t => {
// await jobserveScraper.go('https://www.jobserve.com/MySearch/9BCBF25C586A0E3F.rss');
// await s1jobsScraper.go('http://www.s1jobs.com/xml/m7dp711z2r.xml');
await technojobsScraper.go('https://www.technojobs.co.uk/rss.php/html%20OR%20node%20OR%20web%20OR%20sql%20OR%20delphi%20OR%20javascript%20OR%20ajax/excludekeywords/locationLONDON/radius25/termsin0/salary0/postedwithinall/jobtypeall/searchfieldRSearchIndex/page1');
t.end();
});