Metadata-Version: 2.1
Name: mypastebot
Version: 0.2
Summary: A Python solution to creating pastes as a guest, listing new public pastes and more
Home-page: https://github.com/jakestrouse00/mypastebot
Author: Jake Strouse
Author-email: jakestrouse00@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: requests (==2.22.0)

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

## prerequisites
requests==2.22.0

## Installation
```cmd
python -m pip install mypastebot
```
### Methods

#### Create a New Guest Paste
```python
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
 ```python
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
```python
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'])
```


