|
PyDL
Version: 0.0.1
|

Public Member Functions | |
| def | __init__ (self, input_url, download_path, file_id, report) |
| def | follow (self, url) |
| def | chunk_report (self, bytes_so_far, chunk_size, total_size) |
| def | chunk_read (self, response, ofilename, chunk_size=8192, report_hook=None) |
| def | download (self) |
| def | test_thread (self) |
Public Attributes | |
| filename | |
| download_path | |
| ofilename | |
| report | |
| def pydl.ScrapeFile.__init__ | ( | self, | |
| input_url, | |||
| download_path, | |||
| file_id, | |||
| report | |||
| ) |
Definition at line 102 of file pydl.py.
| def pydl.ScrapeFile.chunk_read | ( | self, | |
| response, | |||
| ofilename, | |||
chunk_size = 8192, |
|||
report_hook = None |
|||
| ) |
Definition at line 138 of file pydl.py.
Referenced by pydl.ScrapeFile.download().
| def pydl.ScrapeFile.chunk_report | ( | self, | |
| bytes_so_far, | |||
| chunk_size, | |||
| total_size | |||
| ) |
Report the latest downloaded file chunk
Definition at line 132 of file pydl.py.
References pydl.ScrapeFile.ofilename.
Referenced by pydl.ScrapeFile.download(), and pydl.ScrapeFile.test_thread().
| def pydl.ScrapeFile.download | ( | self | ) |
Definition at line 157 of file pydl.py.
References pydl.ScrapeFile.chunk_read(), pydl.ScrapeFile.chunk_report(), pydl.ScrapeFile.download_path, and pydl.ScrapeFile.ofilename.

| def pydl.ScrapeFile.follow | ( | self, | |
| url | |||
| ) |
| def pydl.ScrapeFile.test_thread | ( | self | ) |
Definition at line 173 of file pydl.py.
References pydl.ScrapeFile.chunk_report().

| pydl.ScrapeFile.download_path |
Definition at line 111 of file pydl.py.
Referenced by pydl.ScrapeFile.download().
| pydl.ScrapeFile.ofilename |
Definition at line 114 of file pydl.py.
Referenced by pydl.ScrapeFile.chunk_report(), and pydl.ScrapeFile.download().