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
💻 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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca9f27145354619828c807d3ad092078d206535c860ec9c7f0e3a0d9eff74006 |
|
MD5 | 7dbba10aa7264d491d681f227d58cb3a |
|
BLAKE2b-256 | 17d7df66f30ed2efc357fed99b2766d122ae0e2278f797c7ddbf47dd682de771 |
File details
Details for the file pastebin_bisque-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: pastebin_bisque-1.0.0-py3-none-any.whl
- Upload date:
- Size: 22.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 237005a7956124f8f2a4ccada7cf95f0e69786009d5e502f696f4161da413a58 |
|
MD5 | 01b37035caa0e3f66a04fce61f7fca85 |
|
BLAKE2b-256 | ade0e99ce1f587a2323705c6a4a42cb1695bd14940d8f85afbf28a29d6931417 |