Skip to content

Commit a7dbcb6

Browse files
authored
Update README.md
1 parent 599edbf commit a7dbcb6

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

Scrapy/README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -156,38 +156,37 @@ response.xpath("//div[contains(@id, 'campaign-title')]/descendant::text()").extr
156156
amount Raised:
157157

158158
```
159-
159+
response.xpath("//span[contains(@class, 'stat')]/span[contains(@class, 'amount-raised')]/descendant::text()").extract()
160160
```
161161

162162
goal:
163163
```
164-
164+
response.xpath("//div[contains(@class, 'stats-primary with-goal')]//span[contains(@class, 'stats-label hidden-phone')]/text()").extract()
165165
```
166166

167167
currency type:
168-
169168
```
170-
169+
response.xpath("//div[contains(@class, 'stats-primary with-goal')]/@title").extract()
171170
```
172171

173172
campaign end date:
174173
```
175-
174+
response.xpath("//div[contains(@id, 'campaign-stats')]//span[contains(@class,'stats-label hidden-phone')]/span[@class='nowrap']/text()").extract()
176175
```
177176

178177
number of contributors:
179178
```
180-
179+
response.xpath("//div[contains(@class, 'stats-secondary with-goal')]//span[contains(@class, 'donation-count stat')]/text()").extract()
181180
```
182181

183182
story:
184183
```
185-
184+
response.xpath("//div[contains(@id, 'full-story')]/descendant::text()").extract()
186185
```
187186

188187
url:
189188
```
190-
189+
response.xpath("//meta[@property='og:url']/@content").extract()
191190
```
192191

193192
5. Exit scrapy shell by typing:

0 commit comments

Comments
 (0)