Extracting data from Website without web scraping

Chefsohail

Board Regular
Joined
Oct 3, 2020
Messages
90
Office Version
  1. 365
Platform
  1. Windows
Hi Team,

I need your expertise to extract data from a webpage.

So basically I have different Product ID's in column A. Now i want VBA to search a product ID in the search box of a URL and return values in the adjacent colums.

ABCD
Product IDProduct NameSerialUse
123456789Shampoo23Haircare
789101112Conditioner25Haircarev

Now this is a recurring activity for different product ID's. I do not need to update the information as it does in web query in excel.
I also want to be careful not to get into any legal issues for web scraping.

So whats the best solution to get this done using vba. Please advice.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Webscraping is the act of extracting data from a website. More often than not (always?), it is the automated extraction of data. What you're describing above is webscraping. Whether or not there are any legal issues is, unfortunately, a legal question and - though I know you weren't asking for any - we cannot provide any form of legal advice.

But if all you're asking is whether it is doable in VBA, then the answer is (likely) yes. It will depend largely on how the website is coded (e.g., Javascript-rendered?).

Sorry I can't be of more help.
 
Upvote 0

Forum statistics

Threads
1,214,620
Messages
6,120,554
Members
448,970
Latest member
kennimack

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top