Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    With pathlib module it could be done via python -c 'import sys,pathlib; print(pathlib.Path(sys.argv[1]).resolve().as_uri())' "$my_url" Commented Jun 19, 2019 at 18:53
  • 1
    pathlib is only available in Python 3, which is not installed by default on CentOS. Commented Jun 20, 2019 at 2:06
  • 1
    raw_input() was renamed to input() in Python3 Commented Nov 14, 2021 at 8:43