This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Noodle's profile picture

[WIP]Basic HTML Reader

Started by Noodle, 25 September 2012 - 02:00 AM
Noodle #1
Posted 25 September 2012 - 04:00 AM
http://pastebin.com/SGVYsiCi

It reads html files!
Jan #2
Posted 25 September 2012 - 03:15 PM
Wow, looks great! Could you eventually make it read posts from this forum? That would be awesome, to browse the forums in CC.
Also a function that saves a
 block into a file would be handy :P/>/>
Noodle #3
Posted 25 September 2012 - 09:41 PM
I have it designed to take out everything from a html doc then only print h1, title, and paragraphs!
Noodle #4
Posted 25 September 2012 - 11:23 PM
EDIT: This might only be able to read from BASIC websites from the web.. I can't seem to get rid of all the code on these sites. Another thing: These sites use javascript and php to retrieve stuff from a database to have posts -.-
Cranium #5
Posted 25 September 2012 - 11:26 PM
So….if someone wrote a file in HTML, and then put it in a folder for ComputerCraft, this program would be able to interpret that ad turn it into a useable ComputerCraft "site"?
Noodle #6
Posted 26 September 2012 - 01:10 AM
So….if someone wrote a file in HTML, and then put it in a folder for ComputerCraft, this program would be able to interpret that ad turn it into a useable ComputerCraft "site"?
Yes.
nutcase84 #7
Posted 27 September 2012 - 12:21 PM
This looks awesome. I am a desent html programer and i think i will check this out.
Xtansia #8
Posted 27 September 2012 - 12:48 PM
This looks awesome. I am a desent html programer and i think i will check this out.

If you were a decent anything you would know you don't program html
rickydaan #9
Posted 27 September 2012 - 03:07 PM
Hmm Noodle, Imma expand this a bit k
tommyroyall #10
Posted 27 September 2012 - 09:46 PM
You should try working with: http://www.computercraft.info/forums2/index.php?/topic/4261-firebox-web-browser/ . It'd make for quite an interesting experience :P/>/>.
Noodle #11
Posted 27 September 2012 - 09:56 PM
You should try working with: http://www.computerc...ox-web-browser/ . It'd make for quite an interesting experience :P/>/>.
As you would see, he copies them into computers.
I don't copy, I receive the code from the website, and draw what it says in tags like the paragraphs.
Left4Cake #12
Posted 28 September 2012 - 02:51 AM
You should try working with: http://www.computerc...ox-web-browser/ . It'd make for quite an interesting experience :P/>/>.
As you would see, he copies them into computers.
I don't copy, I receive the code from the website, and draw what it says in tags like the paragraphs.

Plus my programs downloads a lua script and then runs it. Not sure where html interpreting could even fit in that process.
Noodle #13
Posted 28 September 2012 - 03:22 AM
You should try working with: http://www.computerc...ox-web-browser/ . It'd make for quite an interesting experience :P/>/>.
As you would see, he copies them into computers.
I don't copy, I receive the code from the website, and draw what it says in tags like the paragraphs.

Plus my programs downloads a lua script and then runs it. Not sure where html interpreting could even fit in that process.
Any website for mine.. Yours has the select few.