Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rikedyp/htmltables
Import HTML tables as APL arrays
https://github.com/rikedyp/htmltables
Last synced: 14 days ago
JSON representation
Import HTML tables as APL arrays
- Host: GitHub
- URL: https://github.com/rikedyp/htmltables
- Owner: rikedyp
- License: mit
- Created: 2022-09-26T12:13:52.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-15T16:19:30.000Z (3 months ago)
- Last Synced: 2024-10-16T21:55:14.501Z (3 months ago)
- Language: HTML
- Size: 318 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HTMLTables
Import HTML tables as APL arrays```APL
HTMLTables.FromURL ← {
⍵: Simple character vector URL
{⍺}: Indices of tables to import (default all ⍳≢tables)
←: Return a nested vector of nested matrices. Each matrix contains data from HTML tables fetched from the URL
}
```## How to use
### Import Tatin package
HTMLTables is (not yet) only available as a Tatin package.
```
]Tatin.LoadPackages RikedyP-HTMLTables
```### Call `HTMLTables.FromURL` with a URL:
```
⍴r←HTMLTables.FromURL'https://aplwiki.com/wiki/Dyalog_APL'
5
5↑2⊃r
┌──────┬────┬───────┬───────────────────────────────────────────────────────────────────────────────────┐
│Number│Year│Month │Features │
├──────┼────┼───────┼───────────────────────────────────────────────────────────────────────────────────┤
│1 │1983│April │(Zilog S8000 only) │
├──────┼────┼───────┼───────────────────────────────────────────────────────────────────────────────────┤
│2 │1984│ │(Many more platforms) │
├──────┼────┼───────┼───────────────────────────────────────────────────────────────────────────────────┤
│3.0 │1985│ │(More platforms) Rectangular display of arrays │
├──────┼────┼───────┼───────────────────────────────────────────────────────────────────────────────────┤
│4.0 │1986│October│User-defined operators,function assignment(including forderived functions),⎕MONITOR│
└──────┴────┴───────┴───────────────────────────────────────────────────────────────────────────────────┘
```