All Projects → alexellis → Href Counter

alexellis / Href Counter

Licence: mit
Golang multi-stage build to count links within a page for SEO

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Href Counter

Serving
Kubernetes-based, scale-to-zero, request-driven compute
Stars: ✭ 4,238 (+9990.48%)
Mutual labels:  serverless, function
Serverless Sharp
Serverless image optimizer for S3, Lambda, and Cloudfront
Stars: ✭ 102 (+142.86%)
Mutual labels:  serverless, seo
React Firebase Starter
Boilerplate (seed) project for creating web apps with React.js, GraphQL.js and Relay
Stars: ✭ 4,366 (+10295.24%)
Mutual labels:  serverless, seo
Knctl
Knative CLI
Stars: ✭ 163 (+288.1%)
Mutual labels:  serverless, function
Webify
Turn shell commands into web services
Stars: ✭ 852 (+1928.57%)
Mutual labels:  serverless, function
Serverless Faas Workbench
FunctionBench
Stars: ✭ 32 (-23.81%)
Mutual labels:  serverless
Lambda Packs
Precompiled packages for AWS Lambda
Stars: ✭ 997 (+2273.81%)
Mutual labels:  serverless
Vscode Apimanagement
VS Code extension for Azure API Management.
Stars: ✭ 32 (-23.81%)
Mutual labels:  serverless
Fusio
Open source API management platform
Stars: ✭ 946 (+2152.38%)
Mutual labels:  serverless
Typescript
TypeScript definitions for Serverless Framework service configuration
Stars: ✭ 42 (+0%)
Mutual labels:  serverless
Deno Serverless Poc
PoC Deno image for Google Cloud Run
Stars: ✭ 41 (-2.38%)
Mutual labels:  serverless
Tgmessage
TG 消息推送机器人
Stars: ✭ 38 (-9.52%)
Mutual labels:  serverless
Cortex
Production infrastructure for machine learning at scale
Stars: ✭ 7,627 (+18059.52%)
Mutual labels:  serverless
Moveit
🚀 NLW #4 | React+ TypeScript + NextJS + StyledComponents + Firebase + MongoDb +Axios
Stars: ✭ 39 (-7.14%)
Mutual labels:  serverless
Serverless Geoip
Use MaxMind GeoLite2 database with AWS Lambda
Stars: ✭ 33 (-21.43%)
Mutual labels:  serverless
Terraform Nextjs Plugin
A plugin to generate terraform configuration for Nextjs 8 and 9
Stars: ✭ 41 (-2.38%)
Mutual labels:  serverless
Siodb
The simplicity of REST and the power of SQL combined in a database that automatized security and performance. Forget the database, develop faster and safer!
Stars: ✭ 31 (-26.19%)
Mutual labels:  serverless
Lamlight
Lamlight is a command line tool to allow easy handling of AWS lambda functions. It allows to put heavy dependencies like numpy and scipy on AWS lambda and updating your lambda function very quickly.
Stars: ✭ 37 (-11.9%)
Mutual labels:  serverless
Seodeploy
SEODeploy: Flexible and Modular Python Library for Automating SEO Testing in Deployment Pipelines.
Stars: ✭ 41 (-2.38%)
Mutual labels:  seo
Sharpmath
A small .NET math library.
Stars: ✭ 36 (-14.29%)
Mutual labels:  function

href-counter

A Golang example application which counts internal vs. external hrefs within a page to rate SEO.

The golang.org/x/net/html package is used to iterate through all the HTML tokens in the web-page. It provides a working example of parsing HTML piece-by-piece.

This can be built with the Dockerfile in the repository or through go get.

References

Used in these two blog posts:

Running the example

  • With Go

    go build
    
    $ url=http://blog.alexellis.io/ ./href-counter
    {"internal":40,"external":2}
    
    $ url=http://blog.alexellis.io/golang-json-api-client/  ./href-counter
    {"internal":17,"external":15}
    
  • Build with multi-stage build

    ./build.sh
    
  • Run with Docker

    docker run -e url=https://www.alexellis.io/ -ti alexellis2/href-counter:0.1.0
    {"internal":6,"external":11}
    
  • Build with multiple Dockerfiles

    ./build-multi-dockerfiles.sh
    
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].