how get a list of all pages indexed by google?

You can do site:example.com searches with  results per page, but if you
 try to do so with a script, then you will be stopped after just a few requests.