Download a file from a URL. The default download location is: "./downloaded_files/".
(self, file_url)
| 1778 | time.sleep(float(duration)) |
| 1779 | |
| 1780 | def download_file(self, file_url): |
| 1781 | """Download a file from a URL. |
| 1782 | The default download location is: "./downloaded_files/".""" |
| 1783 | self.loop.run_until_complete( |
| 1784 | self.page.download_file(file_url) |
| 1785 | ) |
| 1786 | |
| 1787 | def save_file_as(self, file_url, new_file_name): |
| 1788 | """Download a file from a URL and rename it. |
no outgoing calls