Skip to content

Simple HTML parser#5

Open
phorward wants to merge 2 commits into
Michael-F-Ellis:masterfrom
phorward:master
Open

Simple HTML parser#5
phorward wants to merge 2 commits into
Michael-F-Ellis:masterfrom
phorward:master

Conversation

@phorward

Copy link
Copy Markdown

Hello, this is a first version of a simple HTML parser that can be used to transform an HTML input source into a nested htmltree elements structure.
Maybe you find it useful. I didn't test it yet with all runtime environments htmltree should run within.

@Michael-F-Ellis

Copy link
Copy Markdown
Owner

Thanks, Jan. A parser could be a nice addition to htmltree. I have a tight deadline to finish a project for a client this week so I won't get a chance to look at your contribution and test it until next week. Hope that's ok.

Kind regards,
Mike

@phorward

phorward commented Sep 18, 2018

Copy link
Copy Markdown
Author

Hope that's ok.

Sure it is, don't feel stressed with it in any way. I think this implementation won't work with Transcrypt so far. Transcrypt has so many pitfalls and problems to deal with right now...

@phorward

Copy link
Copy Markdown
Author

Hi @Michael-F-Ellis, I've just updated my HTML parser to work both with CPython 3.7 and Transcrypt 3.7.5.

I've put the pragmas above the docsctring because they produced different results with Transcrypt. Please feel free to change the section below around the "main" to fulfill previous standards, I've just changed it this way for direct testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants