Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python download complete web page

# pip install selenium
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys

br = webdriver.Firefox(firefox_binary=binary,
                               executable_path="path_to_webdriver")

br.get('http://www.google.com/')

save_me = ActionChains(br).key_down(Keys.CONTROL)
         .key_down('s').key_up(Keys.CONTROL).key_up('s')
save_me.perform()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #download #complete #web #page
ADD COMMENT
Topic
Name
4+7 =