links-parser

command module
v0.0.0-...-1a6966d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2016 License: GPL-3.0 Imports: 29 Imported by: 0

README

Overview

JSON/HTTP service which fetches resources identified by URLs. Returns page type, title, description, and favicon.

How to Run

$ ./links-parser

Here is an example request:

$ curl -d '{"request": [{"url": "http://www.google.com"}]}' -H 'content-type: application/json' localhost:3000

links-parser will try to save results to Redis when available.

How to Test

$ make test

Notes

  • rootUrl in response is to be used as a unique identifier for the page.
  • Uses go's charset to try and auto detect page encoding and convert to UTF8.
  • Limited to 10 redirects in a row.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL