(url, out_path)
| 231 | |
| 232 | |
| 233 | def _download_urllib(url, out_path): |
| 234 | from urllib.request import urlopen, Request |
| 235 | req = Request(url, headers={'User-Agent': 'pyarrow'}) |
| 236 | with urlopen(req) as response: |
| 237 | with open(out_path, 'wb') as f: |
| 238 | f.write(response.read()) |
| 239 | |
| 240 | |
| 241 | def _download_requests(url, out_path): |