If I want to use VB to control Chrome to do a local search "Ctrl + F" type of search to find out the location of the specific words in a webpage. How to do that?
Printable View
If I want to use VB to control Chrome to do a local search "Ctrl + F" type of search to find out the location of the specific words in a webpage. How to do that?
Well, you could, but it may not be advisable. Anything that involves scraping web pages runs into loads of problems. Web pages keep changing. You might have to jump through a lot of hoops to get it to work right, only to find that it doesn't work the next day because what you were looking at is no longer what it was. A web page is fundamentally text, so searching it would be kind of like searching a string. There was a time when that was all there was to it. That time has been long gone. What remains is a bunch of dynamically loaded, and dynamically changeable stuff. For this reason, web scraping should be considered an absolute last resort.
If you tell us more about what you are trying to ultimately accomplish, we might be able to suggest a more reliable way to approach it.