GithubHelp home page GithubHelp logo

circa10a / web-link-tester Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 4.0 217 KB

Flask App to scrape hrefs from websites and validate links

Python 38.19% JavaScript 4.90% HTML 49.93% Dockerfile 0.52% Shell 6.45%
flask flask-application flask-restful beautifulsoup docker-image python3 uwsgi-nginx

web-link-tester's Introduction

web-link-tester

Docker Automated build

Asynchronous Flask App to scrape and validate links via GUI or REST API

Usage

Why use the web-link-tester?

  1. Test your production site via GUI or programmatically to ensure no bad page routes or forgotten references.
  2. It's free.

To deploy the Web App/API


Docker

docker run -d --name link-tester -p 8080:8080 circa10a/web-link-tester

Access via http://localhost:8080

Python

python main.py

Access via http://localhost:8080

Set environment variable PORT locally to change listening port from 8080

API Usage

curl -X POST -H "content-type: application/json" --data '{"url": "https://www.github.com"}' http://localhost:8080/api

Example JSON Output

$ curl -s -X POST -H "content-type: application/json" --data '{"url": "https://caleblemoine.dev"}' http://localhost:8080/api

{
  "links": [
    {
      "code": 999,
      "url": "https://www.linkedin.com/in/caleblemoine/"
    },
    {
      "code": 200,
      "url": "https://github.com/circa10a"
    },
    {
      "code": 200,
      "url": "https://github.com/circa10a/express-jwt"
    },
    {
      "code": 200,
      "url": "https://github.com/pyouroboros/ouroboros"
    },
    {
      "code": 200,
      "url": "https://github.com/circa10a/filter-object-array"
    },
    {
      "code": 200,
      "url": "https://github.com/circa10a/easy-soap-request"
    },
    {
      "code": 200,
      "url": "https://medium.com/better-programming/how-to-perform-soap-requests-with-node-js-4a9627070eb6"
    },
    {
      "code": 200,
      "url": "https://github.com/circa10a/web-link-tester"
    },
    {
      "code": 200,
      "url": "https://github.com/circa10a/Device-Monitor-Dashboard"
    },
    {
      "code": 200,
      "url": "https://caleblemoine.dev/monitor/"
    },
    {
      "code": 200,
      "url": "https://hub.docker.com/u/circa10a"
    },
    {
      "code": 200,
      "url": "https://caleblemoine.dev/gitfolio/"
    },
    {
      "code": 999,
      "url": "https://www.linkedin.com/in/caleblemoine/"
    },
  ]
}

Stack

  • Utilizes gunicorn for multiple workers/threading.
  • Python 3
  • BeautifulSoup4
  • Jquery

Screenshots

alt text alt text

web-link-tester's People

Contributors

circa10a avatar dependabot-preview[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

web-link-tester's Issues

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.