Open dgw opened 1 year ago
One to not forget: double links because of <a href>
tags.
\<user> https://news.ycombinator.com/item?id=38421121
\<bot> [Hacker News] Comment by Ringz (2 hours, 28 minutes ago): My perfect bookmark manager is Markdownload \https://github.com/deathau/markdownload</a> ⏎ Just save the complete page, only selected text or only the link to a markdown file or Obsidian. With downloaded, linked or without pictures. My OS and Obsidian can search those files, they have more (automatically added) metadata. ⏎ I can even edit them […]
Edit: another example:
\
https://news.ycombinator.com/item?id=38472130 \
[Hacker News] Comment by i13e (2 hours, 8 minutes ago): This matches your requirements:\https://maps.google.com/</a>
v0.1.0 cut today with all the important functionality available. Submissions and comments work, and common edge cases like deleted items are handled.
In descending order of precedence, what's missing:
/edit
(maybe?)
These are things that would be nice to support/fix before declaring the plugin "stable" and releasing it on PyPI.
setup.py
-style build/install topyproject.toml
"dead": true
in Firebase JSON"text"
may be"[dead]"
,"[flagged]"
, possibly other values—but the originaltext
is hidden if a comment isdead
null
items (e.g. mistyped or otherwise mangled ID, nuked beyonddead
status, etc.)json.loads("null")
says this should mean the item/user will satisfyis None
, which is an easy sanity check to add at runtime and give a friendly error message if the object doesn't existnull
separatelyby
field showing who submitted themtext
orurl
, but seemingly not both (like a regular "story" item)"parts"
field of a"type": "poll"
item Can't imagine people will ever link directly to a poll option, so maybe summarizing the poll options when a "poll" gets linked is better? (Lot of extra API hits, though.)"type": "story"
, but will havetext
instead ofurl
and usually a category-specific prefix on thetitle
("Ask HN:"/"Tell HN:" for "ask" tab; "Show HN:" for "show" tab)text
only, found under "ask" taburl
field (current state as of 88c39cbcdc6df8127edd7b9ba09691846285b9d4:KeyError: 'url'
)text
only), 37111256 ("story" type withtext
only)deleted: true
,id
,time
, andtype
fields present)about
field contains"
, so make sure to decode HTML entities in user biosnull
in the API, making users who've never posted/commented indistinguishable from nonexistent users (which should also be handled)/edit?id=NNNNNN
I'll add to this if I think of more after submitting the issue.