Merge pull request #54 from ultrafunkamsterdam/cf-fix

fixed cloudflare detection, props to @czoins
This commit is contained in:
Leon 2020-11-25 12:50:38 +01:00 committed by GitHub
commit d47818ee5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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",

View File

@ -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