반응형
pytube exceptions
pytube.exceptions.RegexMatchError: regex pattern (\W[\'"]?t[\'"]?: ?[\'"](.+?)[\'"]) had zero matches
pytube path :
Python\Python37-32\Lib\site-packages\pytube
extract.py 파일 오픈
아래와 같이 주석 처리
else:
# I'm not entirely sure what ``t`` represents. Looks to represent a
# boolean.
#t = regex_search(
# r'\W[\'"]?t[\'"]?: ?[\'"](.+?)[\'"]', watch_html,
# group=0,
#)
params = OrderedDict([
('video_id', video_id),
('el', '$el'),
('ps', 'default'),
('eurl', quote(watch_url)),
('hl', 'en_US'),
#('t', quote(t)),
반응형
'프로그램 > Python' 카테고리의 다른 글
python timeout (only linux) (0) | 2018.12.18 |
---|---|
error : UnicodeEncodeError: 'cp949' codec can't encode character '\u2764' in position 19: illegal multibyte sequence (0) | 2018.11.26 |
python - OptionParser (3) | 2013.05.21 |
python – os.glob 모듈 (0) | 2013.05.21 |
python split() (0) | 2013.05.21 |