What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-15 21:21:02
python io stream download
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC driver = webdriver.Firefox() driver.get("http://somed... 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 -
Python 2021-09-11 06:22:03
how to wait for a element to load in selenium
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC driver = webdriver.Firefox() driver.get("http://somed... 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 -
Python 2021-09-09 06:16:02
python all option
from selenium import webdriver browser = webdriver.Firefox() select_box = browser.find_element_by_name("month") options = [x for x in select_box.find_elements_by_tag_name("option")] for element in options: print element.get_at... Add solution -
Other 2021-09-07 20:24:02
web scrape forex live prices
import pandas as pd import time import requests from bs4 import BeautifulSoup from selenium import webdriver url = 'https://www.forexfactory.com/calendar.php?month=last' response = requests.get(url) data = response.text soup = BeautifulSoup(data, 'lxml') 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