GithubHelp home page GithubHelp logo

scrape-it-1's Introduction

scrape-it

A web scraping API for humans

Use Hosted API

Quick Start

Welcome to the quick-start! Below are some examples for common ways of using the API via cURL.

Also be sure to check out the full reference of API endpoints.

Intro

This API is a hosted version of the open source scrape-it library, and the API usage is exactly the same. The examples here show how to use the same API via an endpoint.

Scraping Hacker News

curl -X POST \
  'https://api.saasify.sh/1/call/dev/scrape-it@b2e60ee3/index' \
  -H 'content-type: application/json' \
  -d '{
  "url": "https://news.ycombinator.com",
  "opts": {
    "posts": {
      "listItem": ".athing",
      "data": {
        "title": ".storylink",
        "href": {
          "selector": ".storylink",
          "attr": "href"
        }
      }
    }
  }
}'

Returns a JSON payload

{
  "posts": [
    {
      "title": "FBI designates FaceApp as counterintelligence threat [pdf]",
      "href": "https://www.democrats.senate.gov/..."
    },
    {
      "title": "0.30000000000000004",
      "href": "https://0.30000000000000004.com/"
    }
  ]
}

Hitting our public rate limit? Consider upgrading to remove all rate limits.

License

MIT © Saasify

scrape-it-1's People

Contributors

chrisvxd avatar

Watchers

 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.