Last active
December 2, 2015 00:14
-
-
Save jtg567/16b92b45346cc82d6a38 to your computer and use it in GitHub Desktop.
Revisions
-
jtg567 revised this gist
Dec 2, 2015 . 1 changed file with 9 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,9 @@ from lxml import html from selenium import webdriver # scrape from mixlr page after js done (element won't exist otherwise) driver = webdriver.PhantomJS(executable_path='<replace path>/phantomjs.exe') # another webdriver works fine driver.get('http://mixlr.com/<replace username>') tree = html.fromstring(driver.page_source) air_status = tree.xpath('//*[@id="broadcaster_status"]/span[2]//text()') driver.quit() -
jtg567 created this gist
Nov 30, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ from lxml import html from selenium import webdriver # scrape from mixlr page after js done (element won't exist otherwise) driver = webdriver.PhantomJS(executable_path='<replace path>/phantomjs.exe') # another webdriver works fine driver.get('http://mixlr.com/<replace username>') tree = html.fromstring(driver.page_source) air_status = tree.xpath('//*[@id="broadcaster_status"]/span[2]//text()') driver.quit()