From 01f6f958b6cfae538d03567abe693da0ca6f4ab9 Mon Sep 17 00:00:00 2001 From: Leon Date: Mon, 15 Jun 2020 20:20:47 +0200 Subject: [PATCH] Update README.md --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index 93fb107..5010829 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,30 @@ uc.TARGET_VERSION = 84 driver = uc.Chrome() ``` +### datadome.co #### +These guys have actually a powerful product, and a link to this repo, which makes me wanna test their product. +Make sure you use a "clean" ip for this one. +``` +# STANDARD chromedriver +from selenium import webdriver +chrome = webdriver.Chrome() +chrome.get('https://datadome.co/customers-stories/toppreise-ends-web-scraping-and-content-theft-with-datadome/') +chrome.save_screenshot('datadome_regular_webdriver.png') +True +# after this detectioon, you'll keep being nagged with puzzles, even if you use another machine from the same same network (they use a very tight but effective regime, possibly combination of fingerprinting and ip-flagging). + + +# UNDETECTED chromedriver (headless,even) + +import undetected_chromedriver as uc +options = uc.ChromeOptions() +options.headless=True +options.add_argument('--headless') +chrome = uc.Chrome(options=options) +chrome.get('https://datadome.co/customers-stories/toppreise-ends-web-scraping-and-content-theft-with-datadome/') +chrome.save_screenshot('datadome_undetected_webddriver.png') +``` + #### patches selenium module #### Needs to be done before importing from selenium package