【发布时间】:2020-05-10 18:15:56
【问题描述】:
比如我想缩短这个网址:https://docs.python.org/3/library/subprocess.html#popen-constructor
我尝试将https://docs.python.org/3/library/subprocess.html#popen-constructor作为url参数传递,但返回的url实际上是从https://docs.python.org/3/library/subprocess.html缩短的,所以它不会跳转到popen-constructor部分。
然后我尝试将https://docs.python.org/3/library/subprocess.html%23popen-constructor作为url参数传递,但是返回的url不起作用(404未找到)。
唯一的解决方案是自己使用 TinyURL 的网站,所以我想知道是否可以通过 TinyURL api 缩短包含“#”符号的 url?
【问题讨论】:
标签: php api webapi short-url tinyurl