Page 1 of 1

Get external page source?

Posted: Mon Jul 07, 2025 3:39 pm
by thatkeith
Can someone suggest a good way, in a LC server-based thing, to grab the HTML source of an external URL for parsing? It's easy in the regular desktop LC:

Code: Select all

   launch url pURL in widget "site"
   put the htmlText of widget "site" into tSource
But I see that launch url doesn't include server in the supported platforms, and I get (unsurprisingly) an 'Internal Server Error' when I try it anyway.

k

Re: Get external page source?

Posted: Tue Jul 08, 2025 5:30 am
by FourthWorld
This can be tricky in a world where web content is increasingly assembled dynamically in divs with JS.

If just getting the URL isn't doing what you need, that may be the issue.

Does the host offer an API to get the data you're looking for? Can you tell us more about the page?