GithubHelp home page GithubHelp logo

scrappy's Introduction

An API to request url scrapping

the deployed version at https://scrappingservice.vercel.app/ is outdated!

How to run:

Clone the project to your machine and install the dependencies with yarn or npm install

Run with yarn dev or npm run dev

If you see any compilation or runtime error even on the "/" route, try first running npx tsc --importHelpers and then the run command (concurrently sometimes goes crazy)

How to consume:

Make an request to BASE_ENDPOINT/scrap?uri=https://THE-LINK-YOU-WANNA-SCRAP.com and you will get a 200 json response with scrappingResults and a message. If anything goes wrong you'll receive a 400 json response with just the message.

What's in the scrapping?

Some data can be uncertain, misleading or just abscent, keep that in mind.

  • scrappedAt: Date;
  • title: string;
  • description: string;
  • domain: string;
  • https: boolean;
  • lang: string;
  • favIcon: Source(url)
  • image: Base64 or Source(url)

Opcional params:

You can use the opcional params "mode", "only", "coverType" and "coverAs" to chose how/which data you get back.

  • "mode": ["auto", "force"] (default: "auto")
  • "only": ["scrappedAt", "title", "description", "domain", "https", "lang", "image", "favicon"]
  • "coverType": ["arbitraryChoosenImage", "screenCapture"] (default: "screenCapture")
  • "coverAs": ["b64" | "source"] (default: "b64")

scrappy's People

Contributors

voitaraujo 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.