Pulling Excel Data from a Password-Protected Website

j_karamazov

New Member
Joined
Feb 12, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi all,

Part of my work involves financial modelling. For this, we use forecast interest rates, published by Chatham Financial (Global Financial Risk Management Firm).

They used to publish the data on a spreadsheet located a non-login protected section of their website, which a simply Power Query could pull easily.

Now, however, they have moved to a new website setup which is password protected. We have an account, but the way the website is set up is (I think) defeating the Power Query.

The username entry for the website is here: https://www.chathamdirect.com/login

Once the username is entered, the URL then moves to another page for the password: Log in | Chatham Financial

After some digging, I've found the URL for the excel sheet that can then be downloaded via the same URL every day (even though the filename changes each day): https://chathamdirect.com/rates/api/v1/rateset/sonia/forwardcurves/export/

Once I've logged into the website, I can download the sheet simply by pasting this link into the browser. However, this is quite a manually-intensive way of doing it, and I'd like to automate it in Excel if possible.

Is there a way of negotiating the two-page login process, and then downloading the file from the URL above?

Any help would be gratefully received!

Best wishes all.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Welcome to the MrExcel Message Board! :)

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at:

There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,209
Members
453,023
Latest member
alabaz

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