assetstore.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:unity 作者: awolfly9 项目源码 文件源码
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 ???????
    # ????????????????
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号