擅长:python、mysql、java
<p>不是pycurl的等价物,而是做你想做的工作:<br/>
试试这个(经过反复试验):</p>
<pre><code>import requests
import os
import json
if os.path.exists("input.json"):
os.remove("input.json")
stmt = """curl -b "email=XXX; password=YYY\" https://storkcloud.org/api/stork/ls?uri=ftp://ftp.mozilla.org >> input.json"
returnValue = os.system(stmt)
with open("input.json") as json_file:
json_data = json.load(json_file)
print json_data
</code></pre>
<p>希望这能回答你的疑问。在</p>