Created
February 18, 2018 17:43
-
-
Save gitdagray/d75092b010b0fe20b7c57f4e4e54056b to your computer and use it in GitHub Desktop.
Scraping Kanview with Selenium and Beautiful Soup
This file contains 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 characters
#Selenium hands the page source to Beautiful Soup | |
soup_level1=BeautifulSoup(driver.page_source, 'lxml') | |
datalist = [] #empty list | |
x = 0 #counter | |
for link in soup_level1.find_all('a', id=re.compile("^MainContent_uxLevel2_JobTitles_uxJobTitleBtn_")): | |
##code to execute in for loop goes here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instead of
x = 0 #counter
it's better to just call the var counter:counter = 0
:)