Created
January 21, 2024 18:49
-
-
Save shellcromancer/2f0a5b400aaadf097f32226f9a6c0bc8 to your computer and use it in GitHub Desktop.
Fetch material cybersecurity incidents
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let Parser = require('rss-parser'); | |
const url = 'https://www.sec.gov/cgi-bin/browse-edgar?action=getcurrent&CIK=&type=8-K&company=&dateb=&owner=include&start=40&count=40&output=atom' | |
let parser = new Parser({ | |
headers: { | |
'User-Agent': 'Company Name [email protected]' | |
}, | |
}); | |
(async () => { | |
const feed = await parser.parseURL(url); | |
feed.items.forEach(item => { | |
// 8-K Item 1.05: Material Cybersecurity Incident | |
if (item.summary.includes('Item 1.05')) { | |
console.log(item.title + ': ' + item.link) | |
} | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment