PHP code or Desktop AP to convert URLs to HTML when PHP file_get_contents Doesn't Work
Budget: $25 – $50 USD
Consider the following URL (16000 is variable):
https://elicensing21.mass.gov/CitizenAccess/GeneralProperty/LicenseeDetail.aspx?LicenseeNumber=16000&LicenseeType=Master+Plumber
1. A browser will display data that includes WILLIAM J PARADIS.
2. PHP file_get_contents($URL) returns text that begins and ends as below.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> . . . </script> </form> <noscript>Your browser does not support JavaScript.</noscript> </body> </html>
There is no sign of WILLLIAM.
3. If I echo the link “<a href=”.$URL.”>CLICK ME</a>”, click on it and save the page as HTML, then read the file in my directory using PHP file_get_contents the string contains:
>WILLIAM J PARADIS<
and the data is present and can be parsed out.
How can I automate the conversion of the URL to this HTML (or any other form that contains the data)?
At a minimum for URLs like above (for any number in place of 16000) and preferably for more (ideally all) URLs.
A. In my PHP Version 7.2.34 Windows NT DESKTOP-TBNFM6D 10.0 build 19043 (Windows 10) AMD64 x64 now?
B. By enhancing it?
C. With a desktop ap that reads a text list of URLs and returns a file for each URL containing its HTML as in (3)?
D. Something that will simply return the text displayed in the page formatted so that it can be parsed?
Which of these A-D can you supply?
If you don’t answer this question I will say READ IT.
If you say read what I will say THE PROJECT.
If you still don’t answer I will move on to the next bid.
Thanks
https://elicensing21.mass.gov/CitizenAccess/GeneralProperty/LicenseeDetail.aspx?LicenseeNumber=16000&LicenseeType=Master+Plumber
1. A browser will display data that includes WILLIAM J PARADIS.
2. PHP file_get_contents($URL) returns text that begins and ends as below.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> . . . </script> </form> <noscript>Your browser does not support JavaScript.</noscript> </body> </html>
There is no sign of WILLLIAM.
3. If I echo the link “<a href=”.$URL.”>CLICK ME</a>”, click on it and save the page as HTML, then read the file in my directory using PHP file_get_contents the string contains:
>WILLIAM J PARADIS<
and the data is present and can be parsed out.
How can I automate the conversion of the URL to this HTML (or any other form that contains the data)?
At a minimum for URLs like above (for any number in place of 16000) and preferably for more (ideally all) URLs.
A. In my PHP Version 7.2.34 Windows NT DESKTOP-TBNFM6D 10.0 build 19043 (Windows 10) AMD64 x64 now?
B. By enhancing it?
C. With a desktop ap that reads a text list of URLs and returns a file for each URL containing its HTML as in (3)?
D. Something that will simply return the text displayed in the page formatted so that it can be parsed?
Which of these A-D can you supply?
If you don’t answer this question I will say READ IT.
If you say read what I will say THE PROJECT.
If you still don’t answer I will move on to the next bid.
Thanks