Skip to main content

MyPasteBot

A simple https://pastebin.com Python package to create guest pastes, find new public pastes and more!

prerequisites

requests==2.22.0

Installation

python -m pip install mypastebot

Methods

Create a New Guest Paste

from mypastebot import Create

token = Create.getToken()
paste = Create.makePaste(text='This is the text of our new paste', title='This is the title of the paste', format='1', token=token)
print("Link: " + paste['link'])
print("Raw Link: " + paste['raw'])

Find Pastes Using Keyword

from mypastebot import Search

# max limit is 15
pastes = Search.find(term='Python', limit=10)

print(pastes['results'])

# find most recent pastes

pastes = Search.find(term='Python', limit=10, sortType='date')

print(pastes['results'])

Find Newest Public Pastes

from mypastebot import Search


pastes = Search.new()
print(pastes['results'])

# get new public pastes as links
pastes = Search.new(linkType='link')
print(pastes['results'])

# get new public pastes as raw links
pastes = Search.new(linkType='raw')
print(pastes['results'])

Release files for mypastebot 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mypastebot 0.2
File Size Uploaded
mypastebot-0.2.tar.gz 1.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mypastebot 0.2
File Interpreter ABI Platform
mypastebot-0.2-py3-none-any.whl Python 3 none any Details

Total release size: 3.3 kB

Release files / mypastebot-0.2.tar.gz

Download URL mypastebot-0.2.tar.gz
Size 1.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9e905a4bcdce89a787d5f552ee50fb68a6f33e13e3162e576e354d2eea3d921d
BLAKE2b-256 checksum
How to use checksums
8f77221b53e3621074acba522d6221248f1a1282493405a8f701a08107647dd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.5

Release files / mypastebot-0.2-py3-none-any.whl

Download URL mypastebot-0.2-py3-none-any.whl
Size 1.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
37533701e25d6e802743f88e387d3986817357dd116016e793eddf31dc21bbff
BLAKE2b-256 checksum
How to use checksums
59e0a76d9ddde7e819dd656c2a56a7a00a1902aa1e63edddfbf19522f848083c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.5

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page