Skip to content

Instantly share code, notes, and snippets.

@binary1230
Last active November 14, 2023 02:22
Show Gist options
  • Star 75 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save binary1230/7cfa0524d0fae7c320e3b15fc1f4f64c to your computer and use it in GitHub Desktop.
Save binary1230/7cfa0524d0fae7c320e3b15fc1f4f64c to your computer and use it in GitHub Desktop.
wells fargo ability to download all bank statements
3/18/2021: WE HAVE MOVED: For the latest instructions on how to use the bulk wells fargo PDF downloader,
please ignore this page and visit below:
https://github.com/binary1230/wellsfargo-bulk-PDF-statement-downloader/blob/main/README.md
===============================================
ORIGINAL BELOW (obsolete, don't use)
--------------------------------------------------------------------
Wells Fargo makes it difficult to bulk download your bank statements.
Each time you click a statement PDF, you have to re-navigate the entire section including accounts and dates which takes FOREVER.
Doing this for 3-4 accounts for 12 statements is a multi-hour grind of horrible user experience which should instead take 30 seconds.
Here is a script to allow you to bulk download your PDF statements.
The following code snippet will make it so you can get every PDF on that page without hassle (y'know.. like every other website in the world)
To use this, do the following each time you have the links on-screen that you want to download:
1) In Chrome browser, navigate to your wells fargo statement viewer and pull up the set of PDFs you want to view
2) Press F12 to open the developer tools and click the tab at the bottom that says 'Console'
3) Paste the following code into the developer console, then press ENTER
$("a[data-pdf='true']").each(function(i,el) {$(el).attr('href', $(el).attr('data-url'));});
Now that this is done, you can right click on each link and click Save As... to save each PDF (or use a download manager to get them all)
UPDATE: see @trevorfox's suggestions in the comments of this gist for another method that lets you do alternate things.
@binary1230
Copy link
Author

binary1230 commented Feb 20, 2021 via email

@benedictchen
Copy link

@cowens
Most people have been extremely thankful and grateful to have this script exist in the first place. A lot of people worked together and shared ideas to make it happen. There is nothing more disappointing than think you're doing a good deed and having somebody slap you in the face.

@cowens
Copy link

cowens commented Feb 21, 2021

@benedictchen I am sorry you are disappointed, but my hope is that my comments will prevent someone from having their life ruined because they thought it was okay to paste code they didn't understand into their browser's console. I am grateful for the work you and the others in this gist did. After reviewing the code and making sure I understood what it was doing, I even made use of it. But if a person can't review the code, they should not take a stranger's word that it is safe. Gist comments can also be edited by the user, so if your Github account were hacked, an attacker could change the code to be malicious or an attacker could just add a new comment saying they had a better version.

@formvoltron
Copy link

Would love to get this to work. The script at the top of the page talks about an update, but there is no code there, just a blank space in the text file.

How can i get the update? I need to download a LOT of statements going back 7 years on 4 accounts.

@binary1230
Copy link
Author

Hey @formvoltron,

You can view the most recent version of the instructions in this project's new home here:
https://github.com/binary1230/wellsfargo-bulk-PDF-statement-downloader/blob/main/README.md

I updated the instructions there as well, they should be somewhat clearer.

Wells Fargo might occasionally change their web interface and break our script, so, if it doesn't work, let us know.

(@cowens, btw I added a stronger warning on the new project page while I was there)

@formvoltron
Copy link

Thank you @binary1230

But I'm not having much luck. I followed the directions. (is the code meant to be encoded? it shows up on that page as encoded & so I copy paste in encoded javascript into the bookmark)

So when do I click that link? I've tried clicking it on an empty page, on my WF account page, and on the statements WF page. But nothing happens. I tried various combinations of shift, control alt and clicking.. and nothing has changed. there are also no new entries on my context menu. hmmm

Thank you!

@benedictchen
Copy link

benedictchen commented Mar 18, 2021 via email

@formvoltron
Copy link

Yes. I chose the year. Then I clicked my shortcut, nothing happened. then i right clicked.. nothing. command, option click.. nothing.

What steps are supposed to work, because the docs didn't say to first select a year. Maybe there is something else i'm not doing?

@benedictchen
Copy link

benedictchen commented Mar 18, 2021 via email

@formvoltron
Copy link

formvoltron commented Mar 19, 2021 via email

@binary1230
Copy link
Author

latest changes are up (forevermore) at https://github.com/binary1230/wellsfargo-bulk-PDF-statement-downloader , with a new fix PR just merged.

@ImpactQuant2
Copy link

Thanks for the big time-saver. Here's a tip if needed:

Screen Shot 2021-04-23 at 12 13 22 PM

@annonymous99999
Copy link

This seams to have broke in 2022 can you post a fix?

@benedictchen
Copy link

This seams to have broke in 2022 can you post a fix?

@annonymous99999
Copy link

The new code and this code are both broken at the link above. Can the Authors please take a look?
I had tested both before posting.

@benedictchen
Copy link

The new code and this code are both broken at the link above. Can the Authors please take a look?
I had tested both before posting.

Do you have error messages or screenshots? Can you describe what's happening? I used it yesterday without errors.

@ThinkDigitalSoftware
Copy link

I'm having an issue too. I don't see any buttons after logging in, clicking the bookmark, and then navigating to the page. I've also clicked the bookmark and refreshed the page. Nothing still. I'm using the code at the new link

@benedictchen
Copy link

If this was helpful to you, please buy me a beer on PayPal: Click Here


Step 1: Click the bookmark
Screen Shot 2022-07-07 at 9 14 27 AM

Step 2: Click dropdown and select year
Screen Shot 2022-07-07 at 9 14 38 AM

Step 3: click which year you want
Screen Shot 2022-07-07 at 9 14 43 AM

Step 4: click the download button
Screen Shot 2022-07-07 at 9 15 07 AM


If this was helpful to you, please buy me a beer on PayPal: Click Here

@bigmac-attack
Copy link

I'd be happy to buy you a beer, but the code doesn't work. I just tried three times, and absolutely nothing happens. I log in to WFB, I click the bookmark, then navigate to my statements, select an account and a time period, and... nothing. As if I never tried your code at all.

@benedictchen
Copy link

benedictchen commented Jul 25, 2022

@bigmac-attack , can you please provide more information about what you are doing? Screen recording... steps you are taking...
Also, did you grab the latest code from the OTHER repository instead of this one? This conversation is already abandoned.

I have tried the code before taking the screenshots you see above and they absolutely work. Without more details from your side there is no way to figure out what is going on.

What I can recommend is (FOLLOW THIS ORDER EXACTLY!):

  • Make sure you're using Google Chrome.
  • Make sure to click AFTER you see the Statements and Disclosures screen, but before you select the year from the dropdown.
  • Make sure you're using the latest code, check the repo.
    javascript:(function()%7Bfunction freshNode(oldElement) %7B%0Avar newElement %3D oldElement.cloneNode(true)%3B%0AoldElement.parentNode.replaceChild(newElement%2C oldElement)%3B%0A%7D%0A%0Adocument.querySelectorAll('video').forEach(element %3D> %7B%0A freshNode(element)%3B%0A%7D)%3B%7D)()%3B
  • If all else fails, make a detailed screen recording (blur out or delete parts that have sensitive information such as account numbers, names, etc.). Feel free to send me a DM or email directly.

I think what is happening is that the order is not correct:

I log in to WFB, I click the bookmark, then navigate to my statements, select an account and a time period, and... nothing. As if I never tried your code at all.

What you're doing is clicking the link immediately after logging in. You must click after you reach Statements page. The WF website will do a full page refresh and you will lose the code. Make sure to click the bookmark AFTER you load the Statements and Disclosures page. Please check the instructions and follow the order EXACTLY without deviation.

@Emre-Zero
Copy link

Thank you!!! ❤️

@DebLeong
Copy link

DebLeong commented Feb 1, 2023

this is awesome @benedictchen
will you have a similar script for brokerage statements download (on another page) please

@benedictchen
Copy link

benedictchen commented Feb 1, 2023 via email

@wayjake
Copy link

wayjake commented Feb 1, 2023

this is awesome @benedictchen will you have a similar script for brokerage statements download (on another page) please

you'd think that maybe the company itself would just listen to a basic user request to download more than one file at once. Charles W. Scharf, if you are listening I would be happy to provide services to re-architect your architecture.

Bonne journée Monsieur

@benedictchen
Copy link

benedictchen commented Feb 1, 2023 via email

@wayjake
Copy link

wayjake commented Feb 5, 2023 via email

@bigmac-attack
Copy link

I finally figured out what's going on... after clicking the bookmark, then clicking the year, nothing happened. What you have to do before selecting the year is to actually select the account... even if it's the same account already in the window. Selecting the account seems to trigger the script. It finally, finally works for me now!

@ltrook21
Copy link

It's ridiculous that this is still a problem with Wells Fargo. Also, for others facing bugs, I couldn't get it to run on my system, perhaps bigmac's solution works, I never tried it.
What did work for me is getting the raw code on the javascript file and running it in the console. You might have to refresh a few times and copy paste the code in. Eventually it works.
Thanks!

@itdept936
Copy link

itdept936 commented Nov 10, 2023

I'm a classic procrastinator, and while trying to download several statements (in one sitting) to get my accounts up to date, I just couldn't stand it anymore... i HAD to find a way around this ridiculous usability error for WF. It did take a couple of times before I saw the giant buttons, but once it did, I was ecstatic... be sure you "allow" the site to download multiple files at a time.

I'll be buying someone a beer!
image

(one small comment... one of the ReadMe files inferred that this could potentially help retrieve transactions beyond the 18-month limit, but I didn't see any instructions for making this work, but perhaps I read it wrong)

@kupietools
Copy link

LOL, @itdept936, between the sentiment, the overuse of ellipses and parenthetical asides, and the procrastination, I actually thought for a second Github was just coughing up a notification about an old comment of mine, not someone else's. Soul brother!

I couldn't find a way around the annoying 18 month limit either. I can't believe a huge national bank couldn't afford to provide better self-service than that, if they wanted to. It really sucks that WF is the least worst bank I ever had, if I could find a bank that was less worst I'd drop WF in a heartbeat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment