title: Puppeteer: how to rename a file before downloading?
body: <p>I want to crawl some file using puppeteer, and I find the downloading practice like below:</p>
  
  <p><a href="https://stackoverflow.com/questions/46966341/puppeteer-how-to-set-download-location">puppeteer - how to set download location</a></p>
  
  <pre><code> await page._client.send('Page.setDownloadBehavior', {
                  behavior: 'allow',
                  downloadPath: dirname,
              });
  </code></pre>
  
  <p>but I want to change the filename now, some examples use "fs" module to rename it when download finished, but usually, there are many files and different names, it couldn't check it in PC file system manually, we want to click the download button and rename it at right, how can I reach it?</p>