def get_unity_version(self, response):
content = json.loads(response.body)
utils.log('content:%s' % response.body)
self.unity_version = content.get('kharma_version', '')
self.headers['X-Kharma-Version'] = self.unity_version
# unity asset store ????? json ??
url = 'https://www.assetstore.unity3d.com/api/en-US/home/categories.json'
yield Request(
url = url,
method = 'GET',
headers = self.headers,
meta = {
'download_timeout': 20,
'is_proxy': False,
},
callback = self.get_categories,
)
# ?????? json ???????? unity ???????
# ????????????????
评论列表
文章目录