canonicalurl

command module
v0.0.0-...-4282cdb Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2018 License: MIT Imports: 14 Imported by: 0

README

canonicalurl

A RESTful service providing a URL's declared canonical URL based on a number of selectors; written in Go and runs on AppEngine (because I'm lazy and its easy).

If you wish to run it without AppEngine you need to change the use of urlfetch and memcache from AppEngine (shouldn't take too long).

The API supports fetching the canonical URL based on a numbers of selectors:

  • link[rel='canonical'] - Fetches the declared canonical URL element
  • meta[property='og:url'] - Fetches the declared canonical URL as defined by the OpenGraph protocol

Response can be JSON (default), JSONP (if callback parameter is set on the URL or plain text (for CLI usage).

Check out https://canonicalurl.info for further information and documentation of the API.

Written by Eran Sandler (@erans) http://eran.sandler.co.il

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