clean_links


Nameclean_links JSON
Version 0.1.2 PyPI version JSON
download
home_pagehttps://github.com/stringertheory/clean-links
SummaryTools for cleaning up links
upload_time2024-01-31 07:31:44
maintainer
docs_urlNone
authorMike Stringer
requires_python>=3.8,<4.0
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # clean-links

[![Release](https://img.shields.io/github/v/release/stringertheory/clean-links)](https://img.shields.io/github/v/release/stringertheory/clean-links)
[![Build status](https://img.shields.io/github/actions/workflow/status/stringertheory/clean-links/main.yml?branch=main)](https://github.com/stringertheory/clean-links/actions/workflows/main.yml?query=branch%3Amain)
[![codecov](https://codecov.io/gh/stringertheory/clean-links/branch/main/graph/badge.svg)](https://codecov.io/gh/stringertheory/clean-links)
[![Commit activity](https://img.shields.io/github/commit-activity/m/stringertheory/clean-links)](https://img.shields.io/github/commit-activity/m/stringertheory/clean-links)
[![License](https://img.shields.io/github/license/stringertheory/clean-links)](https://img.shields.io/github/license/stringertheory/clean-links)

Tools for cleaning up links.

Remove cruft from URLs using the rules from
https://github.com/ClearURLs/Rules

Unshorten URLs by making requests and following redirects.

Are these two links the same?

```python
link1 = "https://trib.al/5m7fAg3"
link2 = "https://bit.ly/dirtylank"

resolved1 = unshorten_url(link1).get("resolved")
cleaned1 = clear_url(resolved1)

resolved2 = unshorten_url(link2).get("resolved")
cleaned2 = clear_url(resolved2)

cleaned1 == cleaned2  # True!
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/stringertheory/clean-links",
    "name": "clean_links",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "Mike Stringer",
    "author_email": "mike.stringer.internet@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/74/f3/12ad246657e956b23f560428eab31d0c24f619ab1a217f85b4c104e89021/clean_links-0.1.2.tar.gz",
    "platform": null,
    "description": "# clean-links\n\n[![Release](https://img.shields.io/github/v/release/stringertheory/clean-links)](https://img.shields.io/github/v/release/stringertheory/clean-links)\n[![Build status](https://img.shields.io/github/actions/workflow/status/stringertheory/clean-links/main.yml?branch=main)](https://github.com/stringertheory/clean-links/actions/workflows/main.yml?query=branch%3Amain)\n[![codecov](https://codecov.io/gh/stringertheory/clean-links/branch/main/graph/badge.svg)](https://codecov.io/gh/stringertheory/clean-links)\n[![Commit activity](https://img.shields.io/github/commit-activity/m/stringertheory/clean-links)](https://img.shields.io/github/commit-activity/m/stringertheory/clean-links)\n[![License](https://img.shields.io/github/license/stringertheory/clean-links)](https://img.shields.io/github/license/stringertheory/clean-links)\n\nTools for cleaning up links.\n\nRemove cruft from URLs using the rules from\nhttps://github.com/ClearURLs/Rules\n\nUnshorten URLs by making requests and following redirects.\n\nAre these two links the same?\n\n```python\nlink1 = \"https://trib.al/5m7fAg3\"\nlink2 = \"https://bit.ly/dirtylank\"\n\nresolved1 = unshorten_url(link1).get(\"resolved\")\ncleaned1 = clear_url(resolved1)\n\nresolved2 = unshorten_url(link2).get(\"resolved\")\ncleaned2 = clear_url(resolved2)\n\ncleaned1 == cleaned2  # True!\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Tools for cleaning up links",
    "version": "0.1.2",
    "project_urls": {
        "Documentation": "https://stringertheory.github.io/clean-links/",
        "Homepage": "https://github.com/stringertheory/clean-links",
        "Repository": "https://github.com/stringertheory/clean-links"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2e2e5e4c454938c1d685dde3a145b0d23bc9796db29ab7c7ee02e12ab6d3e1cf",
                "md5": "1f5cb5e3b45d91ca777e38ef8eade185",
                "sha256": "b49b51db944c50911aa92794de46abe9a714068f1f3274e891e56179c3dd7395"
            },
            "downloads": -1,
            "filename": "clean_links-0.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1f5cb5e3b45d91ca777e38ef8eade185",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 25525,
            "upload_time": "2024-01-31T07:31:43",
            "upload_time_iso_8601": "2024-01-31T07:31:43.720202Z",
            "url": "https://files.pythonhosted.org/packages/2e/2e/5e4c454938c1d685dde3a145b0d23bc9796db29ab7c7ee02e12ab6d3e1cf/clean_links-0.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "74f312ad246657e956b23f560428eab31d0c24f619ab1a217f85b4c104e89021",
                "md5": "d999803f7e7b65e31a55166af52dbd6c",
                "sha256": "06f96b3194e119435ef6f10804c91312e64eaca1d05d739215f0831d9f7e6009"
            },
            "downloads": -1,
            "filename": "clean_links-0.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "d999803f7e7b65e31a55166af52dbd6c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 25647,
            "upload_time": "2024-01-31T07:31:44",
            "upload_time_iso_8601": "2024-01-31T07:31:44.836102Z",
            "url": "https://files.pythonhosted.org/packages/74/f3/12ad246657e956b23f560428eab31d0c24f619ab1a217f85b4c104e89021/clean_links-0.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-31 07:31:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "stringertheory",
    "github_project": "clean-links",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "clean_links"
}
        
Elapsed time: 0.93817s