Giter Club home page Giter Club logo

scrappy's Introduction

Scrappy!

Scrappy is a barebones API for scraping the world-wide-web! Unlike similar projects online, Scrappy is written entirely in PHP, and the base code is under 100 lines!

Scrappy has plenty of usage:

  1. A Website blocked by your company or ISP? Scrappy can get around that no hassle!

  2. Is cross-origin resource sharing giving you a hard time? Wrap your URL through Scrappy and forget about it!

  3. Get a full copy of another website's HTML directly in your browser, plaintext, or even a JSON Object!

API Usage

We support GET and POST HTTP methods! You can pass parameters using application/x-www-form-urlencoded or simple query strings through your address bar.

Parameter Type Description
url String (Required) The webpage we want to scrape. We support all files under 2 megabytes in size.
type String The response format we want. Choose one depending on what you need: html for standard HTML output (the default), plain for barebones text-only output, or json for a JSON object.
resp Boolean Print out the HTTP response information from cURL instead of the webpage. If the type paramater is set to "html" the info will be printed out in an HTML Table element. If the type paramater is set to "json" this is not required.
ua String Specify the User-Agent that Scrappy will use when fetching.
r String Specify the Referer that Scrappy will use when fetching.

scrappy's People

Contributors

89jgoldberg avatar

Watchers

James Cloos avatar

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.