Pastebin-Scraper is a Perl script for scraping individual pastes from Pastebin.com. It is also able to scrape all public pastes belonging to a particular user, and given the right password, it can also log into an account and scrape private pastes too.
Pastebin-Scraper can be downloaded directly or found on GitHub, and like any good Perl script, it should happily run on all operating systems. It is published under the New BSD License.
usage: [-v] [-f] [-w DELAY] -i PASTEID
or: [-v] [-f] [-w DELAY] -u USERNAME [-p PASSWORD] [-d DIRECTORY]
-v Verbose - display more information.
-f Force Pastebin-Scraper to overwrite existing pastes.
-i Scrape individual paste by ID.
-u Scrape all of a user's public pastes.
-p Log in as the specified user and scrape private pastes too.
-d Specify an alternative output directory (username is used by
-w Delay (in seconds) between each scraped paste (default is null)