这个脚本给 ma 一个 500 错误,有什么想法吗?
我从 python 示例的页面中获取脚本,并使用我的托管公司给我的路径(我知道它有效,因为我有另一个有效的脚本。)
该文件具有 755 权限以及它的目录:
#!/home3/master/bin/python
import sys
sys.path.insert(1,'/home3/master/lib/python2.6/site-packages')
from twython import Twython
twitter = Twython()
trends = twitter.getCurrentTrends()
print trends