Read. Args: url: TODO.
(self, url)
| 404 | """HTTP and HTTPS storage.""" |
| 405 | |
| 406 | def read(self, url): |
| 407 | # TODO @wenmeng.zwm add progress bar if file is too large |
| 408 | """Read. |
| 409 | |
| 410 | Args: |
| 411 | url: TODO. |
| 412 | """ |
| 413 | r = requests.get(url) |
| 414 | r.raise_for_status() |
| 415 | return r.content |
| 416 | |
| 417 | def read_text(self, url): |
| 418 | """Read text. |