Timeline for How to extract numbers from a html file?
Current License: CC BY-SA 4.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 7, 2022 at 21:33 | vote | accept | John Taylor | ||
| Aug 5, 2022 at 15:28 | history | edited | J. M.'s missing motivation | edited tags | |
| Aug 5, 2022 at 14:24 | answer | added | Daniel Huber | timeline score: 3 | |
| Aug 5, 2022 at 12:00 | history | tweeted | twitter.com/StackMma/status/1555524034657411074 | ||
| Aug 5, 2022 at 0:09 | answer | added | lericr | timeline score: 3 | |
| Aug 4, 2022 at 21:41 | comment | added | John Taylor | @lelicr : yes, I need to use them later as numbers. | |
| Aug 4, 2022 at 21:36 | comment | added | lericr | Some things to get you started. data = Import[pathToFile, "Data"] will get the table (hopefully). It'll be a normal Mathematica list of lists, so you can do whatever you want with it (like apply TableForm to see it formatted nicely). You can also try html = Import[pathToFile, "XMLObject"] which will give you an XMLObject that you can traverse/inspect/filter/whatever. Either method should allow you to "extract the table" or any part of it. But are you going to need to parse the number-looking-strings into actual structures that Mathematica will interpret as numbers? | |
| Aug 4, 2022 at 21:07 | history | edited | John Taylor | CC BY-SA 4.0 | added 2 characters in body |
| Aug 4, 2022 at 20:56 | history | asked | John Taylor | CC BY-SA 4.0 |