我的Discord机器人,没有任何视频代码

@bot.command()
async def buscayt(ctx,*,search):
    query_string = parse.urlencode({'search_query': search})
    html_content = request.urlopen('http://www.youtube.com/results?' + query_string)
    search_results = re.findall(r'href = "/watch/\?v=(.{11})"',html_content.read().decode())
    print(search_results)

当我使用命令时,在print(search_results)中应显示[带有代码“],但仅显示[],不显示任何内容

iCMS 回答:我的Discord机器人,没有任何视频代码

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/1989535.html

大家都在问