PDF Downloader

From edegan.com
Revision as of 13:15, 8 December 2017 by ChristyW (talk | contribs)
Jump to navigation Jump to search


McNair Project
PDF Downloader
Project logo 02.png
Project Information
Project Title PDF Downloader
Owner Christy Warden
Start Date
Deadline
Keywords PDF, python
Primary Billing
Notes
Has project status Complete
Copyright © 2016 edegan.com. All Rights Reserved.


Overview

The code for this function is located at E:/McNair/Software/Google_Scholar_Crawler/pdfdownloader.py

This program takes in a txt file that contains rows of entries where each row is a file name and a link to a pdf, separated by a tab. (For an example, E:/McNair/Projects/Patent_Thickets/ScholarQueries/patent thickets/Query_patent thickets_pdfTable.txt). It also takes in a directory that you want all the PDFs to be placed in. It downloads all the PDFs from the links in the txt file and names them by the file name, also in the text file. It saves all of the PDFs in the output directory provided.

Dependencies

urllib

How to Use

Open the pdfdownloader.py in Komodo. At the bottom of the file, type: main(your text file, your output directory). Click the play button in the top middle of the screen.