Skip to content

Commit

Permalink
Merge pull request #3 from tonypiazza/patch-1
Browse files Browse the repository at this point in the history
Updated to reflect most recent version of Python thanks to @tonypiazza
  • Loading branch information
Richard Harvey authored Jun 17, 2016
2 parents d4f4cac + fe5e3a5 commit aa8d3e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions getAWSdocs.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/python

from BeautifulSoup import BeautifulSoup
import urllib2
import urllib
import urlparse
import posixpath
import os
Expand Down Expand Up @@ -37,7 +37,7 @@ def get_pdfs(services):
url = base_url + uri
print "\nDownloading PDF's for : " + url + "\n"
# Parse the HTML page
html_page_doc = urllib2.urlopen(url)
html_page_doc = urllib.urlopen(url)
soup_doc = BeautifulSoup(html_page_doc)
# Get the A tag from the parsed page
for link in soup_doc.findAll('a'):
Expand All @@ -59,7 +59,7 @@ def get_pdfs(services):
print "Downloading : " + pdf
# Open the URL and retrieve data
try:
web = urllib2.urlopen(pdf)
web = urllib.urlopen(pdf)
print "Saving to : " + filename
# Save Data to disk
output = open(filename,'wb')
Expand Down

0 comments on commit aa8d3e2

Please sign in to comment.