Hacker News new | ask | show | jobs
by jdauriemma 1551 days 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?

2 comments

Yeah, 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>
Adding `https://` will get you the HTML, but there's very little plain text to parse. The markup's layout depends on CSS.
Removed <head> and added font-family: monospace to the <body>. It's definitely not plaintext.