generated from root/miduo_client
17 lines
435 B
Python
17 lines
435 B
Python
# -*- coding: utf-8 -*-
|
|
import json
|
|
import sys
|
|
import requests
|
|
|
|
if sys.argv.__len__() == 2:
|
|
flashPath = sys.argv[1]
|
|
urlPath = "http://smi.51sfsy.com/mrj/cdnrefresh?nonce=1532319693&token=881d1b9844fb78c165dad28752d67eb8&dirs="
|
|
# path = urlPath + "'" + flashPath +"'"
|
|
path = urlPath + flashPath
|
|
print(path)
|
|
r = requests.get(url= path)
|
|
print(r.status_code)
|
|
print(r.text)
|
|
else:
|
|
print("params error!")
|