News for hackers. Stuff that matters.
Re:Ask HN: What API do you wish you had while building your ... by koala_man on Sunday July 09, 2017 @03:37PM (#14731287)
A reverse pastebin, where you give it a pastebin URL and it returns the plaintext.
Re:Ask HN: What API do you wish you had while building your ... by neosilky_ on Sunday July 09, 2017 @05:11PM (#14731679)
Hey! I just made https://reversepaste.com/ for you :)
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
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.

Re:Ask HN: What API do you wish you had while building your ... by avh02 on Sunday July 09, 2017 @04:14PM (#14731457)
Some would say you're half way to building what you want... Launch and sell!
Re:Ask HN: What API do you wish you had while building your ... by ice109 on Sunday July 09, 2017 @04:05PM (#14731413)
what in the world do you need this for?
Re:Ask HN: What API do you wish you had while building your ... by OJFord on Wednesday July 12, 2017 @01:58PM (#14754843)
"Guys - we don't need to pay for S3 when we can just use pastebin et al. - I'll get someone on HN to build the reverse service."