Check if normal website links maps to the Apple.news article/feed

Hi,


I am creating an macOS application for checking whether website URL is associated with Apple News URL.

Is there any way to understand whether any webpage link publish to Apple News? and if published then how to get Apple News link.


There is a way to get the Original Website URL from Apple News link by loading the Apple News URL through URLSession and parsing the html contents and retriving the "redirectToUrlAfterTimeout" value and this link we can open in browser to view the same contents.


However I would like to know is there any way(code or framework) that will help me to get the Apple News URL from Original Website URL.


...

Thanks & Regards,

Mohmad Vasim

Check if normal website links maps to the Apple.news article/feed
 
 
Q