Hello from a chilly wet New Zealand,
I'm new to this forum and am asking for some advice to point me in the right direction.
I'm not a programmer but I've been learning some VBA programing skills over the years by trial/error and researching the web.
Normally I can find partial VBA solutions, tweak them and glue them together to do what I need but I'm struggling with the latest challenge which is my first time trying to scrape data from a website into Excel.
In Column A I have a list of Google exact search phrases, typically 200-500 items.
I want to write VBA code that will automatically search through this list and return the number of results found into the adjacent column.
For example, for Purple Elephants I manually enter the exact phrase "Purple Elephants" into Google and it returns the results page with a total number of results found being 91,600.
I want it to look like this....
Column A Column B
Purple Elephants 91,600
Blue Bananas 79,900
I did find some code on the internet, see attached, that I edited to get it running on my PC but all results come back as 0.
This is my first foray into trying to extract data from a browser so out of my depth in that respect.
I'm on Windows10 64-bit, using Microsoft 365 and have Chrome and Edge browsers installed.
After digging further I'm found references to Selenium for compatibility with Chrome.
Do I have to go down the Selenium pathway or is there another way I can get what I want, maybe using a different browser but without Selenium?
I'd appreciate hearing from you if you can point me in the right direction.
Thanks.
John
Bookmarks