I am trying to make Swift scrape websites using SwiftSoup. However, websites like: https://apple.news/AQZXxg8mUQfKrEaM9MRBpxw , it redirects automatically using JavaScript which causes SwiftSoup to scrape the opening page instead of the actual article that I want. How should I scrape this link so that it would scrape the actual article in question rather than the cover webpage that redirects?
I have tried to use status code but this particular website does not give a status code of 301 or 302, and gives a status code of 200. I tried scraping the JavaScript portion of the HTML of the link but I don't exactly know what to do with it.