Traceback (most recent call last):


 "F:\River\Downloads\swjsq (1).py", line 800, in <module>

ins.run(uid, pwd_md5, save = False)


 "F:\River\Downloads\swjsq (1).py", line 373, in run

print('Login xunlei succeeded')


 "F:\River\Downloads\swjsq (1).py", line 180, in print

logfd.write(line)
TypeError: a bytes-like object is required, not 'str'

Traceback (most recent call last):

 "/Users/shichao/envs/youtube-dl/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 600, in extract_info
ie_result = ie.extract(url)

 "/Users/shichao/envs/youtube-dl/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 260, in extract
return self._real_extract(url)

 "/Users/shichao/envs/youtube-dl/lib/python2.7/site-packages/youtube_dl/extractor/bilibili.py", line 34, in _real_extract
r'(?s)<div itemprop="video".*?>(.*?)</div>', webpage, 'video code')

 "/Users/shichao/envs/youtube-dl/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 516, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)RegexNotFoundError: Unable to extract video code; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see
https://yt-dl.org/update
on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.