How can I automate taking screenshots of 10,000+ pages?
Write a script,  use something like pageres.   

Check out this list , in the "Screenshot Utilities" section, you'll find many links to utils, APIs and web services.