Code Monkey home page Code Monkey logo

pastascraper's Introduction

PastaScraper

A script to scrape all the magic pastebin has to offer

Usage

  1. Make sure you have python installed. Run python3 -V in a terminal. If it shows a version number, you're good to go. Otherwise, download Python from the official website.
  2. Head over to Releases.
  3. Download scraper.py.
  4. Run the scraper by typing python3 scraper.py in your terminal.
  5. s c r a p e

Notes

Please be aware that you have to whitelist your IP address on the Pastebin Scraper API website. I will not take responsibility if you get banned from the scraper API or if this script downloads a super virus to your hard drive. You also have to install some modules for this script to work. You can do this by running python3 -m pip install -r requirements.txt in the repository directory.

Parameters

Parameters are back baby

Parameter Optional? Default Effect
-k / --keywords Yes None A file containing keywords to scrape for. One keyword per line.
-i / --infinite Yes False Whether to run in infinite mode or in keyfile mode
-nS / --noSorting Yes False Whether to sort keyword pastes into subdirectories

Roadmap

  • Parameter input
  • Index for keywords

pastascraper's People

Contributors

comanderkai77 avatar initialposition avatar modernaesthetics avatar

Stargazers

 avatar

Watchers

 avatar  avatar

pastascraper's Issues

charmap codec error

was getting UnicodeEncodeError: 'charmap' codec can't encode characters....

Fixed by adding encoding='utf-8' to lines 70, 76, and 131

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.