Web scraping

Greggey1

New Member
Joined
Mar 29, 2019
Messages
11
Is there a way to click on a drop down window located on the website and import that data when using web scraping. Trying to pull data from multiple pages but unfortunately the URL remains the same as the home page.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
if the click of the button produces a new, repeatable URL, you can import it in PQ. If not, you need to use a tool like Python leveraging selenium or similar
 
Upvote 0
click on a drop down window located on the website
What sort of drop down window?
Trying to pull data from multiple pages but unfortunately the URL remains the same as the home page.
1. Open the dev tools of your browser
2. Go to the network tab
3. Sort by type
4. Look for json type
5. Inspect the URL

If the browser URL has remained the same after dropping down that window, the triggered event is using REST API to bring the data.
 
Upvote 0
What sort of drop down window?

1. Open the dev tools of your browser
2. Go to the network tab
3. Sort by type
4. Look for json type
5. Inspect the URL

If the browser URL has remained the same after dropping down that window, the triggered event is using REST API to bring the data.
Standard drop down window where select a certain criteria and click submit to get the information. Assuming REST API will not work in a standard web query?
 
Upvote 0
Websites have diverse mechanisms to do what they do. I recommend finding out where the data is coming from. If it's coming from REST API, that's a URL that you can input in your tool. If your tool can not do the job, there are several workarounds, like:
1. browser automation through chromium using selenium, puppeteer, etc...
2. browser automation through iexplore using vba, a browser control, etc
3. browser automation through your favorite browser using a bookmarklet, browser extension, etc

Among other approaches.
 
Upvote 0

Forum statistics

Threads
1,224,852
Messages
6,181,400
Members
453,035
Latest member
chrismor_gr

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