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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file pastebin-bisque-1.0.0.tar.gz.

File metadata

  • Download URL: pastebin-bisque-1.0.0.tar.gz
  • Upload date:
  • Size: 35.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for pastebin-bisque-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ca9f27145354619828c807d3ad092078d206535c860ec9c7f0e3a0d9eff74006
MD5 7dbba10aa7264d491d681f227d58cb3a
BLAKE2b-256 17d7df66f30ed2efc357fed99b2766d122ae0e2278f797c7ddbf47dd682de771

See more details on using hashes here.

File details

Details for the file pastebin_bisque-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pastebin_bisque-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 237005a7956124f8f2a4ccada7cf95f0e69786009d5e502f696f4161da413a58
MD5 01b37035caa0e3f66a04fce61f7fca85
BLAKE2b-256 ade0e99ce1f587a2323705c6a4a42cb1695bd14940d8f85afbf28a29d6931417

See more details on using hashes here.

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