{"id":24511842,"url":"https://github.com/lexbor/warc_test","last_synced_at":"2026-04-29T19:05:24.491Z","repository":{"id":110397603,"uuid":"216982090","full_name":"lexbor/warc_test","owner":"lexbor","description":"The program for testing HTML encoding/parsing for the Lexbor library by WARC files.","archived":false,"fork":false,"pushed_at":"2019-11-03T09:56:10.000Z","size":25,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-22T00:42:33.301Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lexbor.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-23T06:16:01.000Z","updated_at":"2024-04-23T18:05:10.000Z","dependencies_parsed_at":"2023-04-26T10:46:39.833Z","dependency_job_id":null,"html_url":"https://github.com/lexbor/warc_test","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/lexbor%2Fwarc_test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexbor%2Fwarc_test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexbor%2Fwarc_test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexbor%2Fwarc_test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lexbor","download_url":"https://codeload.github.com/lexbor/warc_test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243713387,"owners_count":20335566,"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":[],"created_at":"2025-01-22T00:42:44.664Z","updated_at":"2025-12-29T19:55:14.794Z","avatar_url":"https://github.com/lexbor.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# warc_test\n\nThis program is designed to test the Lexbor HTML parser on a large number of HTML pages received from [commoncrawl.org](https://commoncrawl.org/).\n\n\n## Dependencies\n\n* [zlib](https://zlib.net/)\n* [lexbor](https://github.com/lexbor/lexbor) \u003e= 0.3.0\n\n\n## Build and Installation\n\n```bash\ncmake .\n```\n\nFor build with ASAN:\n```bash\ncmake . -DCMAKE_C_FLAGS=\"-O0 -g -fsanitize=address\"\n```\n\nFor link lexbor library from not system path:\n```bash\ncmake . -DCMAKE_C_FLAGS=\"-I/path/to/include/lexbor\" -DCMAKE_EXE_LINKER_FLAGS=\"-L/path/to/lexbor/lib\"\n```\n\n\n## Usage\n\n### warc_test\n\n```text\nwarc_test \u003cmode\u003e \u003clog file\u003e \u003cdirectory\u003e\n```\n\n```text\n\u003cmode\u003e:\n    single — one parser on all HTML.\n    multi — own parser for each HTML.\n\n\u003clog file\u003e: path to log file.\n\u003cdirectory\u003e: path to directory with *.warc.gz files.\n```\n\nFor example:\n```bash\nwarc_test single ./warc.log /home/user/warcs\n```\n\n### warc_entry_by_index\n\n```text\nwarc_entry_by_index \u003cindex\u003e \u003cfile.warc.gz\u003e\n```\n\n```text\n\u003cindex\u003e: starts from 0.\n\u003cfile.warc.gz\u003e: path to *.warc.gz file.\n```\n\nFor example:\n```bash\nwarc_entry_by_index 102 /home/user/warcs/CC-MAIN-20190715175205-20190715201205-00354.warc.gz\n```\n\n\n## COPYRIGHT AND LICENSE\n\n   Copyright 2019 Alexander Borisov\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n\n\nPlease, see [LICENSE](https://github.com/lexbor/warc_test/blob/master/LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flexbor%2Fwarc_test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flexbor%2Fwarc_test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flexbor%2Fwarc_test/lists"}