How to read html url as string
How to read html url as string
how to read HTML from url for processing as strings for parsing and extract info?
Re: How to read html url as string
do you mean the URL-Parameters? Then you can use ProgramParameter()Rjevsky wrote:how to read HTML from url for processing as strings for parsing and extract info?
-> http://www.spiderbasic.com/documentatio ... meter.html
Greetings ... Peter
Re: How to read html url as string
Forgive me for my bad English. I want to get HTML pages.
For example from http://anyurl.com
I want to receive:
For example from http://anyurl.com
I want to receive:
Code: Select all
<!DOCTYPE html>
<html>
<head>
<title>...</title>
</head>
<body>
....
</body>
</html>
Re: How to read html url as string
this is not that easy because of the Same-Origin-PolicyRjevsky wrote:I want to get HTML pages.
Here's a little trick using whateverorigin:
Code: Select all
Procedure ScrapPageCallback(Result.s)
Debug Result
EndProcedure
Procedure ScrapPage(Url.s, Callback)
! $.getJSON('http://www.whateverorigin.org/get?url=' + encodeURIComponent(v_url) + '&callback=?', function(data){
! v_callback(data.contents);
! });
EndProcedure
ScrapPage("http://www.spiderbasic.com", @ScrapPageCallback())
http://forums.spiderbasic.com/viewtopic ... 1848#p1848
Greetings ... Peter
Re: How to read html url as string
Thanks for the help. Can I make it even easier: to display the page from my web server? (I need it for the android application)Peter wrote:The better way is to run a little php-snippet on your own server
Re: How to read html url as string
WebGadget() ?Rjevsky wrote:Can I make it even easier: to display the page from my web server?
➽ Windows 11 - JDK 1.8 - SB 2.40 - Android 13
➽ http://falsam.com
Sorry for my poor english