Skip to content

Qurl is a drop-in and easy to deploy microservice who exposes an HTTP API you can use to extract content from any web page as JSON. Any information available at a given public URL can be extracted using selector queries (check examples below).

License

repejota/qurl

Repository files navigation

qurl

License ReportCard GoDoc

Table of contents

Introduction

Qurl is a drop-in and easy to deploy microservice who exposes an HTTP API you can use to extract content from any web page as JSON. Any information available at a given public URL can be extracted using selector queries (check examples below).

Example:

$ curl -s 'http://localhost:8080/q?url=https://example.com&header=Content-Type&selector=meta' | json_pp
{
   "url" : "https://example.com",
   "status" : 200,
   "selectors" : {
      "meta" : [
         {
            "text" : "",
            "attributes" : [
               {
                 "key" : "charset",
                  "value" : "utf-8"
               }
            ]
         },
         {
           "text" : "",
            "attributes" : [
               {
                  "key" : "name",
                  "value" : "viewport"
               },
               {
                 "key" : "content",
                  "value" : "width=device-width, initial-scale=1"
               }
            ]
         }
      ]
   },
   "headers" : {
      "Content-Type" : [
         "text/html; charset=utf-8"
      ]
   }
}

Installation

To install Qurl:

go get -u github.com/repejota/qurl

And execute the server:

$ qurl --help
Usage of qurl:
  -address string
        Server address
  -port string
        Server port (default "8080")
  -version
        Show version information

Deployment

You can also deploy Qurl on Heroku with this one click button:

Deploy

Documentation

Qurl is really powerful and full of posibilities, that's why we have been creating an entire site that documents all the features you can use.

Plesae refer to the documentation website where you'll gonna find accurated information aboug how to use the API that provides Qurl but also how to download, build and launch your own insgtance of the service.

Visit the documentation

Continuous integration

Tests

  • Develop: CircleCI
  • Master: CircleCI

Coverage

  • Develop: Coverage Status
  • Master: Coverage Status

License

(The MIT License)

Copyright (c) 2017 qurl Authors.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Qurl is a drop-in and easy to deploy microservice who exposes an HTTP API you can use to extract content from any web page as JSON. Any information available at a given public URL can be extracted using selector queries (check examples below).

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published