When I’m trying to download videos using pytube
I’m getting this error. I’m using the latest version of pytube
:
JavaScript
x
4
1
raise RegexMatchError(caller="get_ytplayer_config", pattern="config_patterns")
2
pytube.exceptions.RegexMatchError:
3
get_ytplayer_config: could not find match for config_patterns
4
Advertisement
Answer
You might be running an old version of pytube. Run these commands, they might fix your problem:
JavaScript
1
3
1
python -m pip uninstall pytube pytube3 pytubex
2
python -m pip install git+https://github.com/nficano/pytube
3