Need to replicate the Aadhar website in our native app

me and my friend were in the process of making an KYC app for Aadhar and don’t want our user to be redirected to the UIDAI website, fill form and then again be redirected back to our app for confirmation. Instead we saw someone do something what we want: He opened the UIDAI website in their own web view but with a completely different UI , so that the user wouldn’t feel the redirection, fill the forms and continue with the process. My thinking is that the website was scraped in some form and then shown to the user to look as per their need. Isn’t scraping illegal ? I saw the following in my research: https://www.freecodecamp.org/news/the-ultimate-guide-to-web-scraping-with-node-js-daa2027dcd3/ it used bunch of frameworks and libraries like Node, Cheerio , etc but i wasn’t sure that i should start on this path before knowing if it was actually correct. Someone also suggested using Python but we have no experience in that so i didn’t try that one. If there can be some other approach, please let me know in the comments…