Skip to main content

A Python solution to creating pastes as a guest, listing new public pastes and more

Project description


A simple package to create guest pastes, find new public pastes and more!




python -m pip install mypastebot


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)


# find most recent pastes

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


Find Newest Public Pastes

from mypastebot import Search

pastes =

# get new public pastes as links
pastes ='link')

# get new public pastes as raw links
pastes ='raw')

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

mypastebot-0.1.tar.gz (1.6 kB view hashes)

Uploaded source

Built Distribution

mypastebot-0.1-py3-none-any.whl (1.6 kB view hashes)

Uploaded py3

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