Merge pull request #54 from ultrafunkamsterdam/cf-fix
fixed cloudflare detection, props to @czoins
This commit is contained in:
commit
d47818ee5f
2
setup.py
2
setup.py
|
@ -16,7 +16,7 @@ from setuptools import setup
|
|||
|
||||
setup(
|
||||
name="undetected-chromedriver",
|
||||
version="1.5.0",
|
||||
version="1.5.1",
|
||||
packages=["undetected_chromedriver"],
|
||||
install_requires=["selenium",],
|
||||
url="https://github.com/ultrafunkamsterdam/undetected-chromedriver",
|
||||
|
|
|
@ -230,7 +230,7 @@ class ChromeDriverManager(object):
|
|||
for line in iter(lambda: fh.readline(), b""):
|
||||
if b"cdc_" in line:
|
||||
fh.seek(-len(line), 1)
|
||||
newline = re.sub(b"cdc_.{22}", b"xxx_undetectedchromeDRiver", line)
|
||||
newline = re.sub(b"cdc_.{22}", b"xxz_undetectedchromeDRiver", line)
|
||||
fh.write(newline)
|
||||
linect += 1
|
||||
return linect
|
||||
|
|
Loading…
Reference in New Issue