Skip to content

Instantly share code, notes, and snippets.

@shellcromancer
Created January 21, 2024 18:49
Show Gist options
  • Save shellcromancer/2f0a5b400aaadf097f32226f9a6c0bc8 to your computer and use it in GitHub Desktop.
Save shellcromancer/2f0a5b400aaadf097f32226f9a6c0bc8 to your computer and use it in GitHub Desktop.
Fetch material cybersecurity incidents
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