Jump to content




HTML and XML parser


  • You cannot reply to this topic
16 replies to this topic

#1 FuuuAInfiniteLoop(F.A.I.L)

  • Banned
  • 435 posts
  • LocationThe left part of this post

Posted 29 March 2013 - 03:23 PM

HTML parser
Spoiler
XML parser
Spoiler
Post suggestions/bugs!

#2 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 29 March 2013 - 03:47 PM

This could be useful, I guess. I waiting for someone (possibly myself) to make an HTML renderer.

#3 FuuuAInfiniteLoop(F.A.I.L)

  • Banned
  • 435 posts
  • LocationThe left part of this post

Posted 29 March 2013 - 04:00 PM

I added some more information and the download link which i forgetted :wacko:

#4 FuuuAInfiniteLoop(F.A.I.L)

  • Banned
  • 435 posts
  • LocationThe left part of this post

Posted 29 March 2013 - 04:13 PM

thinking on testing it with the cc forum....

#5 Mads

  • Members
  • 604 posts
  • LocationCopenhagen, Denmark

Posted 29 March 2013 - 09:46 PM

Very nice! But I think it's more of an XML parser than HTML parser ;)

#6 FuuuAInfiniteLoop(F.A.I.L)

  • Banned
  • 435 posts
  • LocationThe left part of this post

Posted 30 March 2013 - 04:11 AM

View PostMads, on 29 March 2013 - 09:46 PM, said:

Very nice! But I think it's more of an XML parser than HTML parser ;)
It parses an html file and output a table with all the tags and arguments so i think its an html parser

#7 Mads

  • Members
  • 604 posts
  • LocationCopenhagen, Denmark

Posted 30 March 2013 - 06:01 AM

Ah, sorry, didn't actually look at the source, just at the readme. So, naturally, this question rises: why not XML?

#8 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 30 March 2013 - 06:29 AM

View PostMads, on 30 March 2013 - 06:01 AM, said:

Ah, sorry, didn't actually look at the source, just at the readme. So, naturally, this question rises: why not XML?

Why not both?

Just tested it on gravityscore's thunderhawk website and it got everything :P

#9 FuuuAInfiniteLoop(F.A.I.L)

  • Banned
  • 435 posts
  • LocationThe left part of this post

Posted 30 March 2013 - 08:47 AM

View PostremiX, on 30 March 2013 - 06:29 AM, said:

View PostMads, on 30 March 2013 - 06:01 AM, said:

Ah, sorry, didn't actually look at the source, just at the readme. So, naturally, this question rises: why not XML?

Why not both?

Just tested it on gravityscore's thunderhawk website and it got everything :P

I will work in a xml parser and i will put it here!

#10 FuuuAInfiniteLoop(F.A.I.L)

  • Banned
  • 435 posts
  • LocationThe left part of this post

Posted 30 March 2013 - 09:06 AM

View Posturielsalis, on 30 March 2013 - 08:47 AM, said:

View PostremiX, on 30 March 2013 - 06:29 AM, said:

View PostMads, on 30 March 2013 - 06:01 AM, said:

Ah, sorry, didn't actually look at the source, just at the readme. So, naturally, this question rises: why not XML?

Why not both?

Just tested it on gravityscore's thunderhawk website and it got everything :P

I will work in a xml parser and i will put it here!
Done!

#11 FuuuAInfiniteLoop(F.A.I.L)

  • Banned
  • 435 posts
  • LocationThe left part of this post

Posted 21 April 2013 - 02:39 AM

Nobody using it?

#12 Shazz

  • Members
  • 175 posts

Posted 01 May 2013 - 08:57 PM

You literally copied the programs and not only that, you also copied the descriptions.

#13 FuuuAInfiniteLoop(F.A.I.L)

  • Banned
  • 435 posts
  • LocationThe left part of this post

Posted 01 May 2013 - 09:11 PM

View PostShazz, on 01 May 2013 - 08:57 PM, said:

You literally copied the programs and not only that, you also copied the descriptions.
First, I dont copy the programs, i modify them to work with computercraft(the license allow it) and i posted the link and said in the FIRST LINE that i have modified it
And Second, The description is also modified, it describes a bit more and the changed functions, so first look and the comment

EDIT: And in the html api i added functions!

#14 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 01 May 2013 - 11:48 PM

View Posturielsalis, on 01 May 2013 - 09:11 PM, said:

First, I dont copy the programs, i modify them to work with computercraft(the license allow it) and i posted the link and said in the FIRST LINE that i have modified it
The difference in your XML code and the source code you got it from is that you removed the module function call and comment block. Also I see nowhere in the git repo that you got this from a license saying that you can modify and distribute.

#15 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 03 May 2013 - 12:36 PM

What does your HTML parser output for this page?

<html>
<body>
<b>
This text is bold
<i>
This text is bold and italic
</b>
This text is italic
</i>
</body>
</html>


#16 TableCraft0R

  • Members
  • 63 posts

Posted 04 June 2013 - 12:56 AM

maybe the key of my new os that is NOT working?

#17 xcrafter_40

  • Members
  • 50 posts
  • LocationIn a room with a computer, duh.

Posted 12 January 2017 - 04:03 AM

How exactly do I use this?
I put in:
<html>
  <body>
    <p>hi!</p>
  </body>
</html>
And I got:
{1.0={1.0=
  , 2.0={1.0=
    , 2.0={1.0=hi!, _tag=p, _attr={}}, _tag=body, 3.0=
  , _attr={}}, _tag=html, 3.0=
, _attr={}}, _tag=#document, _attr={}}
Now how would I index this data? In python it would be like:
>>> print(htmlvar["html"]["body"]["p"])
"hi!"






2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users