[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
Pete's QBASIC Site Discuss QBasic, Freebasic, QB64 and more 2006-08-02T13:50:22-05:00 http://www.petesqbsite.com/phpBB3/app.php/feed/topic/1479 2006-08-02T13:50:22-05:00 2006-08-02T13:50:22-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=12290#p12290 <![CDATA[How do I get data from a web site into my program?]]>
*****

Statistics: Posted by moneo — Wed Aug 02, 2006 1:50 pm


]]>
2006-08-01T23:55:29-05:00 2006-08-01T23:55:29-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=12284#p12284 <![CDATA[Maybe use wget.exe?]]>
I was able to use it to create a program that downloads webpage information from a particular site (using wget) and then parses the page through OPEN and LINE INPUT statements. Then based on that information, I use wget again to download other files from the site. The wget command has a lot of sweet options that make it quite versatile.

I suppose perl would be a better language to parse the downloaded text with, but Qbasic is more fun. :)

Anyway, refer to http://www.interlog.com/~tcharron/wgetwin.html and click on the second link with text: "wgetwin-1_5_3_1-binary.zip" to download a copy of wget.exe.

In your QB program, simply include a line of code like:

SHELL "wget -Owebpage.htm " + url$

As long as you have the wget.exe command in the working directory, wget will download the page for you. (You can also make it a common command with environmental variables, but I never messed with that myself.) Then it's just a matter of OPENing the downloaded html file and parsing out the info you need.

*(One tricky part for me was including the quotation marks around the URL. I had to use CHR$(34) to actually include the quotation marks when constructing the url$. Hope this saves you some headache.)

Statistics: Posted by Stoves — Tue Aug 01, 2006 11:55 pm


]]>
2006-05-26T15:13:46-05:00 2006-05-26T15:13:46-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=11708#p11708 <![CDATA[How do I get data from a web site into my program?]]>
If you were really good, you could make your program read the file from the 'Temporary Internet Files" folder, so you wouldn't even have to save anything. It would already be there.

I wrote an "on-line connection timer" that way by turning on modem logging then opening and parsing the modem log created by the dial-up connection. After each dial-up session I could immediately view my on-line time for the month.

Statistics: Posted by Zim — Fri May 26, 2006 3:13 pm


]]>
2006-05-26T09:22:56-05:00 2006-05-26T09:22:56-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=11701#p11701 <![CDATA[How do I get data from a web site into my program?]]>
although i am a bit confused i though orignal what you want was a information on a web page . like in a html file if that the case you just need to writte a http graber like Z!re says (there a demo in freebasic example folder in one of the winsock example for this)
crab the page and parser out the information you want.

if its in a word document on the page then its a lot more complex you still need the http graber to dl the file. and then you need to parser out microsofy evil word document.

Statistics: Posted by ShadowWolf — Fri May 26, 2006 9:22 am


]]>
2006-05-25T13:11:48-05:00 2006-05-25T13:11:48-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=11694#p11694 <![CDATA[How do I get data from a web site into my program?]]> Make a HTTP grabber
Learn the WORD format
Make a WORD reader/writer
Combine the two

There ya go.

Statistics: Posted by Z!re — Thu May 25, 2006 1:11 pm


]]>
2006-05-25T08:16:00-05:00 2006-05-25T08:16:00-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=11693#p11693 <![CDATA[Thank you for your input]]> Statistics: Posted by Ron — Thu May 25, 2006 8:16 am


]]>
2006-05-25T05:01:33-05:00 2006-05-25T05:01:33-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=11692#p11692 <![CDATA[How do I get data from a web site into my program?]]>



me neither...

Statistics: Posted by Theophage — Thu May 25, 2006 5:01 am


]]>
2006-05-24T23:24:17-05:00 2006-05-24T23:24:17-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=11690#p11690 <![CDATA[How do I get data from a web site into my program?]]>
>anarky

Statistics: Posted by anarky — Wed May 24, 2006 11:24 pm


]]>
2006-05-24T05:45:37-05:00 2006-05-24T05:45:37-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=11685#p11685 <![CDATA[How do I get data from a web site into my program?]]> Statistics: Posted by ShadowWolf — Wed May 24, 2006 5:45 am


]]>
2006-05-23T18:18:03-05:00 2006-05-23T18:18:03-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=11675#p11675 <![CDATA[F+ NetSite]]>
For GetNet:
http://brandoncornell.com/Files/getnet.zip

For F+ Net Site:
http://www.brandoncornell.com/modules/m ... id=2&lid=6

If you need anyother help e-mail me at admin@brandoncornell.com

Statistics: Posted by Brandon — Tue May 23, 2006 6:18 pm


]]>
2006-05-23T02:42:41-05:00 2006-05-23T02:42:41-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=11666#p11666 <![CDATA[How do I get data from a web site into my program?]]>
I don't think you can access any part of a website directly from QBASIC. Others may correct me if I am wrong, but I'm pretty sure I'm right.
They was once a QB web browser (it ran from DOS i think), it text only and didn't work with most sites

Statistics: Posted by RayBritton — Tue May 23, 2006 2:42 am


]]>
2006-05-22T19:44:39-05:00 2006-05-22T19:44:39-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=11664#p11664 <![CDATA[How do I get data from a web site into my program?]]>
I don't think you can access any part of a website directly from QBASIC. Others may correct me if I am wrong, but I'm pretty sure I'm right.

Next, the good news:

QBASIC can read things out of a file on your computer. If there are many figures, you can cut and past the lot of them into a .txt file, and your QBASIC program can open that file and read the numbers out.

For info how to do this, look up the commands OPEN, INPUT#, and GET# in the QBASIC help file. Can I see the website with the numbers? Perhaps then I can give you more specifics on how to write the program for it.

Statistics: Posted by Theophage — Mon May 22, 2006 7:44 pm


]]>
2006-05-22T14:35:02-05:00 2006-05-22T14:35:02-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=11659#p11659 <![CDATA[How do I get data from a web site into my program?]]> Statistics: Posted by Ron — Mon May 22, 2006 2:35 pm


]]>