(self, url)
| 125 | """HTTP and HTTPS storage.""" |
| 126 | |
| 127 | def read(self, url): |
| 128 | # TODO @wenmeng.zwm add progress bar if file is too large |
| 129 | r = requests.get(url) |
| 130 | r.raise_for_status() |
| 131 | return r.content |
| 132 | |
| 133 | def read_text(self, url): |
| 134 | r = requests.get(url) |