2023-05-18 20:34:33 +00:00
|
|
|
# pastebin
|
|
|
|
> python wrapper for the pastebin api
|
2019-06-28 05:28:33 +00:00
|
|
|
|
2023-05-18 20:34:33 +00:00
|
|
|
## API Documentation:
|
|
|
|
* [Pastebin API](https://pastebin.com/doc_api)
|
2019-06-28 05:28:33 +00:00
|
|
|
|
2023-05-18 20:34:33 +00:00
|
|
|
## Example:
|
|
|
|
```python
|
|
|
|
#!/usr/bin/env python
|
|
|
|
import pastebin
|
2023-05-18 20:46:14 +00:00
|
|
|
api_key = 'CHANGEME'
|
|
|
|
api = pastebin.PasteBin(api_key)
|
|
|
|
data = open(__file__).read()
|
|
|
|
result = api.paste(data, guest=True, name='Example Script', format='Python', private='1', expire='10M')
|
2023-05-18 20:34:33 +00:00
|
|
|
print('PasteBin URL: ' + result)
|
|
|
|
```
|
|
|
|
|
|
|
|
**Note**: A posix shell script example can be found [here](https://github.com/acidvegas/random/blob/master/pastebin)
|
|
|
|
|
2023-08-20 01:42:38 +00:00
|
|
|
___
|
|
|
|
|
2024-01-21 00:10:14 +00:00
|
|
|
###### Mirrors for this repository: [acid.vegas](https://git.acid.vegas/pastebin) • [SuperNETs](https://git.supernets.org/acidvegas/pastebin) • [GitHub](https://github.com/acidvegas/pastebin) • [GitLab](https://gitlab.com/acidvegas/pastebin) • [Codeberg](https://codeberg.org/acidvegas/pastebin)
|