|
@@ -209,29 +209,29 @@ def response(resp):
|
|
parsed_url = urlparse(url, google_hostname)
|
|
parsed_url = urlparse(url, google_hostname)
|
|
|
|
|
|
|
|
|
|
- if ((parsed_url.netloc == google_hostname and parsed_url.path.startswith(maps_path))
|
|
+ if parsed_url.netloc == google_hostname:
|
|
- or (parsed_url.netloc.startswith(map_hostname_start))):
|
|
+
|
|
- x = result.xpath(map_near)
|
|
+ continue
|
|
- if len(x) > 0:
|
|
+
|
|
-
|
|
+
|
|
- results = results + parse_map_near(parsed_url, x, google_hostname)
|
|
+
|
|
- else:
|
|
+
|
|
-
|
|
+
|
|
- results = results + parse_map_detail(parsed_url, result, google_hostname)
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
- elif (parsed_url.netloc == google_hostname
|
|
+
|
|
- and parsed_url.path == search_path):
|
|
+
|
|
-
|
|
+
|
|
- pass
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
- elif (parsed_url.netloc == google_hostname
|
|
+
|
|
- and parsed_url.path == images_path):
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
- pass
|
|
+
|
|
|
|
|
|
else:
|
|
else:
|
|
|
|
|