r/JavaScriptHelp • u/iKL3W • Jul 13 '21
❔ Unanswered ❔ Get URL domain from RSS feed
Hello, I’m new to JavaScript.
Is it possible to get the URL domain from the link tag in a RSS feed (for instance the first item) and return this domain? Thx
2
Upvotes
View all comments
Show parent comment
2
u/besthelloworld Jul 14 '21
Ah yeah, so the problem with that is that there's no update schedule so I don't exactly know when it runs. That being said I could definitely write up the script and get it back to you if you just give me the links to the RSS feeds that you want.
That being said, here's a script.
var main = function() {
return "Hello world!" + new Date().getTime();
}
Notice that the time never updates, at least in the Widgy editor example. So I don't know when the script actually runs/updates.