Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
blablupcom committed Jul 25, 2018
1 parent 54ba917 commit 8a29228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Expand Up @@ -52,7 +52,7 @@ def validateURL(url):
else:
ext = os.path.splitext(url)[1]
validURL = r.status_code == 200
validFiletype = ext.lower() in ['.csv', '.xls', '.xlsx']
validFiletype = ext.lower() in ['.csv', '.xls', '.xlsx', '.pdf']
return validURL, validFiletype
except:
print ("Error validating URL.")
Expand Down

0 comments on commit 8a29228

Please sign in to comment.