コード例 #1
0
ファイル: scihub.py プロジェクト: rahit/scihub2pdf
    def download(self):
        found, r = download_pdf(self.s, self.pdf_file, self.pdf_url,
                                self.headers)

        if not found:
            self.driver.save_screenshot(self.pdf_file + ".png")

        return found, r
コード例 #2
0
ファイル: libgen.py プロジェクト: briancabbott/xtrax
    def download(self):
        found, r = download_pdf(
            self.s,
            self.pdf_file,
            self.pdf_url,
            self.headers,
            filetype="application/octet-stream")

        return found,  r
コード例 #3
0
ファイル: arxiv.py プロジェクト: briancabbott/xtrax
    def download(self):
        found, r = download_pdf(self.s, self.pdf_file, self.pdf_url,
                                self.headers)

        return found, r