assetstore.py 文件源码

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

项目:unity 作者: awolfly9 项目源码 文件源码
def start_requests(self):
        for i, url in enumerate(self.start_urls):
            yield FormRequest(
                    url = url,
                    headers = {
                        'Accept': 'application/json',
                        'Accept-Encoding': 'gzip, deflate, br',
                        'Accept-Language': 'zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3',
                        'Connection': 'keep-alive',
                        'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
                        'Host': 'www.assetstore.unity3d.com',
                        'Referer': 'https://www.assetstore.unity3d.com/en/',
                        'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:50.0) Gecko/20100101 '
                                      'Firefox/50.0',
                        'X-Kharma-Version': '0',
                        'X-Requested-With': 'UnityAssetStore',
                        'X-Unity-Session': '26c4202eb475d02864b40827dfff11a14657aa41',
                    },
                    method = 'POST',
                    formdata = {
                        'current_package_id': '',
                        'hardware_hash': '',
                        'language_code': 'en',
                        'license_hash': '',
                    },
                    meta = {
                        'download_timeout': 20,
                        'is_proxy': False,
                    },
                    callback = self.get_unity_version,
            )

    #??? unity asset store ??????
    # ??????????
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号