googl.py 文件源码

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

项目:GrandeCogs 作者: HarukiGrande 项目源码 文件源码
def expand(self, ctx, url):
        """Expand goo.gl url"""
        key = self.loadapi["ApiKey"]
        async with aiohttp.ClientSession() as session:
            async with session.get('https://www.googleapis.com/urlshortener/v1/url?key=' + key + '&shortUrl=' + url) as resp:
                print(resp.status)
                yes = await resp.json()
                await self.bot.say(yes['longUrl'])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号