I know how to load a page from another website and analyze it but the website I’m trying to load some pages from, doesn’t let unregistered users to visit those pages. I do have a username and a password to load those pages normally in my browser, but I’m wondering if I could do it in PHP or not? :/
I’m not sure what information I should give you about the website but if what I already told is incomplete just ask what information I should give.
Thanks.
Most websites use cookies to store information related to your authentication status.
To get past this programatically, you’ll have to send this information everytime you make a request. Here is how you can get it –
Note: Do check the ToS of the site you are trying to scrape. Some sites do not permit you to scrape or use their content without prior permission