bakame-php / html-table Goto Github PK
View Code? Open in Web Editor NEWExtract Data from tabular HTML table
License: MIT License
Extract Data from tabular HTML table
License: MIT License
There are so many poorly-formatted tables out there...
Here's one I'm working with. What I'd like the library to do is see that there's no thead and instead using the first tr with th's in it.
It's not great, but I think it's likely to be right some of the time.
<table style="width:100%" class="table-popup tbl-scores-standing">
<tr>
<td colspan="7">
<hr id="table-separators-invisible">
</td>
</tr>
<tr>
<td colspan="7">
<div class="modal-table-header" id="scores-title">Fall 2023
Varsity
Football
(as of
02-16-24)</div>
</td>
</tr>
<tr>
<td colspan="7">
<hr id="table-separators-thick">
</td>
</tr>
<tr>
<th class="table-row-headers">Date</th>
<th class="table-row-headers">Time</th>
<th class="table-row-headers">Event Type</th>
<th class="table-row-headers opponents">Opponent</th>
<th class="table-row-headers">Loc.</th>
<th class="table-row-headers">Score</th>
<th class="table-row-headers">W/L/T</th>
<th class="table-row-headers comments">Comments</th>
</tr>
<tr>
<td colspan="6">
<hr id="table-separators-thick">
</td>
</tr>
Q | A |
---|---|
New Feature | yes |
BC Break | no |
I'd like to see the tr/td attributes. I'm parsing a table where the key id is never displayed.
<tr class="table-data-styles">
<td data-event="842349">08-25-23</td>
<td class="time">07:00 PM</td>
<td>Game</td>
</tr>
If this already exists, can you point me to the docs? Thanks, cool library, I've worked on variations of this over the years and have always hoped someone else would write it! And it's integrated with league/csv!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.