{"id":19205770,"url":"https://github.com/teamhg-memex/extract-html-diff","last_synced_at":"2026-03-04T03:02:10.188Z","repository":{"id":57427790,"uuid":"81334986","full_name":"TeamHG-Memex/extract-html-diff","owner":"TeamHG-Memex","description":"extract difference between two html pages","archived":false,"fork":false,"pushed_at":"2026-02-08T18:46:02.000Z","size":13094,"stargazers_count":32,"open_issues_count":5,"forks_count":5,"subscribers_count":10,"default_branch":"master","last_synced_at":"2026-02-09T00:28:44.641Z","etag":null,"topics":["diff","html"],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/TeamHG-Memex.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2017-02-08T13:53:19.000Z","updated_at":"2026-02-08T18:46:05.000Z","dependencies_parsed_at":"2022-09-09T08:50:39.325Z","dependency_job_id":null,"html_url":"https://github.com/TeamHG-Memex/extract-html-diff","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/TeamHG-Memex/extract-html-diff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeamHG-Memex%2Fextract-html-diff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeamHG-Memex%2Fextract-html-diff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeamHG-Memex%2Fextract-html-diff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeamHG-Memex%2Fextract-html-diff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TeamHG-Memex","download_url":"https://codeload.github.com/TeamHG-Memex/extract-html-diff/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeamHG-Memex%2Fextract-html-diff/sbom","scorecard":{"id":138392,"data":{"date":"2025-08-04","repo":{"name":"github.com/TeamHG-Memex/extract-html-diff","commit":"812cbff33488da22d185a5d58fc5bd3d592d63bb"},"scorecard":{"version":"v5.2.1-28-gc1d103a9","commit":"c1d103a9bb9f635ec7260bf9aa0699466fa4be0e"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/13 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-16T07:16:41.518Z","repository_id":57427790,"created_at":"2025-08-16T07:16:41.521Z","updated_at":"2025-08-16T07:16:41.521Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30070479,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T01:03:42.280Z","status":"online","status_checked_at":"2026-03-04T02:00:07.464Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["diff","html"],"created_at":"2024-11-09T13:13:51.834Z","updated_at":"2026-03-04T03:02:10.172Z","avatar_url":"https://github.com/TeamHG-Memex.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"extract-html-diff: extract difference between two html pages\n============================================================\n\n.. image:: https://img.shields.io/pypi/v/extract-html-diff.svg\n   :target: https://pypi.python.org/pypi/extract-html-diff\n   :alt: PyPI Version\n\n.. image:: https://img.shields.io/travis/TeamHG-Memex/extract-html-diff/master.svg\n   :target: http://travis-ci.org/TeamHG-Memex/extract-html-diff\n   :alt: Build Status\n\n.. image:: http://codecov.io/github/TeamHG-Memex/extract-html-diff/coverage.svg?branch=master\n   :target: http://codecov.io/github/TeamHG-Memex/extract-html-diff?branch=master\n   :alt: Code Coverage\n\nThis package allows you to extract a difference between two html pages:\ngiven pages A and B, it will try to extract parts of A that are changed in B.\nIt uses ``lxml.html.diff`` under the hood. but provides only changed parts as HTML.\n\nIt requires Python 3 currently.\n\nLicense is MIT.\n\nInstallaton\n-----------\n\nYou can install the package from PyPI::\n\n    pip install extract-html-diff\n\n\nUsage\n-----\n\nYou can extract diff as text::\n\n    import extract_html_diff\n\n    html = '\u003cdiv\u003e \u003ch1\u003eMy site\u003c/h1\u003e \u003cdiv\u003eMy content\u003c/div\u003e \u003c/div\u003e'\n    other_html = '\u003cdiv\u003e \u003ch1\u003eMy site\u003c/h1\u003e \u003cdiv\u003eOther content\u003c/div\u003e \u003c/div\u003e'\n\n    extract_html_diff.as_string(html, other_html)\n\nthis will give you::\n\n    '\u003cdiv\u003e\u003cdiv\u003eMy content\u003c/div\u003e  \u003c/div\u003e'\n\nYou can also get diff as a tree (an ``lxml.html.HtmlElement``) if\nyou plan to do additional transformations or change serialization::\n\n    extract_html_diff.as_tree(html, other_html)\n\nYou can pass input html as ``str`` or ``bytes``\n(it will be parsed with ``lxml.html.fromstring`` in this case), or as an already parsed\n``lxml.html.HtmlElement``.\n\n----\n\n.. image:: https://hyperiongray.s3.amazonaws.com/define-hg.svg\n\t:target: https://www.hyperiongray.com/?pk_campaign=github\u0026pk_kwd=extract-html-diff\n\t:alt: define hyperiongray\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteamhg-memex%2Fextract-html-diff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteamhg-memex%2Fextract-html-diff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteamhg-memex%2Fextract-html-diff/lists"}