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