Thank you for your attention,and sorry for my poor english.
I am working at get html from http://flvxz.com/ when i put some words in the input box and click.it is like :
- load the Yahoo homepage
- search for "something" ( input someword and click button )
- get the return html
my websit return the message by javaScrip
this is my code
browser = webdriver.Firefox()
browser.get('http://flvxz.com/')
input_box = browser.find_element_by_id("videoPageURI") # Find the search box
button = browser.find_element_by_id("fetchButton") # find the button
input_box.send_keys(url) # input some string
button.click() # click
then,how can i get the new html? i try as below,not work.
html = browser.find_element_by_tag_name('html').text();
My questions :
- How can i get html?
- Is there better ways or tools to do this jop(i do not like it open the window ,but the i like the way it control the browser)?
Thank you a lot,and i am improving my english...