While downloading a video using the PyTube library using this code:
yt.streams.get_highest_resolution().download("PATH", f"PATH.mp4")
I get an error:
raise RegexMatchError(caller="get_transform_object", pattern=pattern)
pytube.exceptions.RegexMatchError: get_transform_object: could not find match for var for={(.*?)};
I've seen a lot of fixes on Stack Overflow and in the Git repository of PyTube, but they seem to go into different parts of cypher.py
. I would like to know how I could alternate get_transform_object
class in cypher.py
to match the RegEx check.