Questions tagged [gumbo]

Gumbo is an implementation of the HTML5 parsing algorithm implemented as a pure C99 library with no outside dependencies. It's designed to serve as a building block for other tools and libraries such as linters, validators, templating languages, and refactoring and analysis tools.

Goals & features:

  1. Fully conformant with the HTML5 spec.
  2. Robust and resilient to bad input.
  3. Simple API that can be easily wrapped by other languages.
  4. Support for source locations and pointers back to the original text.
  5. Support for fragment parsing.
  6. Relatively lightweight, with no outside dependencies.
  7. Passes all html5lib tests, including the template tag.
  8. Tested on over 2.5 billion pages from Google's index.
39 questions
9
votes
2 answers

Extracting and Constructing Tables from HTML Files using Julia

Here's a public link to an example html file. I would like to extract each set of CAN and yearly tax information (example highlighted in red in the image below) from the file and construct a dataframe that looks like the one below. Target…
Alejandro Braun
  • 590
  • 6
  • 15
6
votes
2 answers

Flex 4: Build a Group with a background

I'm trying to build a simple component extending spark.components.Group to have a background color, more specifically a spark.primitives.Rect component stretched to fill the background. This is what I've come up with thus far:
Naftuli Kay
  • 87,710
  • 93
  • 269
  • 411
5
votes
1 answer

How to set skin at runtime in Flex 4

I have a bunch of custom controls based on a SkinnableContainer. When adding the control at design time, I can specify a skin by using the skinClass attribute on the tag. I need to add some of these elements during runtime, and I can't figure out…
Ben
  • 20,737
  • 12
  • 71
  • 115
3
votes
1 answer

Correctly using gumbo-parser to iterate and find the things I need?

I'm working on a pure C99 practising project which can do a login simulation for our school's CAS login system. Now I'm trying to use Gumbo HTML parser to parse our school's login page. Here is the form section and I need to get the login ticket…
Jackson Ming Hu
  • 1,681
  • 2
  • 14
  • 23
3
votes
1 answer

Can somebody please explain this common binding pitfall to me? (using the wrong bindable event name)

I refer to this site link text Using the wrong event name in the [Bindable] tag can cause your application to not bind your property, and you will not even know why. When you use the [Bindable] tag with a custom name, the example below…
Gary Benade
  • 507
  • 4
  • 16
3
votes
1 answer

Gumbo HTML text inside A

I'm using Gumbo to parse a web page in CP1251. I've converted the text into UTF-8 and sent it to gumbo parser. I have problem with getting text inside A link with node->v.text.text I get strange symbols on the output while the source is correctly…
Dmitry K.
  • 313
  • 3
  • 17
3
votes
2 answers

Edit Multiple States At Once in Flash Builder 4

While in Design mode in Flash Builder 4 (gumbo, beta 2), is it possible to edit multiple states at once? In the "states" window, it would seem like I should be able to shift-select multiple states so changes made will affect all the selected states,…
Jonathan Dumaine
  • 5,575
  • 3
  • 38
  • 50
3
votes
2 answers

Complex Maven2 with Flex4 Setup

I have been struggling to get Maven2 to cooperate with me, and was wondering if anyone out there had any ideas on how to get this working.... I am working on a Flash project, and we are considering switching from our hybrid Flex4/FlashCS4 to a pure…
Michael Aaron Safyan
  • 93,612
  • 16
  • 138
  • 200
2
votes
3 answers

Custom Preloader in Flex 4?

Has anyone successfully implemented a custom preloader in Flex 4? In my experience, when I specify a custom preloader using the preloader="com.foo.MyPreloader" in the Application tag, the preloader does not display until the SWF is completely…
davr
  • 18,877
  • 17
  • 76
  • 99
1
vote
1 answer

Can someone provide me a proper tutorial on how to build and install gumbo-query with CMake properly?

I didn't find any proper tutorials on installing this library. The closest I got was: Build gumbo-parser using the instructions in the readme (Linux) Build gumbo-query using the instructions in the readme (Linux) Copy the lib folder to my windows…
diniamo
  • 49
  • 3
1
vote
0 answers

How to install gumbo.h for C++?

I am running LXLE on an Oracle VirtualBox computer. I have successfully installed gumbo for python, but I cannot find how to install the gumbo library for C++, so that if I have a C++ file that includes gumbo.h in the headers, it will actually…
1
vote
0 answers

Julia, Gumbo, Webscraping

I have scraped some data from a website and when i try to pass this data to array i got this message: LoadError: MethodError: Cannot `convert` an object of type HTMLText to an object of type Int64
Anil Mathews
  • 151
  • 1
  • 3
1
vote
1 answer

nokogumbo install fail on Gentoo by bundle and gems

ruby version: ruby 2.4.4p296 (2018-03-28 revision 63013) [x86_64-linux] I can install nokogumbo with portage, but cannot install it with gem or bundle. I try to read the ebuild file to config bundle, but I have no idea how to configure. I also try…
Vonfry
  • 365
  • 2
  • 16
1
vote
1 answer

Building gumbo-parser dll using mingw in Windows 7

I want to build Gumbo-parser dll using MingGW. Can you give me some directions on how to do that? It seems that it can be done since it is pure C, with no dependencies. I want to do this despite the presence of VS solution in the source code because…
Cheung Brian
  • 715
  • 4
  • 11
  • 29
1
vote
0 answers

How do I get all of a particular type of nodes in Gumbo Parser?

I am trying to use Gumbo Parser to get all the nodes of a particular type - like all

nodes or all nodes from a HTML document. My function prototype is like following: list GetAllNodesOfType(GumboNode* root,…
pakko
  • 11
  • 1
1
2 3