13 lines
325 B
Python
13 lines
325 B
Python
#!/usr/bin/env python3
|
|
|
|
# HACK: seems 'requests' module bundled with blender isn't bundled with 'idna' module. So force system python for now
|
|
import sys
|
|
sys.path.insert(0, '/usr/lib/python3.6/site-packages')
|
|
import requests
|
|
|
|
def fetch(url):
|
|
# TODO: do conditional request
|
|
re = requests.get(url)
|
|
print(re.json())
|
|
|