8000 Parse pairwise rows · Issue #9 · foolin/pagser · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse pairwise rows #9

Open
mitar opened this issue Apr 6, 2024 · 1 comment
Open

Parse pairwise rows #9

mitar opened this issue Apr 6, 2024 · 1 comment

Comments

@mitar
Copy link
mitar commented Apr 6, 2024

I have HTML like:

<div class=".header">...</div>
<div class=".data">...</div>
<div class=".header">...</div>
<div class=".data">...</div>
<div class=".header">...</div>
<div class=".data">...</div>

It seems I am unable to parse this into a struct like:

struct {
    Rows []struct {
        Header string
        Data string
    }
}
@foolin
Copy link
Owner
foolin commented Apr 8, 2024
struct { 
Headers []string
Data []string

You can transform this struct yourself.

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

No branches or pull requests

2 participants
0