You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
345 B
14 lines
345 B
# -*- codding: UFT-8 -*-
|
|
#/usr/bin/env python3
|
|
import requests
|
|
from PIL import Image
|
|
from io import StringIO
|
|
#req = requests.get('https://api.github.com/events')
|
|
payload = {'s': '16'}
|
|
req = requests.get('https://iconbird.com/png/download.php?id=15895', params=payload)
|
|
#print(r.content)
|
|
|
|
i = Image.open(StringIO(req.content))
|
|
|
|
i.save('image')
|