17.splash_case03

# python执行lua脚本

import requests
from urllib.parse import quote

lua = '''
function main(splash)
    return 'hello'
end
'''

url = 'http://localhost:8050/execute?lua_source=' + quote(lua)
response = requests.get(url)
print(response.text)
posted @ 2019-05-04 11:13  hank-li  阅读(91)  评论(0编辑  收藏  举报