Skip to content

允许下载的时候传入自定义headers

Compare
Choose a tag to compare
@liuchang0812 liuchang0812 released this 03 May 10:32
· 55 commits to master since this release

使用方法:

request = DownloadFileReqeust('xxx', 'yyyy', headers={'Referer': 'https://www.google.com.hk/webhp', 'User-Agent': 'Mozilla/5.0'})