Skip to content

Commit 4e31459

Browse files
committed
delete extra brackets
1 parent 6283913 commit 4e31459

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

importers/yelp.com/download_html.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ def download_location_detail_page(url):
5858
name = get_location_name_from_url(url)
5959
output_file_name = 'data/raw_html_'+ name +'.html'
6060
if not os.path.exists(output_file_name):
61-
print(('Downloading details for location: ' + name))
61+
print('Downloading details for location: ' + name)
6262
response = urllib.request.urlopen(url)
6363
html = response.read() # returns all the lines in a file.
6464
with open(output_file_name, 'wb') as html_file:
6565
html_file.write(html)
6666
html_file.close()
6767
else:
68-
print(('Already have details for location: ' + name))
68+
print('Already have details for location: ' + name)
6969

7070
return output_file_name
7171

@@ -101,7 +101,7 @@ def auto_page_download(number_of_pages, find_query, location):
101101
for i in range(number_of_pages):
102102
page_results = i * 10
103103
search_yelp = (yelp_base_url + 'search?find_desc=' + urllib.parse.quote(find_query) + '&find_loc='
104-
+ urllib.parse.quote(location) )
104+
+ urllib.parse.quote(location))
105105
if page_results > 0:
106106
search_yelp = search_yelp + '&start=' + str(page_results)
107107

@@ -112,7 +112,7 @@ def auto_page_download(number_of_pages, find_query, location):
112112
if not os.path.exists(filename):
113113
page = urllib.request.urlopen(search_yelp) # url specific to
114114
html = page.read() # returns all the lines in a file.
115-
print(('Generating HTML file: ' + str(filename)))
115+
print('Generating HTML file: ' + str(filename))
116116
with open(filename, 'wb') as html_file:
117117
html_file.write(html)
118118
else:

0 commit comments

Comments
 (0)