Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ message = πŸ“¦ v{new_version} is available, upgrade from {current_version}
search = version="{current_version}"
replace = version="{new_version}"

[bumpversion:file:docs/conf.py]
search = version = release = "{current_version}"
replace = version = release = "{new_version}"

[bumpversion:file:src/pastebin_bisque/__init__.py]
search = __version__ = "{current_version}"
replace = __version__ = "{new_version}"
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ jobs:
fail-fast: false
matrix:
include:
- name: 'docs'
python: '3.11'
toxpython: 'python3.11'
tox_env: 'docs'
os: 'ubuntu-latest'
- name: 'py39-cover (ubuntu)'
python: '3.9'
toxpython: 'python3.9'
Expand Down
15 changes: 0 additions & 15 deletions .readthedocs.yml

This file was deleted.

3 changes: 3 additions & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# ✍️ Authors

- πŸ¦„ Brie Carranza - <https://brie.dev>
5 changes: 0 additions & 5 deletions AUTHORS.rst

This file was deleted.

42 changes: 42 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# πŸŽ‰ 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](https://brie.dev/about)'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](https://github.com/bbbbbrie/pastebin-bisque/issues/6), 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](https://github.com/bbbbbrie/pastebin-bisque/issues/6) by Brie
Carranza in [#8](https://github.com/bbbbbrie/pastebin-bisque/pull/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. 😸
49 changes: 0 additions & 49 deletions CHANGELOG.rst

This file was deleted.

139 changes: 0 additions & 139 deletions CONTRIBUTING.rst

This file was deleted.

74 changes: 74 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# ✨ Overview ✨

The Pastebin Bisque is a small Python utility that uses BeautifulSoup to scrape a user's [Pastebin](https://pastebin.com/) 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](https://pastebin.com/doc_scraping_api#2) 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

Learn more on [PyPI](https://pypi.org/project/pastebin-bisque/).

## ℹ️ Usage

pastebin-bisque

Specify a username:

pastebin-bisque --username catstestingcode

Zip the results:

pastebin-bisque -z

Download all of the public pastes for the `catstestingcode` user and save them in a `.zip` file:

pastebin-bisque --username catstestingcode -z

## πŸ“š Documentation

The documentation for `pastebin-bisque` is served via [Read the Docs](https://readthedocs.org) and is available at:

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

## πŸ’» Development

πŸ™ Thanks for your interest in contributing to the development (and documentation) of `pastebin-bisque`. See the notes on [contributing](CONTRIBUTING.md) to learn more.

### πŸ§ͺ Tests

This project uses [GitLab CI](https://docs.gitlab.com/ee/ci/), [tox](https://tox.wiki/en/4.11.3/) and [Test PyPI](https://packaging.python.org/en/latest/guides/using-testpypi/) for testing. See `tests/test_pastebin_bisque.py`.

#### 🏑 Local

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:

##### Windows

```shell
set PYTEST_ADDOPTS=--cov-append
tox
```

##### Other Platforms

```shell
PYTEST_ADDOPTS=--cov-append tox
```

#### πŸ’š CI

See `.gitlab-ci.yml` for the tests that are performed via GitLab CI. You'll need to be a Maintainer to run the tests that interact with Test PyPI (or to release a new package to PyPI).
Loading