What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-19 08:27:02
python selenium web scraping example
#Python example - use chrome driver to open google url and enter into search bar "Why is python so awesome" #required imports from selenium import webdriver from selenium.webdriver.common.keys import Keys #open driver PATH_TO_DRIVER = './chrom... Add solution -
Python 2021-09-14 19:54:04
whatsapp spammer script
# Import Selenium module from selenium import webdriver # Paste the address of the chromedriver.exe file in webdriver.Chrome() driver = webdriver.Chrome('C:\\webdrivers\\chromedriver.exe') driver.implicitly_wait(15) # Enter the website in .get() driver.... Add solution -
Other 2021-09-10 20:03:03
chromedriver = webdriver.Chrome(“D:\driver\chromedriver.exe”) doesnt work
"chromedriver = webdriver.Chrome(“D:\driver\chromedriver.exe”)" doesnt work for me so i found out if i use "driver = webdriver.Chrome(executable_path=r'DRIVER_PATH')" it works from selenium import webdriver driver = web... Add solution -
Html 2021-09-06 07:43:02
how to pass the current url to beautiful soup html
from selenium import webdriver from selenium.webdriver.common.keys import Keys from bs4 import BeautifulSoup def parse_content(html_doc): soup = BeautifulSoup(html_doc, 'html.parser') print (soup.title.text) driver = webdriver.Chrome() driver.g... Add solution -
Python 2021-09-05 08:03:04
scrapy selenium screnshot
#coding=utf-8 import time from selenium import webdriver from selenium.webdriver.chrome.options import Options def test_fullpage_screenshot(self): chrome_options = Options() chrome_options.add_argument('--headless') chrome_options.add_argumen... Add solution -
Python 2021-09-05 03:16:02
get page source code selenium python
from selenium import webdriver import time options = webdriver.ChromeOptions() options.add_argument('--ignore-certificate-errors') options.add_argument("--test-type") options.binary_location = "/usr/bin/chromium" driver = webdriver.Ch... Add solution
Best helpers
Wayne
+5
Abe bubush
+5
Kyle Carlson
+5
Myles
+5
Takje
+5
Trevorj
+5
David
+5
Mitsos
+5
Nuraxi
+5
Ahmed Masud
+5