4 ms·
This is great! I wonder what needs to happen in order to get `curl plaintextsports.com` to Just Work, similar to `curl wttr.in`. EDIT: After inspecting the HT
by jdauriemma 5y ago
This is great! I wonder what needs to happen in order to get `curl plaintextsports.com` to Just Work, similar to `curl wttr.in`.
EDIT: After inspecting the HTML, I think Plain Text Sports is a bit of a misnomer. With that name, I might have expected a lot of <pre> tags in the markup, but there are no none to be found. Instead, CSS is used for the layout, even line breaks. So, Hypertext Sports?
- gwbas1c 5y agoYeah, I thought we'd see the results inside of a <pre> tag. Instead, the HTML is empty. Looks like a single page app. $ curl plaintextsports.com % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 183 100 183 0 0 1060 0 --:--:-- --:--:-- --:--:-- 1063 <html> <head><title>301 Moved Permanently</title></head> <body bgcolor="white"> <center><h1>301 Moved Permanently</h1></center> <hr><center>CloudFront</center> </body> </html>
- jdauriemma 5y agoAdding `https:// https://` will get you the HTML, but there's very little plain text to parse. The markup's layout depends on CSS.
- grenoire 5y agoRemoved <head> and added font-family: monospace to the <body>. It's definitely not plaintext.