Simple library to interact with the Pastebin's scraping API for Python 3.
To install this library just run the following command:
pip install git+ssh://git@github.com/0bscurec0de/pastebin_scraper.git
from pastebin_scraper import scrapper
# Get last pastes
scrapper.get_pastes_list()
scrapper.get_pastes_list(limit=50)
scrapper.get_pastes_list(language='python')
scrapper.get_pastes_list(limit=50, language='python')
# Get paste's content in memory
scrapper.get_paste_raw(paste_key='paste_key')
# Get paste's metadata
scrapper.get_paste_metadata(paste_key='paste_key')
# Download paste
scrapper.download_paste(paste_key='paste_key', file_path='/path/to/file.txt')
# Get supported languages
scrapper.get_supported_languages()
- 0.1.0:
- First release
- Get list of last pastes
- Get pastes' metadata and content
- Download pastes to disk