updated feeds
This commit is contained in:
parent
af6744871d
commit
abd11834ae
@ -5,8 +5,7 @@
|
||||
"plugins": [
|
||||
"filter_location",
|
||||
"filter_reject",
|
||||
"filter_md_jobs",
|
||||
"filter_today_only"
|
||||
"filter_md_jobs"
|
||||
],
|
||||
"meta": {
|
||||
"title": "Jobs",
|
||||
|
@ -122,6 +122,13 @@ async function main() {
|
||||
// await gatherXML('jobsLocal','jobs-local');
|
||||
}
|
||||
|
||||
function test() {
|
||||
gatherV2('jobsSpecial', 'jobs-special', 'rss').then((d) => {
|
||||
logger.debug(d);
|
||||
}).catch((e) => {
|
||||
logger.error(e);
|
||||
});
|
||||
}
|
||||
function tick() {
|
||||
const extra = Math.floor((Math.random() * 60) + 1) * 1000;
|
||||
main();
|
||||
@ -138,5 +145,5 @@ function tick() {
|
||||
() => tick(),
|
||||
toHour()
|
||||
);
|
||||
main();
|
||||
// test();
|
||||
})();
|
||||
|
@ -1,7 +1,8 @@
|
||||
module.exports = function (item, itemOptions, source) {
|
||||
var patt = /(full\w?stack|html|html5|css|javascript|sql|node|backbone|git|gulp|jquery|express|£\dk|Data Warehouse Developer|iot|internet of things)\W/ig;
|
||||
var patt = /(full\w?stack|html|html5|es6|react|css|javascript|sql|node|backbone|git|gulp|jquery|express|£\dk|Data Warehouse Developer|iot|internet of things)\W/ig;
|
||||
var result = patt.test(itemOptions.description);
|
||||
var resultB = patt.test(itemOptions.title);
|
||||
return (result||resultB === true) ? itemOptions : -1 ;
|
||||
|
||||
// return (result||resultB === true) ? itemOptions : -1 ;
|
||||
// console.log('>> Filter_md_jobs', (result||resultB === true));
|
||||
return itemOptions;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user