I'm trying to use Chrome Functions to scrape data from Indeed. Here's a link to the page I'm trying to scrape:
https://www.indeed.com/jobs?q=Accountan ... d5dd495be3
I just need to extract the following data:
1) Job Title
2) Company Name
3) City & State
I tried a basic script to just to see if it would pull Element Data and it is pulling nothing. I admit that I am very new to using the Chrome Functions.
Code: Select all
//Set IGNORESPACES to 1 to force script interpreter to ignore spaces.
//If using IGNORESPACES quote strings in {" ... "}
//Let>IGNORESPACES=1
Let>CHROMEDRIVER_EXE=c:\chromedriver.exe
Let>CHROMEDRIVER_OPTIONS=--start-maximized
//start a Chrome session
ChromeStart>session_id
//navigate to google.com
ChromeNavigate>session_id,url,https://www.indeed.com/jobs?q=Accountant&l=Detroit&from=searchOnHP&vjk=a9a229d5dd495be3/
wait 10.0
ChromeFindElements>session_id,xpath,main,elements
ChromeGetElementData>session_id,elements_1,text,theText
ChromeGetElementData>session_id,elements_1,attribute/innerHTML,theHtml
Wait 1.0
MDL>%theText%
Thanks,
rjw524