{"id":24906175,"url":"https://github.com/csothen/htmlparser","last_synced_at":"2025-03-27T22:22:07.417Z","repository":{"id":57588167,"uuid":"343492548","full_name":"csothen/htmlparser","owner":"csothen","description":"Website parser and analyser","archived":false,"fork":false,"pushed_at":"2021-03-05T16:41:02.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-02T00:38:54.902Z","etag":null,"topics":["go","golang","parser"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/csothen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-01T17:01:33.000Z","updated_at":"2021-03-05T16:41:05.000Z","dependencies_parsed_at":"2022-09-26T19:42:43.492Z","dependency_job_id":null,"html_url":"https://github.com/csothen/htmlparser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csothen%2Fhtmlparser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csothen%2Fhtmlparser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csothen%2Fhtmlparser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csothen%2Fhtmlparser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csothen","download_url":"https://codeload.github.com/csothen/htmlparser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245932299,"owners_count":20696033,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","parser"],"created_at":"2025-02-02T00:39:03.920Z","updated_at":"2025-03-27T22:22:07.373Z","avatar_url":"https://github.com/csothen.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTML Parser Challenge\n\n## Introduction\n\nHTML Parser is capable of analysing the HTML content of a website and return an analysis result for that same page inluding the following:\n\n- HTML Version\n- Title of the website\n- Number of headings by depth level\n- Number of internal links (links to same domain)\n- Number of external links (links to different domains)\n- Number of inacccessible links (broken links or websites that aren't responding correly)\n- If the website contains a login form\n\n## Quick Start\n\n### Run the server\n\nTo run the html parser server it is needed to do the following:\n\n- Make sure you have [docker installed](https://docs.docker.com/engine/install/)\n- Have [docker-compose installed](https://docs.docker.com/compose/install/) (optional)\n- Download the repository into your machine and change directory into it\n\n#### With docker-compose\n\n- Simply run `docker-compose up`\n\n#### With docker\n\n- Run `docker build -t htmlparser .`\n- Run `docker run --publish 9090:9090 --name htmlparser htmlparser`\n\n### Make requests\n\nTo make a request to the server:\n\n- Open your platform of choice to make API requests, for example [Postman](https://www.postman.com/).\n- Make a POST request to `localhost:9090/api/parse` with a body containing an url as shown below\n\n![API Request Example](./docs/api_request.jpeg)\n\n- Or using curl:\n\n``` bash\ncurl -X POST -H \"Content-Type: application/json\" \\\n -d '{\"url\": \"https://facebook.com\"}' \\\n localhost:9090/api/parse\n```\n\n## Improvements\n\n- Shorten response time by introducing request caching\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsothen%2Fhtmlparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsothen%2Fhtmlparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsothen%2Fhtmlparser/lists"}