回答編集履歴
2
追記
test
CHANGED
@@ -34,6 +34,14 @@
|
|
34
34
|
|
35
35
|
urljoin(response.url, quote.css('a::attr(href)').extract_first()), # <-------------修正
|
36
36
|
|
37
|
+
'''
|
38
|
+
|
39
|
+
# 追記;下記でも可の模様。この場合冒頭のurljoinのimportは不要。
|
40
|
+
|
41
|
+
response.urljoin(quote.css('a::attr(href)').extract_first())
|
42
|
+
|
43
|
+
'''
|
44
|
+
|
37
45
|
callback=self.parse_detail,
|
38
46
|
|
39
47
|
meta={'item': item}
|
1
f
test
CHANGED
@@ -52,7 +52,7 @@
|
|
52
52
|
|
53
53
|
参考:
|
54
54
|
|
55
|
-
https://stackoverflow.com/questions/10798118/combining-base-url-with-resultant-href-in-scrapy
|
55
|
+
[https://stackoverflow.com/questions/10798118/combining-base-url-with-resultant-href-in-scrapy](https://stackoverflow.com/questions/10798118/combining-base-url-with-resultant-href-in-scrapy)
|
56
56
|
|
57
57
|
|
58
58
|
|