honky
Junior Member
Posts: 63
|
Post by honky on Apr 25, 2023 9:43:16 GMT -5
While searching here, I came across this Rod code which works very well; but...
I would like to recover this page: "http://libertybasic.fr/forum/index.php" in a file in: ".txt" or in: ".htm". How to do ? Thank you for. Rod code here:
f$=httpget$("https://gamebin.webs.com/bump.bmp") open "temp.bmp" for output as #temp #temp f$; close #temp loadbmp "temp","temp.bmp" nomainwin 'open a window and graphicbox WindowHeight = 300 WindowWidth = 400 graphicbox #w.g, 0, 0, 400, 300 open "test" for window_nf as #w #w "trapclose [quit]" #w.g "down ; drawbmp temp 0 0" wait
[quit] close #w end
I have tryed: f$=httpget$("https://http://libertybasic.fr/forum/index.php.html")
But it return: Machine stack overflow"
|
|
|
Post by Rod on Apr 25, 2023 10:27:17 GMT -5
You can get it easy enough with the code by substituting the file spec. The actual spec not one with extra https bits. So the next problem is how do you use it? Why .txt, or .htm why change the file .extension because that won’t change the file format. what is it you want to do?
|
|
honky
Junior Member
Posts: 63
|
Post by honky on Apr 25, 2023 11:07:06 GMT -5
I want parse the page to extract infos or datas with LB EDIT: It's good, i have that i want Thank you
|
|