How can I automate the process of taking website screenshots on multiple screen-sizes?

Can anyone please tell me how can I automate the process of taking website screenshots on multiple screen-sizes.