This just a quick 1-2 day project to write something that will be able to download the public pastes given a user's pastebin url. None of this is unit tested, just ran through a few pastebins to see what I can do. Also note that there is a default timeout of 5 seconds in between file downloads. As I'm not paying for a pastebin pro account, I'm doing things such that I don't get IP banned/rate limited. Yes, the downloads are synchronous and not async. Yes, it's not ideal but hey, what else do you want?
nodeJS
npm install
npm run start [command] -u [url]
node index.js list -u https://pastebin.com/u/someones_pastebin
or npm run start download -u https://pastebin.com/u/someones_pastebin
-o [absolute path to output dir you want]
, for example on windows you might do something like this pastebin-dl-win.exe download -u https://pastebin.com/u/some_pastebin -o "D:\path\to\output\dir"
ISC License (ISC) Copyright 2020
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.