Re:Ask HN: What API do you wish you had while building your ...
by edaemon on Sunday July 09, 2017 @03:39PM
(#14731295)
Can't you use the /raw/ URL for that? E.g. https://pastebin.com/raw/AC3FGHBX
[ Parent
| on HN ]
Re:Ask HN: What API do you wish you had while building your ...
by koala_man on Sunday July 09, 2017 @03:54PM
(#14731350)
Works for pastebin.com, but not dpaste.com, sprunge.us, ix.io, fpaste.org, ideone.com, paste.fedoraproject.org, hastebin.com, termbin.com, paste.debian.net, gist.github.com, bpaste.net, lpaste.net, pastee.com, irccloud.com, codepad.org or susepaste.org.
I currently have ~40 lines of regex for this, plus some custom logic for a few that don't have raw URLs at all. A service would be very convenient.