Skip to main content

Scrape all public Pastebin pastes from a user.

Project description

The Pastebin Bisque is a small Python utility that uses BeautifulSoup to scrape a user’s Pastebin profile. All public pastes from that user are downloaded to disk. Optionally, the pastes can be saved to a single .zip file.

There is no rate-limiting protection built-in. Read about the Pastebin Request Limits if you anticipate generating a large number of requests. The file name provided by the Pastebin user will be prepended with the short URL that Pastebin provides. This allows a single directory with all pastes and no duplicates and makes the original URL fairly easy to reconstruct.

TL;DR - Scrape all public Pastebin pastes from a user.

  • Free software: GNU Lesser General Public License v3 or later (LGPLv3+)

📦 Installation

pip install pastebin-bisque

📚 Documentation

https://pastebin-bisque.readthedocs.io/

💻 Development

To run all the tests run:

tox

Consider using this to run the tests in parallel:

tox -p auto

Note, to combine the coverage data from all the tox environments run:

Windows

set PYTEST_ADDOPTS=--cov-append
tox

Other

PYTEST_ADDOPTS=--cov-append tox

Changelog

1.0.0 (09/10/2023)

v1.0.0: 🍰 Now On PyPI

With this release, pastebin-bisque is now available on PyPI. You can install it with:

pip install pastebin-bisque

This release is timed as an early celebration of the 🦄🌈 original author’s 🍰 birthday.

0.3.0 (12/11/2022)

v0.3.0: 🤖🤝 Human and Bot Friendly

This release is friendly for both humans and machines. Thanks to your feedback, I pushed a new release that should make for a much better experience all around.

What’s Changed

  • Bump urllib3 from 1.25.8 to 1.26.5 by @dependabot

  • Address feedback in #6 by Brie Carranza in #8

0.2.0 (05/13/2020)

v0.2.0: Tidied Up

This version has neater output.

0.1.0 (03/01/2020)

v0.1.0: Inaugural Release

This is the first release of Pastebin Bisque! All of the initial bugs have been squashed! There is documentation and a demo. 😸

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pastebin-bisque-1.0.0.tar.gz (35.7 kB view hashes)

Uploaded Source

Built Distribution

pastebin_bisque-1.0.0-py3-none-any.whl (22.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page