From 2a1a7eef1e6b99871ce93c3e6e61d40cc6cd155f Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Mon, 29 Nov 2021 15:51:11 +0000 Subject: [PATCH] news notes --- newsfeed.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 newsfeed.txt diff --git a/newsfeed.txt b/newsfeed.txt new file mode 100644 index 0000000..1fc57ad --- /dev/null +++ b/newsfeed.txt @@ -0,0 +1,17 @@ +Latest list of news + +https://euronews.com/just-in + + +News item page processor + +const s = document.getElementsByTagName('script'); + +for(let item of s) { + + if (item.getAttribute('type') === 'application/ld+json') { + console.log(JSON.parse(item.innerHTML)); + } + + +} \ No newline at end of file