sv764t | 8bf4998 | 2018-10-25 01:42:52 -0400 | [diff] [blame^] | 1 | from curl import Curl |
2 | |||||
3 | class CurlLibrary: | ||||
4 | |||||
5 | |||||
6 | def get_zip(self, url, filename): | ||||
7 | fp = open(filename, "wb") | ||||
8 | c = Curl() | ||||
9 | c.get(url, ) | ||||
10 | c.set_option(c.WRITEDATA, fp) | ||||
11 | c.perform() | ||||
12 | c.close() | ||||
13 | fp.close() |