You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Scrapy/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,8 +107,8 @@ The code below is for getting all the campaign links for a given start url (more
107
107
108
108
```
109
109
for href in response.xpath("//h2[contains(@class, 'title headline-font')]/a[contains(@class, 'campaign-link')]//@href"):
110
-
# add the scheme, eg http://
111
-
url = "https:" + href.extract()
110
+
# add the scheme, eg http://
111
+
url = "https:" + href.extract()
112
112
```
113
113
114
114
2. Exit Scrapy Shell using <b>exit()</b>. We do this while we should now understand the structure of where individual campaigns links are, we havent looked at where things are on individual campaigns.
0 commit comments