B4A Library [B4X] MiniHtmlParser - simple html parser implemented with B4X - Erel    
Feb 6, 2025   
(40 reactions)MiniHtmlParser is a cross platform class that parses html strings and creates a tree... html pages are not 100% valid. The parser tries to handle a few cases, far from browsers which...
link: to ParseAttributes and so far it is working fine for my MiniHtml library.
Private Sub...
link: - 0.95 - Fixes an issue with attributes keys containing dashes. Thank you @aeric for the fix!...
link: Suggestion update:
Private Sub ParseAttributes (Parent As HtmlNode)
Dim start As Int = Index...
Share My Creation [B4X] B4X Pleroma - open source client for Mastodon / Pleroma social networks - Erel    
Nov 4, 2020   
(16 reactions)What is Mastodon?
IPSbNdBmWKE
Pleroma is a lightweight implementation that extends Mastodon.
B4X Pleroma is a client for these social networks.
More information here: https://www.b4x.com/android/forum/threads/119426/#content
It is based on quite a few B4X components including: BCTextEngine, BitmapCreator, MiniHtmlParser, OkHttpUtils2, OAuth, KeyValueStore, XUI Views, B4XPages, B4XDrawer, B4XGifView, B4XPreferencesDialog, BCToast, xCustomListView, BitmapsAsync, RequestsManager and...
B4J Question MiniHTMLParser shows error message when no node text present - wimpie3    
May 13, 2024I have a table with some empty cells. When I do this:
HtmlParser.GetTextFromNode(tds.Get(t),0)
on an empty cell, MiniHTMLParser throws an error (returning an empty string would be better IMHO).
Error occurred on line: 276 (MiniHtmlParser)
java.lang.IndexOutOfBoundsException: Index 0 out of bounds....minihtmlparser._gettextfromnode(minihtmlparser.java:213)
at jdk.internal.reflect.GeneratedMethodAccessor7...
link: MiniHTMLParser is a b4xlib, you can fix it.
'Returns the text value from a node.
Public Sub...
B4J Question miniHtmlParser help - walterf25    
Jan 11, 2024 a hard time wrapping my head around how the minihtmlparser library works, I have seen some examples in the forum but since I am not an expert in HTML either.
So basically what I need is to just get...
link: The titles are in non-official HTML <act></act> tags. But it is possible once you know...
link:
You are right. The italics are not handled properly.
See revised solution attached.
I still see t...
link: Wow @William Lancee Thanks for the help...
B4A Question Solved - MiniHtmlParser FindDirectNodes multiple lines of same - Robert Valentino    
Sep 11, 2023 As HtmlNode = mHtmlParser.Parse(LeaguePals_Data)
Dim BowlerList As List = mHtmlParser.FindDirectNodes(xRoot, "div", mHtmlParser.CreateHtmlAttribute... can't figure out how to get the others
Dim BowlerList As HtmlNode = mHtmlParser.FindNode(xRoot, "div", mHtmlParser.CreateHtmlAttribute("class", "pageSection...
link: the the first division
Dim PDFExport As HtmlNode = mHtmlParser.FindNode(xRoot...
B4A Question web-component inside a web page with MiniHtmlParser - Alessandro71    
Jan 28, 2023I'm downloading a web page and parsing it with MiniHtmlParser.
Looking at the page with a web...
tags
I can see the content with a web browser, but not with MiniHtmlParser
How can I get the same...
link: webview+js...
link: I don´t know if there is such feature......
link:
probably the site is loading additional data with javascript and dynamically adding content.
You d...
B4J Question SOLVED - MiniHtmlParser - Help - Robert Valentino    
Sep 21, 2022 using Erels MiniHtmlParser as a starting point
Attached is B4J program.
Please ANY help you can give... all the different data
This is what I am trying to do
HtmlParser.Initialize
Dim root...
link: Got it
Dim BowlerList As HtmlNode = HtmlParser.FindNode(root, "div", HtmlParser...
link: .
133935
This line gets me the 1st team table
Dim Table As HtmlNode = HtmlParser.FindNode...
link: () As String)
HtmlParser.Initialize
Dim root As HtmlNode = HtmlParser.Parse(File.ReadString...
B4A Question MiniHtmlParser problem - Error occurred on line: 236 (MiniHtmlParser) - mcqueccu    
Aug 19, 2020
Dim link As String
Try
Dim parser As MiniHtmlParser
parser.Initialize
Dim root As HtmlNode = parser.Parse(content)
Dim sf_result As HtmlNode = parser.FindNode(root...
link: Yes, the B4J crashes less often than the B4A, also the crash happens more frequent in direct online ...
link: answer again. If you want me to help you then upload a small project with the html content...
link: The code you posted and mine are the same from what I can see. And from my post you can see I said t...
B4A Question MiniHTMLParser get the node HTML - Rusty    
Jan 27, 2021I have the MiniHTMLParser parsing nodes very well within a class.
I can get the text, but would like to get the Node HTML along with the text.
is this possible? If so, how might this be done...
link: MiniHtmlParser doesn't store the elements indices in the original text. It shouldn't be too...
link: Tip: open manifest.txt and you will see which libraries are required....
link: Thanks Erel, I did this (or rather am doing this) but can't find the library B4XSet.
Can you ple...
B4A Question [Solved] How to use MiniHtmlParser to parse a html table ? - AnandGupta    
Nov 12, 2020 that my logic will fail if the table,th or td are not proper.
So I tried using MiniHtmlParser, but am...>F</td>
</tr>
</table>
</body>"$
Dim parser As MiniHtmlParser
parser.Initialize
Dim root As HtmlNode = parser.Parse(html)
Dim p As HtmlNode = parser...
link: MiniHtmlParser, which makes so easy parsing html tags.
Thanks a lot.
Regards,
Anand...
link:
</body>"$
Dim parser As MiniHtmlParser
parser.Initialize
Dim root...
Page: 1  
2  
3  
4  
5  
6  
7