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)

猜你喜欢

转载自www.cnblogs.com/hankleo/p/10807796.html
今日推荐