The Sourcerer's Apprentice

The adventures of David Heinemann in IT & software development

Announcing Pastebin-Scraper

| Comments

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
1
2
3
4
5
6
7
8
9
10
11
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
            default).
  -w        Delay (in seconds) between each scraped paste (default is null)

Comments