Skip to content

dark0pcodes/pastebin_scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pastebin Scraper

Simple library to interact with the Pastebin's scraping API for Python 3.

Installation

To install this library just run the following command:

pip install git+ssh://git@github.com/0bscurec0de/pastebin_scraper.git

Example usage

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()

Version history

  • 0.1.0:
    • First release
    • Get list of last pastes
    • Get pastes' metadata and content
    • Download pastes to disk

About

Pastebin's Scraping API Handler

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages