Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Internet explorer 无法识别缩短的URL_Internet Explorer_Url_Twitter_Url Shortener - Fatal编程技术网

Internet explorer 无法识别缩短的URL

Internet explorer 无法识别缩短的URL,internet-explorer,url,twitter,url-shortener,Internet Explorer,Url,Twitter,Url Shortener,我正在使用一个小部件来生成来自多个用户的tweet列表。因为twitter使用URL缩短,所以除了Chrome之外,任何浏览器都无法识别t.co(插入URL的其余部分)的输出。有解决办法吗 谢谢Firefox和许多其他浏览器可以轻松处理t.co转发 尽管如此,如果你只是想要一个脚本来查找它的转发位置,我前几天写了这样一篇文章: #!/usr/bin/env python import requests fwdurl = raw_input("Enter the shortened URL i

我正在使用一个小部件来生成来自多个用户的tweet列表。因为twitter使用URL缩短,所以除了Chrome之外,任何浏览器都无法识别t.co(插入URL的其余部分)的输出。有解决办法吗


谢谢

Firefox和许多其他浏览器可以轻松处理t.co转发

尽管如此,如果你只是想要一个脚本来查找它的转发位置,我前几天写了这样一篇文章:

#!/usr/bin/env python

import requests

fwdurl = raw_input("Enter the shortened URL in its entirety: ")
r = requests.get(fwdurl)

print("""
The shortened URL forwards to:

    %s
""" % r.url)

显然,它需要Python和请求模块。不过,它将解析任何缩短的URL。

谢谢Ben,我会看看是否可以使用它。不客气。正如我所说,它需要并且在不太可能的情况下,您需要检查使用HTTPS的转发服务(例如,查看确切的位置),然后您需要将get行更改为:r=requests.get(fwdull,verify=False)