sociallink


Namesociallink JSON
Version 0.10 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/sociallink
SummaryEncodes and decodes a URL using a specified symbol to prevent spam detection on platforms like Facebook and YouTube
upload_time2023-06-18 18:56:03
maintainer
docs_urlNone
authorJohannes Fischer
requires_python
licenseMIT
keywords social link youtube
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# Encodes and decodes a URL using a specified symbol to prevent spam detection on platforms like Facebook and YouTube

### pip install sociallink

```python
	site_decode_encode(url, symb="Ç"):
        Encodes and decodes a URL using a specified symbol to prevent spam detection on platforms like Facebook and YouTube.


        I have a YouTube channel about Python https://www.youtube.com/channel/UC3DeX0cPlJaLSD254T7fpdA, and YouTube makes it hard for my subscribers to post links in the comments.
        This is a module than encodes/decodes urls in a way that everybody can still understand that the encoded string
        is a url.

        Args:
            url (str): The URL to be encoded or decoded.
            symb (str, optional): The symbol used for encoding and decoding. Defaults to 'Ç'.

        Returns:
            str: The encoded or decoded URL.

        Examples:
    import random
    urls = ['https://gh.io/navigation-update',
    'https://github.blog/',
    'https://docs.github.com/site-policy/github-terms/github-terms-of-service',
    'https://docs.github.com/site-policy/privacy-policies/github-privacy-statement',
    'https://www.githubstatus.com/',
    'https://docs.github.com/en/search-github/github-code-search/understanding-github-code-search-syntax',
    'https://gist.github.com/',
    'https://gist.github.com/mine',
    'https://docs.github.com/',
    'https://support.github.com/',
    'https://github.dev/',
    'https://docs.github.com/articles/which-remote-url-should-i-use',
    'https://cli.github.com/',
    'x-github-client://openRepo/https://github.com/hansalemaos/Tutorial_cpp_in_python',
    'git-client://clone?repo=https%3A%2F%2Fgithub.com%2Fhansalemaos%2FTutorial_cpp_in_python',
    'https://desktop.github.com/',
    'https://developer.apple.com/xcode/',
    'https://www.youtube.com/watch?v=ChZ9753o690',
    'https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community&channel=Release&version=VS2022&source=VSLandingPage&cid=2030&workload=dotnet-dotnetwebcloud&passive=false#dotnet',
    'https://support.github.com/?tags=dotcom-footer',
    'https://services.github.com/', ]

    for url1 in urls:
        symb = random.choice(['Ç', '#', '@'])
        en1 = site_decode_encode(url=url1, symb=symb)
        de1 = site_decode_encode(url=en1, symb=symb)
        print(f'encoded: {en1}, decoded: {de1}')

    # encoded: hÇtÇtÇpÇsÇ:Ç/Ç/ÇgÇhÇ.ÇiÇoÇ/ÇnÇaÇvÇiÇgÇaÇtÇiÇoÇnÇ-ÇuÇpÇdÇaÇtÇe, decoded: https://gh.io/navigation-update
    # encoded: h@t@t@p@s@:@/@/@g@i@t@h@u@b@.@b@l@o@g@/, decoded: https://github.blog/
    # encoded: h@t@t@p@s@:@/@/@d@o@c@s@.@g@i@t@h@u@b@.@c@o@m@/@s@i@t@e@-@p@o@l@i@c@y@/@g@i@t@h@u@b@-@t@e@r@m@s@/@g@i@t@h@u@b@-@t@e@r@m@s@-@o@f@-@s@e@r@v@i@c@e, decoded: https://docs.github.com/site-policy/github-terms/github-terms-of-service
    # encoded: h#t#t#p#s#:#/#/#d#o#c#s#.#g#i#t#h#u#b#.#c#o#m#/#s#i#t#e#-#p#o#l#i#c#y#/#p#r#i#v#a#c#y#-#p#o#l#i#c#i#e#s#/#g#i#t#h#u#b#-#p#r#i#v#a#c#y#-#s#t#a#t#e#m#e#n#t, decoded: https://docs.github.com/site-policy/privacy-policies/github-privacy-statement
    # encoded: h@t@t@p@s@:@/@/@w@w@w@.@g@i@t@h@u@b@s@t@a@t@u@s@.@c@o@m@/, decoded: https://www.githubstatus.com/
    # encoded: h#t#t#p#s#:#/#/#d#o#c#s#.#g#i#t#h#u#b#.#c#o#m#/#e#n#/#s#e#a#r#c#h#-#g#i#t#h#u#b#/#g#i#t#h#u#b#-#c#o#d#e#-#s#e#a#r#c#h#/#u#n#d#e#r#s#t#a#n#d#i#n#g#-#g#i#t#h#u#b#-#c#o#d#e#-#s#e#a#r#c#h#-#s#y#n#t#a#x, decoded: https://docs.github.com/en/search-github/github-code-search/understanding-github-code-search-syntax
    # encoded: h@t@t@p@s@:@/@/@g@i@s@t@.@g@i@t@h@u@b@.@c@o@m@/, decoded: https://gist.github.com/
    # encoded: h@t@t@p@s@:@/@/@g@i@s@t@.@g@i@t@h@u@b@.@c@o@m@/@m@i@n@e, decoded: https://gist.github.com/mine
    # encoded: h@t@t@p@s@:@/@/@d@o@c@s@.@g@i@t@h@u@b@.@c@o@m@/, decoded: https://docs.github.com/
    # encoded: hÇtÇtÇpÇsÇ:Ç/Ç/ÇsÇuÇpÇpÇoÇrÇtÇ.ÇgÇiÇtÇhÇuÇbÇ.ÇcÇoÇmÇ/, decoded: https://support.github.com/
    # encoded: h@t@t@p@s@:@/@/@g@i@t@h@u@b@.@d@e@v@/, decoded: https://github.dev/
    # encoded: h#t#t#p#s#:#/#/#d#o#c#s#.#g#i#t#h#u#b#.#c#o#m#/#a#r#t#i#c#l#e#s#/#w#h#i#c#h#-#r#e#m#o#t#e#-#u#r#l#-#s#h#o#u#l#d#-#i#-#u#s#e, decoded: https://docs.github.com/articles/which-remote-url-should-i-use
    # encoded: h#t#t#p#s#:#/#/#c#l#i#.#g#i#t#h#u#b#.#c#o#m#/, decoded: https://cli.github.com/
    # encoded: x#-#g#i#t#h#u#b#-#c#l#i#e#n#t#:#/#/#o#p#e#n#R#e#p#o#/#h#t#t#p#s#:#/#/#g#i#t#h#u#b#.#c#o#m#/#h#a#n#s#a#l#e#m#a#o#s#/#T#u#t#o#r#i#a#l#_#c#p#p#_#i#n#_#p#y#t#h#o#n, decoded: x-github-client://openRepo/https://github.com/hansalemaos/Tutorial_cpp_in_python
    # encoded: g@i@t@-@c@l@i@e@n@t@:@/@/@c@l@o@n@e@?@r@e@p@o@=@h@t@t@p@s@%@3@A@%@2@F@%@2@F@g@i@t@h@u@b@.@c@o@m@%@2@F@h@a@n@s@a@l@e@m@a@o@s@%@2@F@T@u@t@o@r@i@a@l@_@c@p@p@_@i@n@_@p@y@t@h@o@n, decoded: git-client://clone?repo=https%3A%2F%2Fgithub.com%2Fhansalemaos%2FTutorial_cpp_in_python
    # encoded: h@t@t@p@s@:@/@/@d@e@s@k@t@o@p@.@g@i@t@h@u@b@.@c@o@m@/, decoded: https://desktop.github.com/
    # encoded: hÇtÇtÇpÇsÇ:Ç/Ç/ÇdÇeÇvÇeÇlÇoÇpÇeÇrÇ.ÇaÇpÇpÇlÇeÇ.ÇcÇoÇmÇ/ÇxÇcÇoÇdÇeÇ/, decoded: https://developer.apple.com/xcode/
    # encoded: h@t@t@p@s@:@/@/@w@w@w@.@y@o@u@t@u@b@e@.@c@o@m@/@w@a@t@c@h@?@v@=@C@h@Z@9@7@5@3@o@6@9@0, decoded: https://www.youtube.com/watch?v=ChZ9753o690
    # encoded: h@t@t@p@s@:@/@/@v@i@s@u@a@l@s@t@u@d@i@o@.@m@i@c@r@o@s@o@f@t@.@c@o@m@/@t@h@a@n@k@-@y@o@u@-@d@o@w@n@l@o@a@d@i@n@g@-@v@i@s@u@a@l@-@s@t@u@d@i@o@/@?@s@k@u@=@C@o@m@m@u@n@i@t@y@&@c@h@a@n@n@e@l@=@R@e@l@e@a@s@e@&@v@e@r@s@i@o@n@=@V@S@2@0@2@2@&@s@o@u@r@c@e@=@V@S@L@a@n@d@i@n@g@P@a@g@e@&@c@i@d@=@2@0@3@0@&@w@o@r@k@l@o@a@d@=@d@o@t@n@e@t@-@d@o@t@n@e@t@w@e@b@c@l@o@u@d@&@p@a@s@s@i@v@e@=@f@a@l@s@e@#@d@o@t@n@e@t, decoded: https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community&channel=Release&version=VS2022&source=VSLandingPage&cid=2030&workload=dotnet-dotnetwebcloud&passive=false#dotnet
    # encoded: h#t#t#p#s#:#/#/#s#u#p#p#o#r#t#.#g#i#t#h#u#b#.#c#o#m#/#?#t#a#g#s#=#d#o#t#c#o#m#-#f#o#o#t#e#r, decoded: https://support.github.com/?tags=dotcom-footer
    # encoded: hÇtÇtÇpÇsÇ:Ç/Ç/ÇsÇeÇrÇvÇiÇcÇeÇsÇ.ÇgÇiÇtÇhÇuÇbÇ.ÇcÇoÇmÇ/, decoded: https://services.github.com/
```	

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/sociallink",
    "name": "sociallink",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "social,link,youtube",
    "author": "Johannes Fischer",
    "author_email": "aulasparticularesdealemaosp@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/95/07/7dc9a3661fbce9e7572208de2bd534ad87bfa0091aacf372da5b41927511/sociallink-0.10.tar.gz",
    "platform": null,
    "description": "\r\n# Encodes and decodes a URL using a specified symbol to prevent spam detection on platforms like Facebook and YouTube\r\n\r\n### pip install sociallink\r\n\r\n```python\r\n\tsite_decode_encode(url, symb=\"\u00c7\"):\r\n        Encodes and decodes a URL using a specified symbol to prevent spam detection on platforms like Facebook and YouTube.\r\n\r\n\r\n        I have a YouTube channel about Python https://www.youtube.com/channel/UC3DeX0cPlJaLSD254T7fpdA, and YouTube makes it hard for my subscribers to post links in the comments.\r\n        This is a module than encodes/decodes urls in a way that everybody can still understand that the encoded string\r\n        is a url.\r\n\r\n        Args:\r\n            url (str): The URL to be encoded or decoded.\r\n            symb (str, optional): The symbol used for encoding and decoding. Defaults to '\u00c7'.\r\n\r\n        Returns:\r\n            str: The encoded or decoded URL.\r\n\r\n        Examples:\r\n    import random\r\n    urls = ['https://gh.io/navigation-update',\r\n    'https://github.blog/',\r\n    'https://docs.github.com/site-policy/github-terms/github-terms-of-service',\r\n    'https://docs.github.com/site-policy/privacy-policies/github-privacy-statement',\r\n    'https://www.githubstatus.com/',\r\n    'https://docs.github.com/en/search-github/github-code-search/understanding-github-code-search-syntax',\r\n    'https://gist.github.com/',\r\n    'https://gist.github.com/mine',\r\n    'https://docs.github.com/',\r\n    'https://support.github.com/',\r\n    'https://github.dev/',\r\n    'https://docs.github.com/articles/which-remote-url-should-i-use',\r\n    'https://cli.github.com/',\r\n    'x-github-client://openRepo/https://github.com/hansalemaos/Tutorial_cpp_in_python',\r\n    'git-client://clone?repo=https%3A%2F%2Fgithub.com%2Fhansalemaos%2FTutorial_cpp_in_python',\r\n    'https://desktop.github.com/',\r\n    'https://developer.apple.com/xcode/',\r\n    'https://www.youtube.com/watch?v=ChZ9753o690',\r\n    'https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community&channel=Release&version=VS2022&source=VSLandingPage&cid=2030&workload=dotnet-dotnetwebcloud&passive=false#dotnet',\r\n    'https://support.github.com/?tags=dotcom-footer',\r\n    'https://services.github.com/', ]\r\n\r\n    for url1 in urls:\r\n        symb = random.choice(['\u00c7', '#', '@'])\r\n        en1 = site_decode_encode(url=url1, symb=symb)\r\n        de1 = site_decode_encode(url=en1, symb=symb)\r\n        print(f'encoded: {en1}, decoded: {de1}')\r\n\r\n    # encoded: h\u00c7t\u00c7t\u00c7p\u00c7s\u00c7:\u00c7/\u00c7/\u00c7g\u00c7h\u00c7.\u00c7i\u00c7o\u00c7/\u00c7n\u00c7a\u00c7v\u00c7i\u00c7g\u00c7a\u00c7t\u00c7i\u00c7o\u00c7n\u00c7-\u00c7u\u00c7p\u00c7d\u00c7a\u00c7t\u00c7e, decoded: https://gh.io/navigation-update\r\n    # encoded: h@t@t@p@s@:@/@/@g@i@t@h@u@b@.@b@l@o@g@/, decoded: https://github.blog/\r\n    # encoded: h@t@t@p@s@:@/@/@d@o@c@s@.@g@i@t@h@u@b@.@c@o@m@/@s@i@t@e@-@p@o@l@i@c@y@/@g@i@t@h@u@b@-@t@e@r@m@s@/@g@i@t@h@u@b@-@t@e@r@m@s@-@o@f@-@s@e@r@v@i@c@e, decoded: https://docs.github.com/site-policy/github-terms/github-terms-of-service\r\n    # encoded: h#t#t#p#s#:#/#/#d#o#c#s#.#g#i#t#h#u#b#.#c#o#m#/#s#i#t#e#-#p#o#l#i#c#y#/#p#r#i#v#a#c#y#-#p#o#l#i#c#i#e#s#/#g#i#t#h#u#b#-#p#r#i#v#a#c#y#-#s#t#a#t#e#m#e#n#t, decoded: https://docs.github.com/site-policy/privacy-policies/github-privacy-statement\r\n    # encoded: h@t@t@p@s@:@/@/@w@w@w@.@g@i@t@h@u@b@s@t@a@t@u@s@.@c@o@m@/, decoded: https://www.githubstatus.com/\r\n    # encoded: h#t#t#p#s#:#/#/#d#o#c#s#.#g#i#t#h#u#b#.#c#o#m#/#e#n#/#s#e#a#r#c#h#-#g#i#t#h#u#b#/#g#i#t#h#u#b#-#c#o#d#e#-#s#e#a#r#c#h#/#u#n#d#e#r#s#t#a#n#d#i#n#g#-#g#i#t#h#u#b#-#c#o#d#e#-#s#e#a#r#c#h#-#s#y#n#t#a#x, decoded: https://docs.github.com/en/search-github/github-code-search/understanding-github-code-search-syntax\r\n    # encoded: h@t@t@p@s@:@/@/@g@i@s@t@.@g@i@t@h@u@b@.@c@o@m@/, decoded: https://gist.github.com/\r\n    # encoded: h@t@t@p@s@:@/@/@g@i@s@t@.@g@i@t@h@u@b@.@c@o@m@/@m@i@n@e, decoded: https://gist.github.com/mine\r\n    # encoded: h@t@t@p@s@:@/@/@d@o@c@s@.@g@i@t@h@u@b@.@c@o@m@/, decoded: https://docs.github.com/\r\n    # encoded: h\u00c7t\u00c7t\u00c7p\u00c7s\u00c7:\u00c7/\u00c7/\u00c7s\u00c7u\u00c7p\u00c7p\u00c7o\u00c7r\u00c7t\u00c7.\u00c7g\u00c7i\u00c7t\u00c7h\u00c7u\u00c7b\u00c7.\u00c7c\u00c7o\u00c7m\u00c7/, decoded: https://support.github.com/\r\n    # encoded: h@t@t@p@s@:@/@/@g@i@t@h@u@b@.@d@e@v@/, decoded: https://github.dev/\r\n    # encoded: h#t#t#p#s#:#/#/#d#o#c#s#.#g#i#t#h#u#b#.#c#o#m#/#a#r#t#i#c#l#e#s#/#w#h#i#c#h#-#r#e#m#o#t#e#-#u#r#l#-#s#h#o#u#l#d#-#i#-#u#s#e, decoded: https://docs.github.com/articles/which-remote-url-should-i-use\r\n    # encoded: h#t#t#p#s#:#/#/#c#l#i#.#g#i#t#h#u#b#.#c#o#m#/, decoded: https://cli.github.com/\r\n    # encoded: x#-#g#i#t#h#u#b#-#c#l#i#e#n#t#:#/#/#o#p#e#n#R#e#p#o#/#h#t#t#p#s#:#/#/#g#i#t#h#u#b#.#c#o#m#/#h#a#n#s#a#l#e#m#a#o#s#/#T#u#t#o#r#i#a#l#_#c#p#p#_#i#n#_#p#y#t#h#o#n, decoded: x-github-client://openRepo/https://github.com/hansalemaos/Tutorial_cpp_in_python\r\n    # encoded: g@i@t@-@c@l@i@e@n@t@:@/@/@c@l@o@n@e@?@r@e@p@o@=@h@t@t@p@s@%@3@A@%@2@F@%@2@F@g@i@t@h@u@b@.@c@o@m@%@2@F@h@a@n@s@a@l@e@m@a@o@s@%@2@F@T@u@t@o@r@i@a@l@_@c@p@p@_@i@n@_@p@y@t@h@o@n, decoded: git-client://clone?repo=https%3A%2F%2Fgithub.com%2Fhansalemaos%2FTutorial_cpp_in_python\r\n    # encoded: h@t@t@p@s@:@/@/@d@e@s@k@t@o@p@.@g@i@t@h@u@b@.@c@o@m@/, decoded: https://desktop.github.com/\r\n    # encoded: h\u00c7t\u00c7t\u00c7p\u00c7s\u00c7:\u00c7/\u00c7/\u00c7d\u00c7e\u00c7v\u00c7e\u00c7l\u00c7o\u00c7p\u00c7e\u00c7r\u00c7.\u00c7a\u00c7p\u00c7p\u00c7l\u00c7e\u00c7.\u00c7c\u00c7o\u00c7m\u00c7/\u00c7x\u00c7c\u00c7o\u00c7d\u00c7e\u00c7/, decoded: https://developer.apple.com/xcode/\r\n    # encoded: h@t@t@p@s@:@/@/@w@w@w@.@y@o@u@t@u@b@e@.@c@o@m@/@w@a@t@c@h@?@v@=@C@h@Z@9@7@5@3@o@6@9@0, decoded: https://www.youtube.com/watch?v=ChZ9753o690\r\n    # encoded: h@t@t@p@s@:@/@/@v@i@s@u@a@l@s@t@u@d@i@o@.@m@i@c@r@o@s@o@f@t@.@c@o@m@/@t@h@a@n@k@-@y@o@u@-@d@o@w@n@l@o@a@d@i@n@g@-@v@i@s@u@a@l@-@s@t@u@d@i@o@/@?@s@k@u@=@C@o@m@m@u@n@i@t@y@&@c@h@a@n@n@e@l@=@R@e@l@e@a@s@e@&@v@e@r@s@i@o@n@=@V@S@2@0@2@2@&@s@o@u@r@c@e@=@V@S@L@a@n@d@i@n@g@P@a@g@e@&@c@i@d@=@2@0@3@0@&@w@o@r@k@l@o@a@d@=@d@o@t@n@e@t@-@d@o@t@n@e@t@w@e@b@c@l@o@u@d@&@p@a@s@s@i@v@e@=@f@a@l@s@e@#@d@o@t@n@e@t, decoded: https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community&channel=Release&version=VS2022&source=VSLandingPage&cid=2030&workload=dotnet-dotnetwebcloud&passive=false#dotnet\r\n    # encoded: h#t#t#p#s#:#/#/#s#u#p#p#o#r#t#.#g#i#t#h#u#b#.#c#o#m#/#?#t#a#g#s#=#d#o#t#c#o#m#-#f#o#o#t#e#r, decoded: https://support.github.com/?tags=dotcom-footer\r\n    # encoded: h\u00c7t\u00c7t\u00c7p\u00c7s\u00c7:\u00c7/\u00c7/\u00c7s\u00c7e\u00c7r\u00c7v\u00c7i\u00c7c\u00c7e\u00c7s\u00c7.\u00c7g\u00c7i\u00c7t\u00c7h\u00c7u\u00c7b\u00c7.\u00c7c\u00c7o\u00c7m\u00c7/, decoded: https://services.github.com/\r\n```\t\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Encodes and decodes a URL using a specified symbol to prevent spam detection on platforms like Facebook and YouTube",
    "version": "0.10",
    "project_urls": {
        "Homepage": "https://github.com/hansalemaos/sociallink"
    },
    "split_keywords": [
        "social",
        "link",
        "youtube"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "60e59ebd530273e8efa70075477348c45205158059ab4fcfab7b70abab581f50",
                "md5": "c4c53c3d9b68e97f1e71cfa27c1f1c43",
                "sha256": "81feb6f52f57cb8ab26393deca1b6822202e6894901109888340f9ff984b3b0b"
            },
            "downloads": -1,
            "filename": "sociallink-0.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c4c53c3d9b68e97f1e71cfa27c1f1c43",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 8551,
            "upload_time": "2023-06-18T18:56:01",
            "upload_time_iso_8601": "2023-06-18T18:56:01.822935Z",
            "url": "https://files.pythonhosted.org/packages/60/e5/9ebd530273e8efa70075477348c45205158059ab4fcfab7b70abab581f50/sociallink-0.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "95077dc9a3661fbce9e7572208de2bd534ad87bfa0091aacf372da5b41927511",
                "md5": "165f5ae1d8fa9fe4ace35c713bb2235c",
                "sha256": "9f3bc705e90d11ca047b2421004b1ed9156d48627c649fe96d848fcb116880ee"
            },
            "downloads": -1,
            "filename": "sociallink-0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "165f5ae1d8fa9fe4ace35c713bb2235c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4928,
            "upload_time": "2023-06-18T18:56:03",
            "upload_time_iso_8601": "2023-06-18T18:56:03.201421Z",
            "url": "https://files.pythonhosted.org/packages/95/07/7dc9a3661fbce9e7572208de2bd534ad87bfa0091aacf372da5b41927511/sociallink-0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-18 18:56:03",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hansalemaos",
    "github_project": "sociallink",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "sociallink"
}
        
Elapsed time: 0.08200s