mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-20 10:25:01 +08:00
13 lines
235 B
Python
13 lines
235 B
Python
import base64
|
|
import requests
|
|
|
|
with open('16329967796715117.jpg', 'rb') as f:
|
|
image = base64.b64encode(f.read())
|
|
|
|
data = {
|
|
'images': image
|
|
}
|
|
|
|
response = requests.post('http://127.0.0.1:8888/', data=data)
|
|
print(response.json())
|