Hi Michael, great video thank you for the help! I'm trying to use this now to scrape for phone numbers, but I think Google has updated where the phone numbers are stored, so now you need to click on the item card in order to find it as it no longer exists in the text. Just something interesting that I noticed. Maybe you have a better work around.
Excelent material, just one question, I want to extract the physical adress and I cant find a way, it doesnt appear to have a unique attribute to use it on the search by CSS. I am struggling and losing my sight hahah... pls help !
Hello, got the solution for you: Use this selector: .fontBodyMedium .W4Efsd:nth-child(1) You will get both proffesion and address Then use this: · And split the text using the above character and you will get the proffesion and address seperately
@@MichaelKitas SOLVED !!! Now it works I used this : I dont need the profession so I only got the adress. try: data['address'] = item.find_element(By.CSS_SELECTOR, '.fontBodyMedium > div:nth-child(4) > div:nth-child(1) > span:nth-child(2) > span:nth-child(2)').text except Exception: pass THIs is the BEST scraping code I have encountered. Most of the other ones dont work as clean as your code. GREAT and thank you so much !!! I have seen like 10 different programs and most of them dont scroll the data so they only get like 20 results. This one with the Js coding is PERFECT. Thanks again. !!!