Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | · | 1 | ·6e1752b11018c80a1c1dfd6727bcbc60·709268·doc·optional·python-scrapy-doc_2.4.1-2+deb11u1_all.deb |
2 | ·39e5bfdc1c8b4d72e0b68b1fa3ea3d77·214112·python·optional·python3-scrapy_2.4.1-2+deb11u1_all.deb | 2 | ·39e5bfdc1c8b4d72e0b68b1fa3ea3d77·214112·python·optional·python3-scrapy_2.4.1-2+deb11u1_all.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2022-05-20·20:11:00.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2022-05-20·20:11:00.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····444 | 2 | -rw-r--r--···0········0········0·····4448·2022-05-20·20:11:00.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···7046 | 3 | -rw-r--r--···0········0········0···704628·2022-05-20·20:11:00.000000·data.tar.xz |
Offset 274, 15 lines modified | Offset 274, 15 lines modified | ||
274 | ··········</div> | 274 | ··········</div> |
275 | ··········<footer> | 275 | ··········<footer> |
276 | ··<hr/> | 276 | ··<hr/> |
277 | ··<div·role="contentinfo"> | 277 | ··<div·role="contentinfo"> |
278 | ····<p> | 278 | ····<p> |
279 | ········©·Copyright·2008–202 | 279 | ········©·Copyright·2008–2024,·Scrapy·developers. |
280 | ······<span·class="lastupdated"> | 280 | ······<span·class="lastupdated"> |
281 | ········Last·updated·on·May·20,·2022. | 281 | ········Last·updated·on·May·20,·2022. |
282 | ······</span> | 282 | ······</span> |
283 | ····</p> | 283 | ····</p> |
284 | ··</div> | 284 | ··</div> |
285 | ···· | 285 | ···· |
Offset 90, 9 lines modified | Offset 90, 9 lines modified | ||
90 | *****·Alternative·method·using·tox¶·***** | 90 | *****·Alternative·method·using·tox¶·***** |
91 | To·compile·the·documentation·to·HTML·run·the·following·command: | 91 | To·compile·the·documentation·to·HTML·run·the·following·command: |
92 | tox·-e·docs | 92 | tox·-e·docs |
93 | Documentation·will·be·generated·(in·HTML·format)·inside·the·.tox/docs/tmp/html | 93 | Documentation·will·be·generated·(in·HTML·format)·inside·the·.tox/docs/tmp/html |
94 | dir. | 94 | dir. |
95 | =============================================================================== | 95 | =============================================================================== |
96 | ©·Copyright·2008â202 | 96 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
97 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 97 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 284, 15 lines modified | Offset 284, 15 lines modified | ||
284 | ··········</div> | 284 | ··········</div> |
285 | ··········<footer> | 285 | ··········<footer> |
286 | ··<hr/> | 286 | ··<hr/> |
287 | ··<div·role="contentinfo"> | 287 | ··<div·role="contentinfo"> |
288 | ····<p> | 288 | ····<p> |
289 | ········©·Copyright·2008–202 | 289 | ········©·Copyright·2008–2024,·Scrapy·developers. |
290 | ······<span·class="lastupdated"> | 290 | ······<span·class="lastupdated"> |
291 | ········Last·updated·on·May·20,·2022. | 291 | ········Last·updated·on·May·20,·2022. |
292 | ······</span> | 292 | ······</span> |
293 | ····</p> | 293 | ····</p> |
294 | ··</div> | 294 | ··</div> |
295 | ···· | 295 | ···· |
Offset 128, 9 lines modified | Offset 128, 9 lines modified | ||
128 | ····*·scrapy.statscollectors | 128 | ····*·scrapy.statscollectors |
129 | ····*·scrapy.utils.curl | 129 | ····*·scrapy.utils.curl |
130 | ····*·scrapy.utils.log | 130 | ····*·scrapy.utils.log |
131 | ····*·scrapy.utils.reactor | 131 | ····*·scrapy.utils.reactor |
132 | ····*·scrapy.utils.trackref | 132 | ····*·scrapy.utils.trackref |
133 | =============================================================================== | 133 | =============================================================================== |
134 | ©·Copyright·2008â202 | 134 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
135 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 135 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 483, 15 lines modified | Offset 483, 15 lines modified | ||
483 | ··········</div> | 483 | ··········</div> |
484 | ··········<footer> | 484 | ··········<footer> |
485 | ··<hr/> | 485 | ··<hr/> |
486 | ··<div·role="contentinfo"> | 486 | ··<div·role="contentinfo"> |
487 | ····<p> | 487 | ····<p> |
488 | ········©·Copyright·2008–202 | 488 | ········©·Copyright·2008–2024,·Scrapy·developers. |
489 | ······<span·class="lastupdated"> | 489 | ······<span·class="lastupdated"> |
490 | ········Last·updated·on·May·20,·2022. | 490 | ········Last·updated·on·May·20,·2022. |
491 | ······</span> | 491 | ······</span> |
492 | ····</p> | 492 | ····</p> |
493 | ··</div> | 493 | ··</div> |
494 | ···· | 494 | ···· |
Offset 346, 9 lines modified | Offset 346, 9 lines modified | ||
346 | ········return·obj.asdict() | 346 | ········return·obj.asdict() |
347 | ····elif·is_item(obj): | 347 | ····elif·is_item(obj): |
348 | ········return·ItemAdapter(obj).asdict() | 348 | ········return·ItemAdapter(obj).asdict() |
349 | ····else: | 349 | ····else: |
350 | ········return·obj | 350 | ········return·obj |
351 | =============================================================================== | 351 | =============================================================================== |
352 | ©·Copyright·2008â202 | 352 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
353 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 353 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 333, 15 lines modified | Offset 333, 15 lines modified | ||
333 | ··········</div> | 333 | ··········</div> |
334 | ··········<footer> | 334 | ··········<footer> |
335 | ··<hr/> | 335 | ··<hr/> |
336 | ··<div·role="contentinfo"> | 336 | ··<div·role="contentinfo"> |
337 | ····<p> | 337 | ····<p> |
338 | ········©·Copyright·2008–202 | 338 | ········©·Copyright·2008–2024,·Scrapy·developers. |
339 | ······<span·class="lastupdated"> | 339 | ······<span·class="lastupdated"> |
340 | ········Last·updated·on·May·20,·2022. | 340 | ········Last·updated·on·May·20,·2022. |
341 | ······</span> | 341 | ······</span> |
342 | ····</p> | 342 | ····</p> |
343 | ··</div> | 343 | ··</div> |
344 | ···· | 344 | ···· |
Offset 188, 9 lines modified | Offset 188, 9 lines modified | ||
188 | (item_class.__name__,·field_name)) | 188 | (item_class.__name__,·field_name)) |
189 | ····elif·issubclass(item_class,·dict): | 189 | ····elif·issubclass(item_class,·dict): |
190 | ········return·MappingProxyType({}) | 190 | ········return·MappingProxyType({}) |
191 | ····else: | 191 | ····else: |
192 | ········raise·TypeError("%s·is·not·a·valid·item·class"·%·(item_class,)) | 192 | ········raise·TypeError("%s·is·not·a·valid·item·class"·%·(item_class,)) |
193 | =============================================================================== | 193 | =============================================================================== |
194 | ©·Copyright·2008â202 | 194 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
195 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 195 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 454, 15 lines modified | Offset 454, 15 lines modified | ||
454 | ··········</div> | 454 | ··········</div> |
455 | ··········<footer> | 455 | ··········<footer> |
456 | ··<hr/> | 456 | ··<hr/> |
457 | ··<div·role="contentinfo"> | 457 | ··<div·role="contentinfo"> |
458 | ····<p> | 458 | ····<p> |
459 | ········©·Copyright·2008–202 | 459 | ········©·Copyright·2008–2024,·Scrapy·developers. |
460 | ······<span·class="lastupdated"> | 460 | ······<span·class="lastupdated"> |
461 | ········Last·updated·on·May·20,·2022. | 461 | ········Last·updated·on·May·20,·2022. |
462 | ······</span> | 462 | ······</span> |
463 | ····</p> | 463 | ····</p> |
464 | ··</div> | 464 | ··</div> |
465 | ···· | 465 | ···· |
Offset 307, 9 lines modified | Offset 307, 9 lines modified | ||
307 | ····def·__init__(self,·separator='·'): | 307 | ····def·__init__(self,·separator='·'): |
308 | ········self.separator·=·separator | 308 | ········self.separator·=·separator |
309 | ····def·__call__(self,·values): | 309 | ····def·__call__(self,·values): |
310 | ········return·self.separator.join(values) | 310 | ········return·self.separator.join(values) |
311 | =============================================================================== | 311 | =============================================================================== |
312 | ©·Copyright·2008â202 | 312 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
313 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 313 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 661, 15 lines modified | Offset 661, 15 lines modified | ||
661 | ··········</div> | 661 | ··········</div> |
662 | ··········<footer> | 662 | ··········<footer> |
663 | ··<hr/> | 663 | ··<hr/> |
664 | ··<div·role="contentinfo"> | 664 | ··<div·role="contentinfo"> |
665 | ····<p> | 665 | ····<p> |
666 | ········©·Copyright·2008–202 | 666 | ········©·Copyright·2008–2024,·Scrapy·developers. |
667 | ······<span·class="lastupdated"> | 667 | ······<span·class="lastupdated"> |
668 | ········Last·updated·on·May·20,·2022. | 668 | ········Last·updated·on·May·20,·2022. |
669 | ······</span> | 669 | ······</span> |
670 | ····</p> | 670 | ····</p> |
671 | ··</div> | 671 | ··</div> |
672 | ···· | 672 | ···· |
Offset 533, 9 lines modified | Offset 533, 9 lines modified | ||
533 | ····def·_get_cssvalues(self,·csss,·**kw): | 533 | ····def·_get_cssvalues(self,·csss,·**kw): |
534 | ········self._check_selector_method() | 534 | ········self._check_selector_method() |
535 | ········csss·=·arg_to_iter(csss) | 535 | ········csss·=·arg_to_iter(csss) |
536 | ········return·flatten(self.selector.css(css).getall()·for·css·in·csss) | 536 | ········return·flatten(self.selector.css(css).getall()·for·css·in·csss) |
537 | =============================================================================== | 537 | =============================================================================== |
538 | ©·Copyright·2008â202 | 538 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
539 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 539 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 624, 15 lines modified | Offset 624, 15 lines modified | ||
624 | ··········</div> | 624 | ··········</div> |
625 | ··········<footer> | 625 | ··········<footer> |
626 | ··<hr/> | 626 | ··<hr/> |
627 | ··<div·role="contentinfo"> | 627 | ··<div·role="contentinfo"> |
628 | ····<p> | 628 | ····<p> |
629 | ········©·Copyright·2008–202 | 629 | ········©·Copyright·2008–2024,·Scrapy·developers. |
630 | ······<span·class="lastupdated"> | 630 | ······<span·class="lastupdated"> |
631 | ········Last·updated·on·May·20,·2022. | 631 | ········Last·updated·on·May·20,·2022. |
632 | ······</span> | 632 | ······</span> |
633 | ····</p> | 633 | ····</p> |
634 | ··</div> | 634 | ··</div> |
635 | ···· | 635 | ···· |
Offset 498, 9 lines modified | Offset 498, 9 lines modified | ||
498 | ····def·__str__(self): | 498 | ····def·__str__(self): |
499 | ········data·=·repr(shorten(self.get(),·width=40)) | 499 | ········data·=·repr(shorten(self.get(),·width=40)) |
500 | ········return·"<%s·xpath=%r·data=%s>"·%·(type(self).__name__,·self._expr, | 500 | ········return·"<%s·xpath=%r·data=%s>"·%·(type(self).__name__,·self._expr, |
501 | data) | 501 | data) |
502 | ····__repr__·=·__str__ | 502 | ····__repr__·=·__str__ |
503 | =============================================================================== | 503 | =============================================================================== |
504 | ©·Copyright·2008â202 | 504 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
505 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 505 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 280, 15 lines modified | Offset 280, 15 lines modified | ||
280 | ··········</div> | 280 | ··········</div> |
281 | ··········<footer> | 281 | ··········<footer> |
282 | ··<hr/> | 282 | ··<hr/> |
283 | ··<div·role="contentinfo"> | 283 | ··<div·role="contentinfo"> |
284 | ····<p> | 284 | ····<p> |
285 | ········©·Copyright·2008–202 | 285 | ········©·Copyright·2008–2024,·Scrapy·developers. |
286 | ······<span·class="lastupdated"> | 286 | ······<span·class="lastupdated"> |
287 | ········Last·updated·on·May·20,·2022. | 287 | ········Last·updated·on·May·20,·2022. |
288 | ······</span> | 288 | ······</span> |
289 | ····</p> | 289 | ····</p> |
290 | ··</div> | 290 | ··</div> |
291 | ···· | 291 | ···· |
Offset 125, 9 lines modified | Offset 125, 9 lines modified | ||
125 | ····node_cls·=·replace_html5_whitespaces('·',·node_cls) | 125 | ····node_cls·=·replace_html5_whitespaces('·',·node_cls) |
126 | ····for·cls·in·classes: | 126 | ····for·cls·in·classes: |
127 | ········if·'·'·+·cls·+·'·'·not·in·node_cls: | 127 | ········if·'·'·+·cls·+·'·'·not·in·node_cls: |
128 | ············return·False | 128 | ············return·False |
129 | ····return·True | 129 | ····return·True |
130 | =============================================================================== | 130 | =============================================================================== |
131 | ©·Copyright·2008â202 | 131 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
132 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 132 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 329, 15 lines modified | Offset 329, 15 lines modified | ||
329 | ··········</div> | 329 | ··········</div> |
330 | ··········<footer> | 330 | ··········<footer> |
331 | ··<hr/> | 331 | ··<hr/> |
332 | ··<div·role="contentinfo"> | 332 | ··<div·role="contentinfo"> |
333 | ····<p> | 333 | ····<p> |
334 | ········©·Copyright·2008–202 | 334 | ········©·Copyright·2008–2024,·Scrapy·developers. |
335 | ······<span·class="lastupdated"> | 335 | ······<span·class="lastupdated"> |
336 | ········Last·updated·on·May·20,·2022. | 336 | ········Last·updated·on·May·20,·2022. |
337 | ······</span> | 337 | ······</span> |
338 | ····</p> | 338 | ····</p> |
339 | ··</div> | 339 | ··</div> |
340 | ···· | 340 | ···· |
Offset 177, 9 lines modified | Offset 177, 9 lines modified | ||
177 | ················missing·=·[arg·for·arg·in·self.args·if·arg·not·in·ItemAdapter | 177 | ················missing·=·[arg·for·arg·in·self.args·if·arg·not·in·ItemAdapter |
178 | (x)] | 178 | (x)] |
179 | ················if·missing: | 179 | ················if·missing: |
180 | ····················missing_fields·=·",·".join(missing) | 180 | ····················missing_fields·=·",·".join(missing) |
181 | ····················raise·ContractFail(f"Missing·fields:·{missing_fields}") | 181 | ····················raise·ContractFail(f"Missing·fields:·{missing_fields}") |
182 | =============================================================================== | 182 | =============================================================================== |
183 | ©·Copyright·2008â202 | 183 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
184 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 184 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 398, 15 lines modified | Offset 398, 15 lines modified | ||
398 | ··········</div> | 398 | ··········</div> |
399 | ··········<footer> | 399 | ··········<footer> |
400 | ··<hr/> | 400 | ··<hr/> |
401 | ··<div·role="contentinfo"> | 401 | ··<div·role="contentinfo"> |
402 | ····<p> | 402 | ····<p> |
403 | ········©·Copyright·2008–202 | 403 | ········©·Copyright·2008–2024,·Scrapy·developers. |
404 | ······<span·class="lastupdated"> | 404 | ······<span·class="lastupdated"> |
405 | ········Last·updated·on·May·20,·2022. | 405 | ········Last·updated·on·May·20,·2022. |
406 | ······</span> | 406 | ······</span> |
407 | ····</p> | 407 | ····</p> |
408 | ··</div> | 408 | ··</div> |
409 | ···· | 409 | ···· |
Offset 245, 9 lines modified | Offset 245, 9 lines modified | ||
245 | ············return·f"[{spider}]·{method.__name__}·({desc})" | 245 | ············return·f"[{spider}]·{method.__name__}·({desc})" |
246 | ····name·=·f'{spider}_{method.__name__}' | 246 | ····name·=·f'{spider}_{method.__name__}' |
247 | ····setattr(ContractTestCase,·name,·lambda·x:·x) | 247 | ····setattr(ContractTestCase,·name,·lambda·x:·x) |
248 | ····return·ContractTestCase(name) | 248 | ····return·ContractTestCase(name) |
249 | =============================================================================== | 249 | =============================================================================== |
250 | ©·Copyright·2008â202 | 250 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
251 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 251 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 563, 15 lines modified | Offset 563, 15 lines modified | ||
563 | ··········</div> | 563 | ··········</div> |
564 | ··········<footer> | 564 | ··········<footer> |
565 | ··<hr/> | 565 | ··<hr/> |
566 | ··<div·role="contentinfo"> | 566 | ··<div·role="contentinfo"> |
567 | ····<p> | 567 | ····<p> |
568 | ········©·Copyright·2008–202 | 568 | ········©·Copyright·2008–2024,·Scrapy·developers. |
569 | ······<span·class="lastupdated"> | 569 | ······<span·class="lastupdated"> |
570 | ········Last·updated·on·May·20,·2022. | 570 | ········Last·updated·on·May·20,·2022. |
571 | ······</span> | 571 | ······</span> |
572 | ····</p> | 572 | ····</p> |
573 | ··</div> | 573 | ··</div> |
574 | ···· | 574 | ···· |
Offset 424, 9 lines modified | Offset 424, 9 lines modified | ||
424 | ····def·_handle_twisted_reactor(self): | 424 | ····def·_handle_twisted_reactor(self): |
425 | ········if·self.settings.get("TWISTED_REACTOR"): | 425 | ········if·self.settings.get("TWISTED_REACTOR"): |
426 | ············install_reactor(self.settings["TWISTED_REACTOR"],·self.settings | 426 | ············install_reactor(self.settings["TWISTED_REACTOR"],·self.settings |
427 | ["ASYNCIO_EVENT_LOOP"]) | 427 | ["ASYNCIO_EVENT_LOOP"]) |
428 | ········super()._handle_twisted_reactor() | 428 | ········super()._handle_twisted_reactor() |
429 | =============================================================================== | 429 | =============================================================================== |
430 | ©·Copyright·2008â202 | 430 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
431 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 431 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 312, 15 lines modified | Offset 312, 15 lines modified | ||
312 | ··········</div> | 312 | ··········</div> |
313 | ··········<footer> | 313 | ··········<footer> |
314 | ··<hr/> | 314 | ··<hr/> |
315 | ··<div·role="contentinfo"> | 315 | ··<div·role="contentinfo"> |
316 | ····<p> | 316 | ····<p> |
317 | ········©·Copyright·2008–202 | 317 | ········©·Copyright·2008–2024,·Scrapy·developers. |
318 | ······<span·class="lastupdated"> | 318 | ······<span·class="lastupdated"> |
319 | ········Last·updated·on·May·20,·2022. | 319 | ········Last·updated·on·May·20,·2022. |
320 | ······</span> | 320 | ······</span> |
321 | ····</p> | 321 | ····</p> |
322 | ··</div> | 322 | ··</div> |
323 | ···· | 323 | ···· |
Offset 164, 9 lines modified | Offset 164, 9 lines modified | ||
164 | ····text·=·html.remove_tags_with_content(text,·('script',·'noscript')) | 164 | ····text·=·html.remove_tags_with_content(text,·('script',·'noscript')) |
165 | ····text·=·html.replace_entities(text) | 165 | ····text·=·html.replace_entities(text) |
166 | ····text·=·html.remove_comments(text) | 166 | ····text·=·html.remove_comments(text) |
167 | ····return·_ajax_crawlable_re.search(text)·is·not·None | 167 | ····return·_ajax_crawlable_re.search(text)·is·not·None |
168 | =============================================================================== | 168 | =============================================================================== |
169 | ©·Copyright·2008â202 | 169 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
170 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 170 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 329, 15 lines modified | Offset 329, 15 lines modified | ||
329 | ··········</div> | 329 | ··········</div> |
330 | ··········<footer> | 330 | ··········<footer> |
331 | ··<hr/> | 331 | ··<hr/> |
332 | ··<div·role="contentinfo"> | 332 | ··<div·role="contentinfo"> |
333 | ····<p> | 333 | ····<p> |
334 | ········©·Copyright·2008–202 | 334 | ········©·Copyright·2008–2024,·Scrapy·developers. |
335 | ······<span·class="lastupdated"> | 335 | ······<span·class="lastupdated"> |
336 | ········Last·updated·on·May·20,·2022. | 336 | ········Last·updated·on·May·20,·2022. |
337 | ······</span> | 337 | ······</span> |
338 | ····</p> | 338 | ····</p> |
339 | ··</div> | 339 | ··</div> |
340 | ···· | 340 | ···· |
Offset 178, 9 lines modified | Offset 178, 9 lines modified | ||
178 | ············cookies·=·request.cookies | 178 | ············cookies·=·request.cookies |
179 | ········formatted·=·filter(None,·(self._format_cookie(c,·request)·for·c·in | 179 | ········formatted·=·filter(None,·(self._format_cookie(c,·request)·for·c·in |
180 | cookies)) | 180 | cookies)) |
181 | ········response·=·Response(request.url,·headers={"Set-Cookie":·formatted}) | 181 | ········response·=·Response(request.url,·headers={"Set-Cookie":·formatted}) |
182 | ········return·jar.make_cookies(response,·request) | 182 | ········return·jar.make_cookies(response,·request) |
183 | =============================================================================== | 183 | =============================================================================== |
184 | ©·Copyright·2008â202 | 184 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
185 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 185 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 241, 15 lines modified | Offset 241, 15 lines modified | ||
241 | ··········</div> | 241 | ··········</div> |
242 | ··········<footer> | 242 | ··········<footer> |
243 | ··<hr/> | 243 | ··<hr/> |
244 | ··<div·role="contentinfo"> | 244 | ··<div·role="contentinfo"> |
245 | ····<p> | 245 | ····<p> |
246 | ········©·Copyright·2008–202 | 246 | ········©·Copyright·2008–2024,·Scrapy·developers. |
247 | ······<span·class="lastupdated"> | 247 | ······<span·class="lastupdated"> |
248 | ········Last·updated·on·May·20,·2022. | 248 | ········Last·updated·on·May·20,·2022. |
249 | ······</span> | 249 | ······</span> |
250 | ····</p> | 250 | ····</p> |
251 | ··</div> | 251 | ··</div> |
252 | ···· | 252 | ···· |
Offset 85, 9 lines modified | Offset 85, 9 lines modified | ||
85 | ········return·cls(headers.items()) | 85 | ········return·cls(headers.items()) |
86 | ····def·process_request(self,·request,·spider): | 86 | ····def·process_request(self,·request,·spider): |
87 | ········for·k,·v·in·self._headers: | 87 | ········for·k,·v·in·self._headers: |
88 | ············request.headers.setdefault(k,·v) | 88 | ············request.headers.setdefault(k,·v) |
89 | =============================================================================== | 89 | =============================================================================== |
90 | ©·Copyright·2008â202 | 90 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
91 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 91 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 245, 15 lines modified | Offset 245, 15 lines modified | ||
245 | ··········</div> | 245 | ··········</div> |
246 | ··········<footer> | 246 | ··········<footer> |
247 | ··<hr/> | 247 | ··<hr/> |
248 | ··<div·role="contentinfo"> | 248 | ··<div·role="contentinfo"> |
249 | ····<p> | 249 | ····<p> |
250 | ········©·Copyright·2008–202 | 250 | ········©·Copyright·2008–2024,·Scrapy·developers. |
251 | ······<span·class="lastupdated"> | 251 | ······<span·class="lastupdated"> |
252 | ········Last·updated·on·May·20,·2022. | 252 | ········Last·updated·on·May·20,·2022. |
253 | ······</span> | 253 | ······</span> |
254 | ····</p> | 254 | ····</p> |
255 | ··</div> | 255 | ··</div> |
256 | ···· | 256 | ···· |
Offset 88, 9 lines modified | Offset 88, 9 lines modified | ||
88 | ········self._timeout·=·getattr(spider,·'download_timeout',·self._timeout) | 88 | ········self._timeout·=·getattr(spider,·'download_timeout',·self._timeout) |
89 | ····def·process_request(self,·request,·spider): | 89 | ····def·process_request(self,·request,·spider): |
90 | ········if·self._timeout: | 90 | ········if·self._timeout: |
91 | ············request.meta.setdefault('download_timeout',·self._timeout) | 91 | ············request.meta.setdefault('download_timeout',·self._timeout) |
92 | =============================================================================== | 92 | =============================================================================== |
93 | ©·Copyright·2008â202 | 93 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
94 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 94 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 269, 15 lines modified | Offset 269, 15 lines modified | ||
269 | ··········</div> | 269 | ··········</div> |
270 | ··········<footer> | 270 | ··········<footer> |
271 | ··<hr/> | 271 | ··<hr/> |
272 | ··<div·role="contentinfo"> | 272 | ··<div·role="contentinfo"> |
273 | ····<p> | 273 | ····<p> |
274 | ········©·Copyright·2008–202 | 274 | ········©·Copyright·2008–2024,·Scrapy·developers. |
275 | ······<span·class="lastupdated"> | 275 | ······<span·class="lastupdated"> |
276 | ········Last·updated·on·May·20,·2022. | 276 | ········Last·updated·on·May·20,·2022. |
277 | ······</span> | 277 | ······</span> |
278 | ····</p> | 278 | ····</p> |
279 | ··</div> | 279 | ··</div> |
280 | ···· | 280 | ···· |
Offset 116, 9 lines modified | Offset 116, 9 lines modified | ||
116 | ················self.domain·=·domain | 116 | ················self.domain·=·domain |
117 | ················self.domain_unset·=·False | 117 | ················self.domain_unset·=·False |
118 | ············if·not·self.domain·or·url_is_from_any_domain(request.url, | 118 | ············if·not·self.domain·or·url_is_from_any_domain(request.url, |
119 | [self.domain]): | 119 | [self.domain]): |
120 | ················request.headers[b'Authorization']·=·auth | 120 | ················request.headers[b'Authorization']·=·auth |
121 | =============================================================================== | 121 | =============================================================================== |
122 | ©·Copyright·2008â202 | 122 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
123 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 123 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 352, 15 lines modified | Offset 352, 15 lines modified | ||
352 | ··········</div> | 352 | ··········</div> |
353 | ··········<footer> | 353 | ··········<footer> |
354 | ··<hr/> | 354 | ··<hr/> |
355 | ··<div·role="contentinfo"> | 355 | ··<div·role="contentinfo"> |
356 | ····<p> | 356 | ····<p> |
357 | ········©·Copyright·2008–202 | 357 | ········©·Copyright·2008–2024,·Scrapy·developers. |
358 | ······<span·class="lastupdated"> | 358 | ······<span·class="lastupdated"> |
359 | ········Last·updated·on·May·20,·2022. | 359 | ········Last·updated·on·May·20,·2022. |
360 | ······</span> | 360 | ······</span> |
361 | ····</p> | 361 | ····</p> |
362 | ··</div> | 362 | ··</div> |
363 | ···· | 363 | ···· |
Offset 204, 9 lines modified | Offset 204, 9 lines modified | ||
204 | ········if·self.policy.should_cache_response(response,·request): | 204 | ········if·self.policy.should_cache_response(response,·request): |
205 | ············self.stats.inc_value('httpcache/store',·spider=spider) | 205 | ············self.stats.inc_value('httpcache/store',·spider=spider) |
206 | ············self.storage.store_response(spider,·request,·response) | 206 | ············self.storage.store_response(spider,·request,·response) |
207 | ········else: | 207 | ········else: |
208 | ············self.stats.inc_value('httpcache/uncacheable',·spider=spider) | 208 | ············self.stats.inc_value('httpcache/uncacheable',·spider=spider) |
209 | =============================================================================== | 209 | =============================================================================== |
210 | ©·Copyright·2008â202 | 210 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
211 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 211 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 301, 15 lines modified | Offset 301, 15 lines modified | ||
301 | ··········</div> | 301 | ··········</div> |
302 | ··········<footer> | 302 | ··········<footer> |
303 | ··<hr/> | 303 | ··<hr/> |
304 | ··<div·role="contentinfo"> | 304 | ··<div·role="contentinfo"> |
305 | ····<p> | 305 | ····<p> |
306 | ········©·Copyright·2008–202 | 306 | ········©·Copyright·2008–2024,·Scrapy·developers. |
307 | ······<span·class="lastupdated"> | 307 | ······<span·class="lastupdated"> |
308 | ········Last·updated·on·May·20,·2022. | 308 | ········Last·updated·on·May·20,·2022. |
309 | ······</span> | 309 | ······</span> |
310 | ····</p> | 310 | ····</p> |
311 | ··</div> | 311 | ··</div> |
312 | ···· | 312 | ···· |
Offset 148, 9 lines modified | Offset 148, 9 lines modified | ||
148 | ············#·where·there·is·content·size·data·embedded·in·the·frame | 148 | ············#·where·there·is·content·size·data·embedded·in·the·frame |
149 | ············reader·=·zstandard.ZstdDecompressor().stream_reader(io.BytesIO | 149 | ············reader·=·zstandard.ZstdDecompressor().stream_reader(io.BytesIO |
150 | (body)) | 150 | (body)) |
151 | ············body·=·reader.read() | 151 | ············body·=·reader.read() |
152 | ········return·body | 152 | ········return·body |
153 | =============================================================================== | 153 | =============================================================================== |
154 | ©·Copyright·2008â202 | 154 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
155 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 155 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 294, 15 lines modified | Offset 294, 15 lines modified | ||
294 | ··········</div> | 294 | ··········</div> |
295 | ··········<footer> | 295 | ··········<footer> |
296 | ··<hr/> | 296 | ··<hr/> |
297 | ··<div·role="contentinfo"> | 297 | ··<div·role="contentinfo"> |
298 | ····<p> | 298 | ····<p> |
299 | ········©·Copyright·2008–202 | 299 | ········©·Copyright·2008–2024,·Scrapy·developers. |
300 | ······<span·class="lastupdated"> | 300 | ······<span·class="lastupdated"> |
301 | ········Last·updated·on·May·20,·2022. | 301 | ········Last·updated·on·May·20,·2022. |
302 | ······</span> | 302 | ······</span> |
303 | ····</p> | 303 | ····</p> |
304 | ··</div> | 304 | ··</div> |
305 | ···· | 305 | ···· |
Offset 138, 9 lines modified | Offset 138, 9 lines modified | ||
138 | ····def·_set_proxy(self,·request,·scheme): | 138 | ····def·_set_proxy(self,·request,·scheme): |
139 | ········creds,·proxy·=·self.proxies[scheme] | 139 | ········creds,·proxy·=·self.proxies[scheme] |
140 | ········request.meta['proxy']·=·proxy | 140 | ········request.meta['proxy']·=·proxy |
141 | ········if·creds: | 141 | ········if·creds: |
142 | ············request.headers['Proxy-Authorization']·=·b'Basic·'·+·creds | 142 | ············request.headers['Proxy-Authorization']·=·b'Basic·'·+·creds |
143 | =============================================================================== | 143 | =============================================================================== |
144 | ©·Copyright·2008â202 | 144 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
145 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 145 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 352, 15 lines modified | Offset 352, 15 lines modified | ||
352 | ··········</div> | 352 | ··········</div> |
353 | ··········<footer> | 353 | ··········<footer> |
354 | ··<hr/> | 354 | ··<hr/> |
355 | ··<div·role="contentinfo"> | 355 | ··<div·role="contentinfo"> |
356 | ····<p> | 356 | ····<p> |
357 | ········©·Copyright·2008–202 | 357 | ········©·Copyright·2008–2024,·Scrapy·developers. |
358 | ······<span·class="lastupdated"> | 358 | ······<span·class="lastupdated"> |
359 | ········Last·updated·on·May·20,·2022. | 359 | ········Last·updated·on·May·20,·2022. |
360 | ······</span> | 360 | ······</span> |
361 | ····</p> | 361 | ····</p> |
362 | ··</div> | 362 | ··</div> |
363 | ···· | 363 | ···· |
Offset 202, 9 lines modified | Offset 202, 9 lines modified | ||
202 | ········if·url·and·interval·<·self._maxdelay: | 202 | ········if·url·and·interval·<·self._maxdelay: |
203 | ············redirected·=·self._redirect_request_using_get(request,·url) | 203 | ············redirected·=·self._redirect_request_using_get(request,·url) |
204 | ············return·self._redirect(redirected,·request,·spider,·'meta·refresh') | 204 | ············return·self._redirect(redirected,·request,·spider,·'meta·refresh') |
205 | ········return·response | 205 | ········return·response |
206 | =============================================================================== | 206 | =============================================================================== |
207 | ©·Copyright·2008â202 | 207 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
208 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 208 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 316, 15 lines modified | Offset 316, 15 lines modified | ||
316 | ··········</div> | 316 | ··········</div> |
317 | ··········<footer> | 317 | ··········<footer> |
318 | ··<hr/> | 318 | ··<hr/> |
319 | ··<div·role="contentinfo"> | 319 | ··<div·role="contentinfo"> |
320 | ····<p> | 320 | ····<p> |
321 | ········©·Copyright·2008–202 | 321 | ········©·Copyright·2008–2024,·Scrapy·developers. |
322 | ······<span·class="lastupdated"> | 322 | ······<span·class="lastupdated"> |
323 | ········Last·updated·on·May·20,·2022. | 323 | ········Last·updated·on·May·20,·2022. |
324 | ······</span> | 324 | ······</span> |
325 | ····</p> | 325 | ····</p> |
326 | ··</div> | 326 | ··</div> |
327 | ···· | 327 | ···· |
Offset 166, 9 lines modified | Offset 166, 9 lines modified | ||
166 | ············logger.error("Gave·up·retrying·%(request)s·(failed·%(retries)d | 166 | ············logger.error("Gave·up·retrying·%(request)s·(failed·%(retries)d |
167 | times):·%(reason)s", | 167 | times):·%(reason)s", |
168 | ·························{'request':·request,·'retries':·retries,·'reason': | 168 | ·························{'request':·request,·'retries':·retries,·'reason': |
169 | reason}, | 169 | reason}, |
170 | ·························extra={'spider':·spider}) | 170 | ·························extra={'spider':·spider}) |
171 | =============================================================================== | 171 | =============================================================================== |
172 | ©·Copyright·2008â202 | 172 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
173 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 173 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 328, 15 lines modified | Offset 328, 15 lines modified | ||
328 | ··········</div> | 328 | ··········</div> |
329 | ··········<footer> | 329 | ··········<footer> |
330 | ··<hr/> | 330 | ··<hr/> |
331 | ··<div·role="contentinfo"> | 331 | ··<div·role="contentinfo"> |
332 | ····<p> | 332 | ····<p> |
333 | ········©·Copyright·2008–202 | 333 | ········©·Copyright·2008–2024,·Scrapy·developers. |
334 | ······<span·class="lastupdated"> | 334 | ······<span·class="lastupdated"> |
335 | ········Last·updated·on·May·20,·2022. | 335 | ········Last·updated·on·May·20,·2022. |
336 | ······</span> | 336 | ······</span> |
337 | ····</p> | 337 | ····</p> |
338 | ··</div> | 338 | ··</div> |
339 | ···· | 339 | ···· |
Offset 176, 9 lines modified | Offset 176, 9 lines modified | ||
176 | ············key·=·f'robotstxt/exception_count/{failure.type}' | 176 | ············key·=·f'robotstxt/exception_count/{failure.type}' |
177 | ············self.crawler.stats.inc_value(key) | 177 | ············self.crawler.stats.inc_value(key) |
178 | ········rp_dfd·=·self._parsers[netloc] | 178 | ········rp_dfd·=·self._parsers[netloc] |
179 | ········self._parsers[netloc]·=·None | 179 | ········self._parsers[netloc]·=·None |
180 | ········rp_dfd.callback(None) | 180 | ········rp_dfd.callback(None) |
181 | =============================================================================== | 181 | =============================================================================== |
182 | ©·Copyright·2008â202 | 182 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
183 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 183 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 253, 15 lines modified | Offset 253, 15 lines modified | ||
253 | ··········</div> | 253 | ··········</div> |
254 | ··········<footer> | 254 | ··········<footer> |
255 | ··<hr/> | 255 | ··<hr/> |
256 | ··<div·role="contentinfo"> | 256 | ··<div·role="contentinfo"> |
257 | ····<p> | 257 | ····<p> |
258 | ········©·Copyright·2008–202 | 258 | ········©·Copyright·2008–2024,·Scrapy·developers. |
259 | ······<span·class="lastupdated"> | 259 | ······<span·class="lastupdated"> |
260 | ········Last·updated·on·May·20,·2022. | 260 | ········Last·updated·on·May·20,·2022. |
261 | ······</span> | 261 | ······</span> |
262 | ····</p> | 262 | ····</p> |
263 | ··</div> | 263 | ··</div> |
264 | ···· | 264 | ···· |
Offset 100, 9 lines modified | Offset 100, 9 lines modified | ||
100 | ····def·process_exception(self,·request,·exception,·spider): | 100 | ····def·process_exception(self,·request,·exception,·spider): |
101 | ········ex_class·=·global_object_name(exception.__class__) | 101 | ········ex_class·=·global_object_name(exception.__class__) |
102 | ········self.stats.inc_value('downloader/exception_count',·spider=spider) | 102 | ········self.stats.inc_value('downloader/exception_count',·spider=spider) |
103 | ········self.stats.inc_value(f'downloader/exception_type_count/{ex_class}', | 103 | ········self.stats.inc_value(f'downloader/exception_type_count/{ex_class}', |
104 | spider=spider) | 104 | spider=spider) |
105 | =============================================================================== | 105 | =============================================================================== |
106 | ©·Copyright·2008â202 | 106 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
107 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 107 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 242, 15 lines modified | Offset 242, 15 lines modified | ||
242 | ··········</div> | 242 | ··········</div> |
243 | ··········<footer> | 243 | ··········<footer> |
244 | ··<hr/> | 244 | ··<hr/> |
245 | ··<div·role="contentinfo"> | 245 | ··<div·role="contentinfo"> |
246 | ····<p> | 246 | ····<p> |
247 | ········©·Copyright·2008–202 | 247 | ········©·Copyright·2008–2024,·Scrapy·developers. |
248 | ······<span·class="lastupdated"> | 248 | ······<span·class="lastupdated"> |
249 | ········Last·updated·on·May·20,·2022. | 249 | ········Last·updated·on·May·20,·2022. |
250 | ······</span> | 250 | ······</span> |
251 | ····</p> | 251 | ····</p> |
252 | ··</div> | 252 | ··</div> |
253 | ···· | 253 | ···· |
Offset 85, 9 lines modified | Offset 85, 9 lines modified | ||
85 | ········self.user_agent·=·getattr(spider,·'user_agent',·self.user_agent) | 85 | ········self.user_agent·=·getattr(spider,·'user_agent',·self.user_agent) |
86 | ····def·process_request(self,·request,·spider): | 86 | ····def·process_request(self,·request,·spider): |
87 | ········if·self.user_agent: | 87 | ········if·self.user_agent: |
88 | ············request.headers.setdefault(b'User-Agent',·self.user_agent) | 88 | ············request.headers.setdefault(b'User-Agent',·self.user_agent) |
89 | =============================================================================== | 89 | =============================================================================== |
90 | ©·Copyright·2008â202 | 90 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
91 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 91 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 308, 15 lines modified | Offset 308, 15 lines modified | ||
308 | ··········</div> | 308 | ··········</div> |
309 | ··········<footer> | 309 | ··········<footer> |
310 | ··<hr/> | 310 | ··<hr/> |
311 | ··<div·role="contentinfo"> | 311 | ··<div·role="contentinfo"> |
312 | ····<p> | 312 | ····<p> |
313 | ········©·Copyright·2008–202 | 313 | ········©·Copyright·2008–2024,·Scrapy·developers. |
314 | ······<span·class="lastupdated"> | 314 | ······<span·class="lastupdated"> |
315 | ········Last·updated·on·May·20,·2022. | 315 | ········Last·updated·on·May·20,·2022. |
316 | ······</span> | 316 | ······</span> |
317 | ····</p> | 317 | ····</p> |
318 | ··</div> | 318 | ··</div> |
319 | ···· | 319 | ···· |
Offset 161, 9 lines modified | Offset 161, 9 lines modified | ||
161 | [docs]class·ContractFail(AssertionError): | 161 | [docs]class·ContractFail(AssertionError): |
162 | ····"""Error·raised·in·case·of·a·failing·contract""" | 162 | ····"""Error·raised·in·case·of·a·failing·contract""" |
163 | ····pass | 163 | ····pass |
164 | =============================================================================== | 164 | =============================================================================== |
165 | ©·Copyright·2008â202 | 165 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
166 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 166 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 557, 15 lines modified | Offset 557, 15 lines modified | ||
557 | ··········</div> | 557 | ··········</div> |
558 | ··········<footer> | 558 | ··········<footer> |
559 | ··<hr/> | 559 | ··<hr/> |
560 | ··<div·role="contentinfo"> | 560 | ··<div·role="contentinfo"> |
561 | ····<p> | 561 | ····<p> |
562 | ········©·Copyright·2008–202 | 562 | ········©·Copyright·2008–2024,·Scrapy·developers. |
563 | ······<span·class="lastupdated"> | 563 | ······<span·class="lastupdated"> |
564 | ········Last·updated·on·May·20,·2022. | 564 | ········Last·updated·on·May·20,·2022. |
565 | ······</span> | 565 | ······</span> |
566 | ····</p> | 566 | ····</p> |
567 | ··</div> | 567 | ··</div> |
568 | ···· | 568 | ···· |
Offset 421, 9 lines modified | Offset 421, 9 lines modified | ||
421 | ····def·export_item(self,·item): | 421 | ····def·export_item(self,·item): |
422 | ········result·=·dict(self._get_serialized_fields(item)) | 422 | ········result·=·dict(self._get_serialized_fields(item)) |
423 | ········if·self.binary: | 423 | ········if·self.binary: |
424 | ············result·=·dict(self._serialize_item(result)) | 424 | ············result·=·dict(self._serialize_item(result)) |
425 | ········return·result | 425 | ········return·result |
426 | =============================================================================== | 426 | =============================================================================== |
427 | ©·Copyright·2008â202 | 427 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
428 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 428 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 287, 15 lines modified | Offset 287, 15 lines modified | ||
287 | ··········</div> | 287 | ··········</div> |
288 | ··········<footer> | 288 | ··········<footer> |
289 | ··<hr/> | 289 | ··<hr/> |
290 | ··<div·role="contentinfo"> | 290 | ··<div·role="contentinfo"> |
291 | ····<p> | 291 | ····<p> |
292 | ········©·Copyright·2008–202 | 292 | ········©·Copyright·2008–2024,·Scrapy·developers. |
293 | ······<span·class="lastupdated"> | 293 | ······<span·class="lastupdated"> |
294 | ········Last·updated·on·May·20,·2022. | 294 | ········Last·updated·on·May·20,·2022. |
295 | ······</span> | 295 | ······</span> |
296 | ····</p> | 296 | ····</p> |
297 | ··</div> | 297 | ··</div> |
298 | ···· | 298 | ···· |
Offset 135, 9 lines modified | Offset 135, 9 lines modified | ||
135 | ····def·spider_closed(self,·spider): | 135 | ····def·spider_closed(self,·spider): |
136 | ········task·=·getattr(self,·'task',·False) | 136 | ········task·=·getattr(self,·'task',·False) |
137 | ········if·task·and·task.active(): | 137 | ········if·task·and·task.active(): |
138 | ············task.cancel() | 138 | ············task.cancel() |
139 | =============================================================================== | 139 | =============================================================================== |
140 | ©·Copyright·2008â202 | 140 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
141 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 141 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 265, 15 lines modified | Offset 265, 15 lines modified | ||
265 | ··········</div> | 265 | ··········</div> |
266 | ··········<footer> | 266 | ··········<footer> |
267 | ··<hr/> | 267 | ··<hr/> |
268 | ··<div·role="contentinfo"> | 268 | ··<div·role="contentinfo"> |
269 | ····<p> | 269 | ····<p> |
270 | ········©·Copyright·2008–202 | 270 | ········©·Copyright·2008–2024,·Scrapy·developers. |
271 | ······<span·class="lastupdated"> | 271 | ······<span·class="lastupdated"> |
272 | ········Last·updated·on·May·20,·2022. | 272 | ········Last·updated·on·May·20,·2022. |
273 | ······</span> | 273 | ······</span> |
274 | ····</p> | 274 | ····</p> |
275 | ··</div> | 275 | ··</div> |
276 | ···· | 276 | ···· |
Offset 111, 9 lines modified | Offset 111, 9 lines modified | ||
111 | ····def·item_dropped(self,·item,·spider,·exception): | 111 | ····def·item_dropped(self,·item,·spider,·exception): |
112 | ········reason·=·exception.__class__.__name__ | 112 | ········reason·=·exception.__class__.__name__ |
113 | ········self.stats.inc_value('item_dropped_count',·spider=spider) | 113 | ········self.stats.inc_value('item_dropped_count',·spider=spider) |
114 | ········self.stats.inc_value(f'item_dropped_reasons_count/{reason}', | 114 | ········self.stats.inc_value(f'item_dropped_reasons_count/{reason}', |
115 | spider=spider) | 115 | spider=spider) |
116 | =============================================================================== | 116 | =============================================================================== |
117 | ©·Copyright·2008â202 | 117 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
118 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 118 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 283, 15 lines modified | Offset 283, 15 lines modified | ||
283 | ··········</div> | 283 | ··········</div> |
284 | ··········<footer> | 284 | ··········<footer> |
285 | ··<hr/> | 285 | ··<hr/> |
286 | ··<div·role="contentinfo"> | 286 | ··<div·role="contentinfo"> |
287 | ····<p> | 287 | ····<p> |
288 | ········©·Copyright·2008–202 | 288 | ········©·Copyright·2008–2024,·Scrapy·developers. |
289 | ······<span·class="lastupdated"> | 289 | ······<span·class="lastupdated"> |
290 | ········Last·updated·on·May·20,·2022. | 290 | ········Last·updated·on·May·20,·2022. |
291 | ······</span> | 291 | ······</span> |
292 | ····</p> | 292 | ····</p> |
293 | ··</div> | 293 | ··</div> |
294 | ···· | 294 | ···· |
Offset 127, 9 lines modified | Offset 127, 9 lines modified | ||
127 | ············#·win32·platforms·don't·support·SIGUSR·signals | 127 | ············#·win32·platforms·don't·support·SIGUSR·signals |
128 | ············pass | 128 | ············pass |
129 | ····def·_enter_debugger(self,·signum,·frame): | 129 | ····def·_enter_debugger(self,·signum,·frame): |
130 | ········Pdb().set_trace(frame.f_back) | 130 | ········Pdb().set_trace(frame.f_back) |
131 | =============================================================================== | 131 | =============================================================================== |
132 | ©·Copyright·2008â202 | 132 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
133 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 133 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 591, 15 lines modified | Offset 591, 15 lines modified | ||
591 | ··········</div> | 591 | ··········</div> |
592 | ··········<footer> | 592 | ··········<footer> |
593 | ··<hr/> | 593 | ··<hr/> |
594 | ··<div·role="contentinfo"> | 594 | ··<div·role="contentinfo"> |
595 | ····<p> | 595 | ····<p> |
596 | ········©·Copyright·2008–202 | 596 | ········©·Copyright·2008–2024,·Scrapy·developers. |
597 | ······<span·class="lastupdated"> | 597 | ······<span·class="lastupdated"> |
598 | ········Last·updated·on·May·20,·2022. | 598 | ········Last·updated·on·May·20,·2022. |
599 | ······</span> | 599 | ······</span> |
600 | ····</p> | 600 | ····</p> |
601 | ··</div> | 601 | ··</div> |
602 | ···· | 602 | ···· |
Offset 450, 9 lines modified | Offset 450, 9 lines modified | ||
450 | ····try: | 450 | ····try: |
451 | ········date_str·=·to_unicode(date_str,·encoding='ascii') | 451 | ········date_str·=·to_unicode(date_str,·encoding='ascii') |
452 | ········return·mktime_tz(parsedate_tz(date_str)) | 452 | ········return·mktime_tz(parsedate_tz(date_str)) |
453 | ····except·Exception: | 453 | ····except·Exception: |
454 | ········return·None | 454 | ········return·None |
455 | =============================================================================== | 455 | =============================================================================== |
456 | ©·Copyright·2008â202 | 456 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
457 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 457 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 271, 15 lines modified | Offset 271, 15 lines modified | ||
271 | ··········</div> | 271 | ··········</div> |
272 | ··········<footer> | 272 | ··········<footer> |
273 | ··<hr/> | 273 | ··<hr/> |
274 | ··<div·role="contentinfo"> | 274 | ··<div·role="contentinfo"> |
275 | ····<p> | 275 | ····<p> |
276 | ········©·Copyright·2008–202 | 276 | ········©·Copyright·2008–2024,·Scrapy·developers. |
277 | ······<span·class="lastupdated"> | 277 | ······<span·class="lastupdated"> |
278 | ········Last·updated·on·May·20,·2022. | 278 | ········Last·updated·on·May·20,·2022. |
279 | ······</span> | 279 | ······</span> |
280 | ····</p> | 280 | ····</p> |
281 | ··</div> | 281 | ··</div> |
282 | ···· | 282 | ···· |
Offset 114, 9 lines modified | Offset 114, 9 lines modified | ||
114 | ········logger.info(msg,·log_args,·extra={'spider':·spider}) | 114 | ········logger.info(msg,·log_args,·extra={'spider':·spider}) |
115 | ····def·spider_closed(self,·spider,·reason): | 115 | ····def·spider_closed(self,·spider,·reason): |
116 | ········if·self.task·and·self.task.running: | 116 | ········if·self.task·and·self.task.running: |
117 | ············self.task.stop() | 117 | ············self.task.stop() |
118 | =============================================================================== | 118 | =============================================================================== |
119 | ©·Copyright·2008â202 | 119 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
120 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 120 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 252, 15 lines modified | Offset 252, 15 lines modified | ||
252 | ··········</div> | 252 | ··········</div> |
253 | ··········<footer> | 253 | ··········<footer> |
254 | ··<hr/> | 254 | ··<hr/> |
255 | ··<div·role="contentinfo"> | 255 | ··<div·role="contentinfo"> |
256 | ····<p> | 256 | ····<p> |
257 | ········©·Copyright·2008–202 | 257 | ········©·Copyright·2008–2024,·Scrapy·developers. |
258 | ······<span·class="lastupdated"> | 258 | ······<span·class="lastupdated"> |
259 | ········Last·updated·on·May·20,·2022. | 259 | ········Last·updated·on·May·20,·2022. |
260 | ······</span> | 260 | ······</span> |
261 | ····</p> | 261 | ····</p> |
262 | ··</div> | 262 | ··</div> |
263 | ···· | 263 | ···· |
Offset 97, 9 lines modified | Offset 97, 9 lines modified | ||
97 | ········for·cls,·wdict·in·live_refs.items(): | 97 | ········for·cls,·wdict·in·live_refs.items(): |
98 | ············if·not·wdict: | 98 | ············if·not·wdict: |
99 | ················continue | 99 | ················continue |
100 | ············self.stats.set_value(f'memdebug/live_refs/{cls.__name__}',·len | 100 | ············self.stats.set_value(f'memdebug/live_refs/{cls.__name__}',·len |
101 | (wdict),·spider=spider) | 101 | (wdict),·spider=spider) |
102 | =============================================================================== | 102 | =============================================================================== |
103 | ©·Copyright·2008â202 | 103 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
104 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 104 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 345, 15 lines modified | Offset 345, 15 lines modified | ||
345 | ··········</div> | 345 | ··········</div> |
346 | ··········<footer> | 346 | ··········<footer> |
347 | ··<hr/> | 347 | ··<hr/> |
348 | ··<div·role="contentinfo"> | 348 | ··<div·role="contentinfo"> |
349 | ····<p> | 349 | ····<p> |
350 | ········©·Copyright·2008–202 | 350 | ········©·Copyright·2008–2024,·Scrapy·developers. |
351 | ······<span·class="lastupdated"> | 351 | ······<span·class="lastupdated"> |
352 | ········Last·updated·on·May·20,·2022. | 352 | ········Last·updated·on·May·20,·2022. |
353 | ······</span> | 353 | ······</span> |
354 | ····</p> | 354 | ····</p> |
355 | ··</div> | 355 | ··</div> |
356 | ···· | 356 | ···· |
Offset 198, 9 lines modified | Offset 198, 9 lines modified | ||
198 | ----·\r\n" | 198 | ----·\r\n" |
199 | ········s·+=·"\r\n" | 199 | ········s·+=·"\r\n" |
200 | ········s·+=·pformat(get_engine_status(self.crawler.engine)) | 200 | ········s·+=·pformat(get_engine_status(self.crawler.engine)) |
201 | ········s·+=·"\r\n" | 201 | ········s·+=·"\r\n" |
202 | ········self.mail.send(rcpts,·subject,·s) | 202 | ········self.mail.send(rcpts,·subject,·s) |
203 | =============================================================================== | 203 | =============================================================================== |
204 | ©·Copyright·2008â202 | 204 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
205 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 205 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 253, 15 lines modified | Offset 253, 15 lines modified | ||
253 | ··········</div> | 253 | ··········</div> |
254 | ··········<footer> | 254 | ··········<footer> |
255 | ··<hr/> | 255 | ··<hr/> |
256 | ··<div·role="contentinfo"> | 256 | ··<div·role="contentinfo"> |
257 | ····<p> | 257 | ····<p> |
258 | ········©·Copyright·2008–202 | 258 | ········©·Copyright·2008–2024,·Scrapy·developers. |
259 | ······<span·class="lastupdated"> | 259 | ······<span·class="lastupdated"> |
260 | ········Last·updated·on·May·20,·2022. | 260 | ········Last·updated·on·May·20,·2022. |
261 | ······</span> | 261 | ······</span> |
262 | ····</p> | 262 | ····</p> |
263 | ··</div> | 263 | ··</div> |
264 | ···· | 264 | ···· |
Offset 98, 9 lines modified | Offset 98, 9 lines modified | ||
98 | ().items()) | 98 | ().items()) |
99 | ········body·+=·f"\n\n{spider.name}·stats\n\n" | 99 | ········body·+=·f"\n\n{spider.name}·stats\n\n" |
100 | ········body·+=·"\n".join(f"{k:<50}·:·{v}"·for·k,·v·in·spider_stats.items()) | 100 | ········body·+=·"\n".join(f"{k:<50}·:·{v}"·for·k,·v·in·spider_stats.items()) |
101 | ········return·self.mail.send(self.recipients,·f"Scrapy·stats·for: | 101 | ········return·self.mail.send(self.recipients,·f"Scrapy·stats·for: |
102 | {spider.name}",·body) | 102 | {spider.name}",·body) |
103 | =============================================================================== | 103 | =============================================================================== |
104 | ©·Copyright·2008â202 | 104 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
105 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 105 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 333, 15 lines modified | Offset 333, 15 lines modified | ||
333 | ··········</div> | 333 | ··········</div> |
334 | ··········<footer> | 334 | ··········<footer> |
335 | ··<hr/> | 335 | ··<hr/> |
336 | ··<div·role="contentinfo"> | 336 | ··<div·role="contentinfo"> |
337 | ····<p> | 337 | ····<p> |
338 | ········©·Copyright·2008–202 | 338 | ········©·Copyright·2008–2024,·Scrapy·developers. |
339 | ······<span·class="lastupdated"> | 339 | ······<span·class="lastupdated"> |
340 | ········Last·updated·on·May·20,·2022. | 340 | ········Last·updated·on·May·20,·2022. |
341 | ······</span> | 341 | ······</span> |
342 | ····</p> | 342 | ····</p> |
343 | ··</div> | 343 | ··</div> |
344 | ···· | 344 | ···· |
Offset 181, 9 lines modified | Offset 181, 9 lines modified | ||
181 | telnetconsole.html", | 181 | telnetconsole.html", |
182 | ········} | 182 | ········} |
183 | ········self.crawler.signals.send_catch_log(update_telnet_vars, | 183 | ········self.crawler.signals.send_catch_log(update_telnet_vars, |
184 | telnet_vars=telnet_vars) | 184 | telnet_vars=telnet_vars) |
185 | ········return·telnet_vars | 185 | ········return·telnet_vars |
186 | =============================================================================== | 186 | =============================================================================== |
187 | ©·Copyright·2008â202 | 187 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
188 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 188 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 436, 15 lines modified | Offset 436, 15 lines modified | ||
436 | ··········</div> | 436 | ··········</div> |
437 | ··········<footer> | 437 | ··········<footer> |
438 | ··<hr/> | 438 | ··<hr/> |
439 | ··<div·role="contentinfo"> | 439 | ··<div·role="contentinfo"> |
440 | ····<p> | 440 | ····<p> |
441 | ········©·Copyright·2008–202 | 441 | ········©·Copyright·2008–2024,·Scrapy·developers. |
442 | ······<span·class="lastupdated"> | 442 | ······<span·class="lastupdated"> |
443 | ········Last·updated·on·May·20,·2022. | 443 | ········Last·updated·on·May·20,·2022. |
444 | ······</span> | 444 | ······</span> |
445 | ····</p> | 445 | ····</p> |
446 | ··</div> | 446 | ··</div> |
447 | ···· | 447 | ···· |
Offset 289, 9 lines modified | Offset 289, 9 lines modified | ||
289 | ········raise·ValueError(f"Multiple·elements·found·({el!r})·matching·the·" | 289 | ········raise·ValueError(f"Multiple·elements·found·({el!r})·matching·the·" |
290 | ·························f"criteria·in·clickdata:·{clickdata!r}") | 290 | ·························f"criteria·in·clickdata:·{clickdata!r}") |
291 | ····else: | 291 | ····else: |
292 | ········raise·ValueError(f'No·clickable·element·matching·clickdata: | 292 | ········raise·ValueError(f'No·clickable·element·matching·clickdata: |
293 | {clickdata!r}') | 293 | {clickdata!r}') |
294 | =============================================================================== | 294 | =============================================================================== |
295 | ©·Copyright·2008â202 | 295 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
296 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 296 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 278, 15 lines modified | Offset 278, 15 lines modified | ||
278 | ··········</div> | 278 | ··········</div> |
279 | ··········<footer> | 279 | ··········<footer> |
280 | ··<hr/> | 280 | ··<hr/> |
281 | ··<div·role="contentinfo"> | 281 | ··<div·role="contentinfo"> |
282 | ····<p> | 282 | ····<p> |
283 | ········©·Copyright·2008–202 | 283 | ········©·Copyright·2008–2024,·Scrapy·developers. |
284 | ······<span·class="lastupdated"> | 284 | ······<span·class="lastupdated"> |
285 | ········Last·updated·on·May·20,·2022. | 285 | ········Last·updated·on·May·20,·2022. |
286 | ······</span> | 286 | ······</span> |
287 | ····</p> | 287 | ····</p> |
288 | ··</div> | 288 | ··</div> |
289 | ···· | 289 | ···· |
Offset 122, 9 lines modified | Offset 122, 9 lines modified | ||
122 | ········return·json.dumps(data,·**self._dumps_kwargs) | 122 | ········return·json.dumps(data,·**self._dumps_kwargs) |
123 | JSONRequest·=·create_deprecated_class("JSONRequest",·JsonRequest) | 123 | JSONRequest·=·create_deprecated_class("JSONRequest",·JsonRequest) |
124 | =============================================================================== | 124 | =============================================================================== |
125 | ©·Copyright·2008â202 | 125 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
126 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 126 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 362, 15 lines modified | Offset 362, 15 lines modified | ||
362 | ··········</div> | 362 | ··········</div> |
363 | ··········<footer> | 363 | ··········<footer> |
364 | ··<hr/> | 364 | ··<hr/> |
365 | ··<div·role="contentinfo"> | 365 | ··<div·role="contentinfo"> |
366 | ····<p> | 366 | ····<p> |
367 | ········©·Copyright·2008–202 | 367 | ········©·Copyright·2008–2024,·Scrapy·developers. |
368 | ······<span·class="lastupdated"> | 368 | ······<span·class="lastupdated"> |
369 | ········Last·updated·on·May·20,·2022. | 369 | ········Last·updated·on·May·20,·2022. |
370 | ······</span> | 370 | ······</span> |
371 | ····</p> | 371 | ····</p> |
372 | ··</div> | 372 | ··</div> |
373 | ···· | 373 | ···· |
Offset 219, 9 lines modified | Offset 219, 9 lines modified | ||
219 | ·······""" | 219 | ·······""" |
220 | ········request_kwargs·=·curl_to_request_kwargs(curl_command, | 220 | ········request_kwargs·=·curl_to_request_kwargs(curl_command, |
221 | ignore_unknown_options) | 221 | ignore_unknown_options) |
222 | ········request_kwargs.update(kwargs) | 222 | ········request_kwargs.update(kwargs) |
223 | ········return·cls(**request_kwargs) | 223 | ········return·cls(**request_kwargs) |
224 | =============================================================================== | 224 | =============================================================================== |
225 | ©·Copyright·2008â202 | 225 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
226 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 226 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 233, 15 lines modified | Offset 233, 15 lines modified | ||
233 | ··········</div> | 233 | ··········</div> |
234 | ··········<footer> | 234 | ··········<footer> |
235 | ··<hr/> | 235 | ··<hr/> |
236 | ··<div·role="contentinfo"> | 236 | ··<div·role="contentinfo"> |
237 | ····<p> | 237 | ····<p> |
238 | ········©·Copyright·2008–202 | 238 | ········©·Copyright·2008–2024,·Scrapy·developers. |
239 | ······<span·class="lastupdated"> | 239 | ······<span·class="lastupdated"> |
240 | ········Last·updated·on·May·20,·2022. | 240 | ········Last·updated·on·May·20,·2022. |
241 | ······</span> | 241 | ······</span> |
242 | ····</p> | 242 | ····</p> |
243 | ··</div> | 243 | ··</div> |
244 | ···· | 244 | ···· |
Offset 75, 9 lines modified | Offset 75, 9 lines modified | ||
75 | from·scrapy.http.response.text·import·TextResponse | 75 | from·scrapy.http.response.text·import·TextResponse |
76 | [docs]class·HtmlResponse(TextResponse): | 76 | [docs]class·HtmlResponse(TextResponse): |
77 | ····pass | 77 | ····pass |
78 | =============================================================================== | 78 | =============================================================================== |
79 | ©·Copyright·2008â202 | 79 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
80 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 80 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 486, 15 lines modified | Offset 486, 15 lines modified | ||
486 | ··········</div> | 486 | ··········</div> |
487 | ··········<footer> | 487 | ··········<footer> |
488 | ··<hr/> | 488 | ··<hr/> |
489 | ··<div·role="contentinfo"> | 489 | ··<div·role="contentinfo"> |
490 | ····<p> | 490 | ····<p> |
491 | ········©·Copyright·2008–202 | 491 | ········©·Copyright·2008–2024,·Scrapy·developers. |
492 | ······<span·class="lastupdated"> | 492 | ······<span·class="lastupdated"> |
493 | ········Last·updated·on·May·20,·2022. | 493 | ········Last·updated·on·May·20,·2022. |
494 | ······</span> | 494 | ······</span> |
495 | ····</p> | 495 | ····</p> |
496 | ··</div> | 496 | ··</div> |
497 | ···· | 497 | ···· |
Offset 350, 9 lines modified | Offset 350, 9 lines modified | ||
350 | ····href·=·sel.root.get('href') | 350 | ····href·=·sel.root.get('href') |
351 | ····if·href·is·None: | 351 | ····if·href·is·None: |
352 | ········raise·_InvalidSelector(f"<{sel.root.tag}>·element·has·no·href | 352 | ········raise·_InvalidSelector(f"<{sel.root.tag}>·element·has·no·href |
353 | attribute:·{sel}") | 353 | attribute:·{sel}") |
354 | ····return·strip_html5_whitespace(href) | 354 | ····return·strip_html5_whitespace(href) |
355 | =============================================================================== | 355 | =============================================================================== |
356 | ©·Copyright·2008â202 | 356 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
357 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 357 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 233, 15 lines modified | Offset 233, 15 lines modified | ||
233 | ··········</div> | 233 | ··········</div> |
234 | ··········<footer> | 234 | ··········<footer> |
235 | ··<hr/> | 235 | ··<hr/> |
236 | ··<div·role="contentinfo"> | 236 | ··<div·role="contentinfo"> |
237 | ····<p> | 237 | ····<p> |
238 | ········©·Copyright·2008–202 | 238 | ········©·Copyright·2008–2024,·Scrapy·developers. |
239 | ······<span·class="lastupdated"> | 239 | ······<span·class="lastupdated"> |
240 | ········Last·updated·on·May·20,·2022. | 240 | ········Last·updated·on·May·20,·2022. |
241 | ······</span> | 241 | ······</span> |
242 | ····</p> | 242 | ····</p> |
243 | ··</div> | 243 | ··</div> |
244 | ···· | 244 | ···· |
Offset 75, 9 lines modified | Offset 75, 9 lines modified | ||
75 | from·scrapy.http.response.text·import·TextResponse | 75 | from·scrapy.http.response.text·import·TextResponse |
76 | [docs]class·XmlResponse(TextResponse): | 76 | [docs]class·XmlResponse(TextResponse): |
77 | ····pass | 77 | ····pass |
78 | =============================================================================== | 78 | =============================================================================== |
79 | ©·Copyright·2008â202 | 79 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
80 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 80 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 415, 15 lines modified | Offset 415, 15 lines modified | ||
415 | ··········</div> | 415 | ··········</div> |
416 | ··········<footer> | 416 | ··········<footer> |
417 | ··<hr/> | 417 | ··<hr/> |
418 | ··<div·role="contentinfo"> | 418 | ··<div·role="contentinfo"> |
419 | ····<p> | 419 | ····<p> |
420 | ········©·Copyright·2008–202 | 420 | ········©·Copyright·2008–2024,·Scrapy·developers. |
421 | ······<span·class="lastupdated"> | 421 | ······<span·class="lastupdated"> |
422 | ········Last·updated·on·May·20,·2022. | 422 | ········Last·updated·on·May·20,·2022. |
423 | ······</span> | 423 | ······</span> |
424 | ····</p> | 424 | ····</p> |
425 | ··</div> | 425 | ··</div> |
426 | ···· | 426 | ···· |
Offset 267, 9 lines modified | Offset 267, 9 lines modified | ||
267 | ················cb_kwargs=cb_kwargs, | 267 | ················cb_kwargs=cb_kwargs, |
268 | ················flags=flags, | 268 | ················flags=flags, |
269 | ············) | 269 | ············) |
270 | ············for·url·in·urls | 270 | ············for·url·in·urls |
271 | ········) | 271 | ········) |
272 | =============================================================================== | 272 | =============================================================================== |
273 | ©·Copyright·2008â202 | 273 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
274 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 274 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 377, 15 lines modified | Offset 377, 15 lines modified | ||
377 | ··········</div> | 377 | ··········</div> |
378 | ··········<footer> | 378 | ··········<footer> |
379 | ··<hr/> | 379 | ··<hr/> |
380 | ··<div·role="contentinfo"> | 380 | ··<div·role="contentinfo"> |
381 | ····<p> | 381 | ····<p> |
382 | ········©·Copyright·2008–202 | 382 | ········©·Copyright·2008–2024,·Scrapy·developers. |
383 | ······<span·class="lastupdated"> | 383 | ······<span·class="lastupdated"> |
384 | ········Last·updated·on·May·20,·2022. | 384 | ········Last·updated·on·May·20,·2022. |
385 | ······</span> | 385 | ······</span> |
386 | ····</p> | 386 | ····</p> |
387 | ··</div> | 387 | ··</div> |
388 | ···· | 388 | ···· |
Offset 232, 9 lines modified | Offset 232, 9 lines modified | ||
232 | ····about·fields·<topics-items-fields>`·for·additional·information. | 232 | ····about·fields·<topics-items-fields>`·for·additional·information. |
233 | ····Unlike·instances·of·:class:`dict`,·instances·of·:class:`Item`·may·be | 233 | ····Unlike·instances·of·:class:`dict`,·instances·of·:class:`Item`·may·be |
234 | ····:ref:`tracked·<topics-leaks-trackrefs>`·to·debug·memory·leaks. | 234 | ····:ref:`tracked·<topics-leaks-trackrefs>`·to·debug·memory·leaks. |
235 | ····""" | 235 | ····""" |
236 | =============================================================================== | 236 | =============================================================================== |
237 | ©·Copyright·2008â202 | 237 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
238 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 238 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 272, 15 lines modified | Offset 272, 15 lines modified | ||
272 | ··········</div> | 272 | ··········</div> |
273 | ··········<footer> | 273 | ··········<footer> |
274 | ··<hr/> | 274 | ··<hr/> |
275 | ··<div·role="contentinfo"> | 275 | ··<div·role="contentinfo"> |
276 | ····<p> | 276 | ····<p> |
277 | ········©·Copyright·2008–202 | 277 | ········©·Copyright·2008–2024,·Scrapy·developers. |
278 | ······<span·class="lastupdated"> | 278 | ······<span·class="lastupdated"> |
279 | ········Last·updated·on·May·20,·2022. | 279 | ········Last·updated·on·May·20,·2022. |
280 | ······</span> | 280 | ······</span> |
281 | ····</p> | 281 | ····</p> |
282 | ··</div> | 282 | ··</div> |
283 | ···· | 283 | ···· |
Offset 120, 9 lines modified | Offset 120, 9 lines modified | ||
120 | ····def·__repr__(self): | 120 | ····def·__repr__(self): |
121 | ········return·( | 121 | ········return·( |
122 | ············f'Link(url={self.url!r},·text={self.text!r},·' | 122 | ············f'Link(url={self.url!r},·text={self.text!r},·' |
123 | ············f'fragment={self.fragment!r},·nofollow={self.nofollow!r})' | 123 | ············f'fragment={self.fragment!r},·nofollow={self.nofollow!r})' |
124 | ········) | 124 | ········) |
125 | =============================================================================== | 125 | =============================================================================== |
126 | ©·Copyright·2008â202 | 126 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
127 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 127 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 383, 15 lines modified | Offset 383, 15 lines modified | ||
383 | ··········</div> | 383 | ··········</div> |
384 | ··········<footer> | 384 | ··········<footer> |
385 | ··<hr/> | 385 | ··<hr/> |
386 | ··<div·role="contentinfo"> | 386 | ··<div·role="contentinfo"> |
387 | ····<p> | 387 | ····<p> |
388 | ········©·Copyright·2008–202 | 388 | ········©·Copyright·2008–2024,·Scrapy·developers. |
389 | ······<span·class="lastupdated"> | 389 | ······<span·class="lastupdated"> |
390 | ········Last·updated·on·May·20,·2022. | 390 | ········Last·updated·on·May·20,·2022. |
391 | ······</span> | 391 | ······</span> |
392 | ····</p> | 392 | ····</p> |
393 | ··</div> | 393 | ··</div> |
394 | ···· | 394 | ···· |
Offset 232, 9 lines modified | Offset 232, 9 lines modified | ||
232 | ········for·doc·in·docs: | 232 | ········for·doc·in·docs: |
233 | ············links·=·self._extract_links(doc,·response.url,·response.encoding, | 233 | ············links·=·self._extract_links(doc,·response.url,·response.encoding, |
234 | base_url) | 234 | base_url) |
235 | ············all_links.extend(self._process_links(links)) | 235 | ············all_links.extend(self._process_links(links)) |
236 | ········return·unique_list(all_links) | 236 | ········return·unique_list(all_links) |
237 | =============================================================================== | 237 | =============================================================================== |
238 | ©·Copyright·2008â202 | 238 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
239 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 239 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 307, 15 lines modified | Offset 307, 15 lines modified | ||
307 | ··········</div> | 307 | ··········</div> |
308 | ··········<footer> | 308 | ··········<footer> |
309 | ··<hr/> | 309 | ··<hr/> |
310 | ··<div·role="contentinfo"> | 310 | ··<div·role="contentinfo"> |
311 | ····<p> | 311 | ····<p> |
312 | ········©·Copyright·2008–202 | 312 | ········©·Copyright·2008–2024,·Scrapy·developers. |
313 | ······<span·class="lastupdated"> | 313 | ······<span·class="lastupdated"> |
314 | ········Last·updated·on·May·20,·2022. | 314 | ········Last·updated·on·May·20,·2022. |
315 | ······</span> | 315 | ······</span> |
316 | ····</p> | 316 | ····</p> |
317 | ··</div> | 317 | ··</div> |
318 | ···· | 318 | ···· |
Offset 160, 9 lines modified | Offset 160, 9 lines modified | ||
160 | ········if·selector·is·None·and·response·is·not·None: | 160 | ········if·selector·is·None·and·response·is·not·None: |
161 | ············selector·=·self.default_selector_class(response) | 161 | ············selector·=·self.default_selector_class(response) |
162 | ········context.update(response=response) | 162 | ········context.update(response=response) |
163 | ········super().__init__(item=item,·selector=selector,·parent=parent, | 163 | ········super().__init__(item=item,·selector=selector,·parent=parent, |
164 | **context) | 164 | **context) |
165 | =============================================================================== | 165 | =============================================================================== |
166 | ©·Copyright·2008â202 | 166 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
167 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 167 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 366, 15 lines modified | Offset 366, 15 lines modified | ||
366 | ··········</div> | 366 | ··········</div> |
367 | ··········<footer> | 367 | ··········<footer> |
368 | ··<hr/> | 368 | ··<hr/> |
369 | ··<div·role="contentinfo"> | 369 | ··<div·role="contentinfo"> |
370 | ····<p> | 370 | ····<p> |
371 | ········©·Copyright·2008–202 | 371 | ········©·Copyright·2008–2024,·Scrapy·developers. |
372 | ······<span·class="lastupdated"> | 372 | ······<span·class="lastupdated"> |
373 | ········Last·updated·on·May·20,·2022. | 373 | ········Last·updated·on·May·20,·2022. |
374 | ······</span> | 374 | ······</span> |
375 | ····</p> | 375 | ····</p> |
376 | ··</div> | 376 | ··</div> |
377 | ···· | 377 | ···· |
Offset 229, 9 lines modified | Offset 229, 9 lines modified | ||
229 | ····@classmethod | 229 | ····@classmethod |
230 | ····def·from_crawler(cls,·crawler): | 230 | ····def·from_crawler(cls,·crawler): |
231 | ········return·cls() | 231 | ········return·cls() |
232 | =============================================================================== | 232 | =============================================================================== |
233 | ©·Copyright·2008â202 | 233 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
234 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 234 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 359, 15 lines modified | Offset 359, 15 lines modified | ||
359 | ··········</div> | 359 | ··········</div> |
360 | ··········<footer> | 360 | ··········<footer> |
361 | ··<hr/> | 361 | ··<hr/> |
362 | ··<div·role="contentinfo"> | 362 | ··<div·role="contentinfo"> |
363 | ····<p> | 363 | ····<p> |
364 | ········©·Copyright·2008–202 | 364 | ········©·Copyright·2008–2024,·Scrapy·developers. |
365 | ······<span·class="lastupdated"> | 365 | ······<span·class="lastupdated"> |
366 | ········Last·updated·on·May·20,·2022. | 366 | ········Last·updated·on·May·20,·2022. |
367 | ······</span> | 367 | ······</span> |
368 | ····</p> | 368 | ····</p> |
369 | ··</div> | 369 | ··</div> |
370 | ···· | 370 | ···· |
Offset 209, 9 lines modified | Offset 209, 9 lines modified | ||
209 | ssl.ClientContextFactory()) | 209 | ssl.ClientContextFactory()) |
210 | ········else: | 210 | ········else: |
211 | ············reactor.connectTCP(self.smtphost,·self.smtpport,·factory) | 211 | ············reactor.connectTCP(self.smtphost,·self.smtpport,·factory) |
212 | ········return·d | 212 | ········return·d |
213 | =============================================================================== | 213 | =============================================================================== |
214 | ©·Copyright·2008â202 | 214 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
215 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 215 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 733, 15 lines modified | Offset 733, 15 lines modified | ||
733 | ··········</div> | 733 | ··········</div> |
734 | ··········<footer> | 734 | ··········<footer> |
735 | ··<hr/> | 735 | ··<hr/> |
736 | ··<div·role="contentinfo"> | 736 | ··<div·role="contentinfo"> |
737 | ····<p> | 737 | ····<p> |
738 | ········©·Copyright·2008–202 | 738 | ········©·Copyright·2008–2024,·Scrapy·developers. |
739 | ······<span·class="lastupdated"> | 739 | ······<span·class="lastupdated"> |
740 | ········Last·updated·on·May·20,·2022. | 740 | ········Last·updated·on·May·20,·2022. |
741 | ······</span> | 741 | ······</span> |
742 | ····</p> | 742 | ····</p> |
743 | ··</div> | 743 | ··</div> |
744 | ···· | 744 | ···· |
Offset 594, 9 lines modified | Offset 594, 9 lines modified | ||
594 | ············media_ext·=·'' | 594 | ············media_ext·=·'' |
595 | ············media_type·=·mimetypes.guess_type(request.url)[0] | 595 | ············media_type·=·mimetypes.guess_type(request.url)[0] |
596 | ············if·media_type: | 596 | ············if·media_type: |
597 | ················media_ext·=·mimetypes.guess_extension(media_type) | 597 | ················media_ext·=·mimetypes.guess_extension(media_type) |
598 | ········return·f'full/{media_guid}{media_ext}' | 598 | ········return·f'full/{media_guid}{media_ext}' |
599 | =============================================================================== | 599 | =============================================================================== |
600 | ©·Copyright·2008â202 | 600 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
601 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 601 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 395, 15 lines modified | Offset 395, 15 lines modified | ||
395 | ··········</div> | 395 | ··········</div> |
396 | ··········<footer> | 396 | ··········<footer> |
397 | ··<hr/> | 397 | ··<hr/> |
398 | ··<div·role="contentinfo"> | 398 | ··<div·role="contentinfo"> |
399 | ····<p> | 399 | ····<p> |
400 | ········©·Copyright·2008–202 | 400 | ········©·Copyright·2008–2024,·Scrapy·developers. |
401 | ······<span·class="lastupdated"> | 401 | ······<span·class="lastupdated"> |
402 | ········Last·updated·on·May·20,·2022. | 402 | ········Last·updated·on·May·20,·2022. |
403 | ······</span> | 403 | ······</span> |
404 | ····</p> | 404 | ····</p> |
405 | ··</div> | 405 | ··</div> |
406 | ···· | 406 | ···· |
Offset 246, 9 lines modified | Offset 246, 9 lines modified | ||
246 | ····def·thumb_path(self,·request,·thumb_id,·response=None,·info=None): | 246 | ····def·thumb_path(self,·request,·thumb_id,·response=None,·info=None): |
247 | ········thumb_guid·=·hashlib.sha1(to_bytes(request.url)).hexdigest() | 247 | ········thumb_guid·=·hashlib.sha1(to_bytes(request.url)).hexdigest() |
248 | ········return·f'thumbs/{thumb_id}/{thumb_guid}.jpg' | 248 | ········return·f'thumbs/{thumb_id}/{thumb_guid}.jpg' |
249 | =============================================================================== | 249 | =============================================================================== |
250 | ©·Copyright·2008â202 | 250 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
251 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 251 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 349, 15 lines modified | Offset 349, 15 lines modified | ||
349 | ··········</div> | 349 | ··········</div> |
350 | ··········<footer> | 350 | ··········<footer> |
351 | ··<hr/> | 351 | ··<hr/> |
352 | ··<div·role="contentinfo"> | 352 | ··<div·role="contentinfo"> |
353 | ····<p> | 353 | ····<p> |
354 | ········©·Copyright·2008–202 | 354 | ········©·Copyright·2008–2024,·Scrapy·developers. |
355 | ······<span·class="lastupdated"> | 355 | ······<span·class="lastupdated"> |
356 | ········Last·updated·on·May·20,·2022. | 356 | ········Last·updated·on·May·20,·2022. |
357 | ······</span> | 357 | ······</span> |
358 | ····</p> | 358 | ····</p> |
359 | ··</div> | 359 | ··</div> |
360 | ···· | 360 | ···· |
Offset 200, 9 lines modified | Offset 200, 9 lines modified | ||
200 | ····def·allowed(self,·url,·user_agent): | 200 | ····def·allowed(self,·url,·user_agent): |
201 | ········user_agent·=·to_unicode(user_agent) | 201 | ········user_agent·=·to_unicode(user_agent) |
202 | ········url·=·to_unicode(url) | 202 | ········url·=·to_unicode(url) |
203 | ········return·self.rp.can_fetch(url,·user_agent) | 203 | ········return·self.rp.can_fetch(url,·user_agent) |
204 | =============================================================================== | 204 | =============================================================================== |
205 | ©·Copyright·2008â202 | 205 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
206 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 206 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 301, 15 lines modified | Offset 301, 15 lines modified | ||
301 | ··········</div> | 301 | ··········</div> |
302 | ··········<footer> | 302 | ··········<footer> |
303 | ··<hr/> | 303 | ··<hr/> |
304 | ··<div·role="contentinfo"> | 304 | ··<div·role="contentinfo"> |
305 | ····<p> | 305 | ····<p> |
306 | ········©·Copyright·2008–202 | 306 | ········©·Copyright·2008–2024,·Scrapy·developers. |
307 | ······<span·class="lastupdated"> | 307 | ······<span·class="lastupdated"> |
308 | ········Last·updated·on·May·20,·2022. | 308 | ········Last·updated·on·May·20,·2022. |
309 | ······</span> | 309 | ······</span> |
310 | ····</p> | 310 | ····</p> |
311 | ··</div> | 311 | ··</div> |
312 | ···· | 312 | ···· |
Offset 147, 9 lines modified | Offset 147, 9 lines modified | ||
147 | ············text·=·response.text | 147 | ············text·=·response.text |
148 | ············kwargs.setdefault('base_url',·response.url) | 148 | ············kwargs.setdefault('base_url',·response.url) |
149 | ········self.response·=·response | 149 | ········self.response·=·response |
150 | ········super().__init__(text=text,·type=st,·root=root,·**kwargs) | 150 | ········super().__init__(text=text,·type=st,·root=root,·**kwargs) |
151 | =============================================================================== | 151 | =============================================================================== |
152 | ©·Copyright·2008â202 | 152 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
153 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 153 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 684, 15 lines modified | Offset 684, 15 lines modified | ||
684 | ··········</div> | 684 | ··········</div> |
685 | ··········<footer> | 685 | ··········<footer> |
686 | ··<hr/> | 686 | ··<hr/> |
687 | ··<div·role="contentinfo"> | 687 | ··<div·role="contentinfo"> |
688 | ····<p> | 688 | ····<p> |
689 | ········©·Copyright·2008–202 | 689 | ········©·Copyright·2008–2024,·Scrapy·developers. |
690 | ······<span·class="lastupdated"> | 690 | ······<span·class="lastupdated"> |
691 | ········Last·updated·on·May·20,·2022. | 691 | ········Last·updated·on·May·20,·2022. |
692 | ······</span> | 692 | ······</span> |
693 | ····</p> | 693 | ····</p> |
694 | ··</div> | 694 | ··</div> |
695 | ···· | 695 | ···· |
Offset 552, 9 lines modified | Offset 552, 9 lines modified | ||
552 | ····"""Return·a·dict·of·the·settings·that·have·been·overridden""" | 552 | ····"""Return·a·dict·of·the·settings·that·have·been·overridden""" |
553 | ····for·name,·defvalue·in·iter_default_settings(): | 553 | ····for·name,·defvalue·in·iter_default_settings(): |
554 | ········value·=·settings[name] | 554 | ········value·=·settings[name] |
555 | ········if·not·isinstance(defvalue,·dict)·and·value·!=·defvalue: | 555 | ········if·not·isinstance(defvalue,·dict)·and·value·!=·defvalue: |
556 | ············yield·name,·value | 556 | ············yield·name,·value |
557 | =============================================================================== | 557 | =============================================================================== |
558 | ©·Copyright·2008â202 | 558 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
559 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 559 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 287, 15 lines modified | Offset 287, 15 lines modified | ||
287 | ··········</div> | 287 | ··········</div> |
288 | ··········<footer> | 288 | ··········<footer> |
289 | ··<hr/> | 289 | ··<hr/> |
290 | ··<div·role="contentinfo"> | 290 | ··<div·role="contentinfo"> |
291 | ····<p> | 291 | ····<p> |
292 | ········©·Copyright·2008–202 | 292 | ········©·Copyright·2008–2024,·Scrapy·developers. |
293 | ······<span·class="lastupdated"> | 293 | ······<span·class="lastupdated"> |
294 | ········Last·updated·on·May·20,·2022. | 294 | ········Last·updated·on·May·20,·2022. |
295 | ······</span> | 295 | ······</span> |
296 | ····</p> | 296 | ····</p> |
297 | ··</div> | 297 | ··</div> |
298 | ···· | 298 | ···· |
Offset 134, 9 lines modified | Offset 134, 9 lines modified | ||
134 | ········:param·signal:·the·signal·to·disconnect·from | 134 | ········:param·signal:·the·signal·to·disconnect·from |
135 | ········:type·signal:·object | 135 | ········:type·signal:·object |
136 | ········""" | 136 | ········""" |
137 | ········kwargs.setdefault('sender',·self.sender) | 137 | ········kwargs.setdefault('sender',·self.sender) |
138 | ········return·_signal.disconnect_all(signal,·**kwargs) | 138 | ········return·_signal.disconnect_all(signal,·**kwargs) |
139 | =============================================================================== | 139 | =============================================================================== |
140 | ©·Copyright·2008â202 | 140 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
141 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 141 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 311, 15 lines modified | Offset 311, 15 lines modified | ||
311 | ··········</div> | 311 | ··········</div> |
312 | ··········<footer> | 312 | ··········<footer> |
313 | ··<hr/> | 313 | ··<hr/> |
314 | ··<div·role="contentinfo"> | 314 | ··<div·role="contentinfo"> |
315 | ····<p> | 315 | ····<p> |
316 | ········©·Copyright·2008–202 | 316 | ········©·Copyright·2008–2024,·Scrapy·developers. |
317 | ······<span·class="lastupdated"> | 317 | ······<span·class="lastupdated"> |
318 | ········Last·updated·on·May·20,·2022. | 318 | ········Last·updated·on·May·20,·2022. |
319 | ······</span> | 319 | ······</span> |
320 | ····</p> | 320 | ····</p> |
321 | ··</div> | 321 | ··</div> |
322 | ···· | 322 | ···· |
Offset 157, 9 lines modified | Offset 157, 9 lines modified | ||
157 | [docs]····def·list(self): | 157 | [docs]····def·list(self): |
158 | ········""" | 158 | ········""" |
159 | ········Return·a·list·with·the·names·of·all·spiders·available·in·the·project. | 159 | ········Return·a·list·with·the·names·of·all·spiders·available·in·the·project. |
160 | ········""" | 160 | ········""" |
161 | ········return·list(self._spiders.keys()) | 161 | ········return·list(self._spiders.keys()) |
162 | =============================================================================== | 162 | =============================================================================== |
163 | ©·Copyright·2008â202 | 163 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
164 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 164 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 277, 15 lines modified | Offset 277, 15 lines modified | ||
277 | ··········</div> | 277 | ··········</div> |
278 | ··········<footer> | 278 | ··········<footer> |
279 | ··<hr/> | 279 | ··<hr/> |
280 | ··<div·role="contentinfo"> | 280 | ··<div·role="contentinfo"> |
281 | ····<p> | 281 | ····<p> |
282 | ········©·Copyright·2008–202 | 282 | ········©·Copyright·2008–2024,·Scrapy·developers. |
283 | ······<span·class="lastupdated"> | 283 | ······<span·class="lastupdated"> |
284 | ········Last·updated·on·May·20,·2022. | 284 | ········Last·updated·on·May·20,·2022. |
285 | ······</span> | 285 | ······</span> |
286 | ····</p> | 286 | ····</p> |
287 | ··</div> | 287 | ··</div> |
288 | ···· | 288 | ···· |
Offset 120, 9 lines modified | Offset 120, 9 lines modified | ||
120 | ············response.meta['depth']·=·0 | 120 | ············response.meta['depth']·=·0 |
121 | ············if·self.verbose_stats: | 121 | ············if·self.verbose_stats: |
122 | ················self.stats.inc_value('request_depth_count/0',·spider=spider) | 122 | ················self.stats.inc_value('request_depth_count/0',·spider=spider) |
123 | ········return·(r·for·r·in·result·or·()·if·_filter(r)) | 123 | ········return·(r·for·r·in·result·or·()·if·_filter(r)) |
124 | =============================================================================== | 124 | =============================================================================== |
125 | ©·Copyright·2008â202 | 125 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
126 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 126 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 276, 15 lines modified | Offset 276, 15 lines modified | ||
276 | ··········</div> | 276 | ··········</div> |
277 | ··········<footer> | 277 | ··········<footer> |
278 | ··<hr/> | 278 | ··<hr/> |
279 | ··<div·role="contentinfo"> | 279 | ··<div·role="contentinfo"> |
280 | ····<p> | 280 | ····<p> |
281 | ········©·Copyright·2008–202 | 281 | ········©·Copyright·2008–2024,·Scrapy·developers. |
282 | ······<span·class="lastupdated"> | 282 | ······<span·class="lastupdated"> |
283 | ········Last·updated·on·May·20,·2022. | 283 | ········Last·updated·on·May·20,·2022. |
284 | ······</span> | 284 | ······</span> |
285 | ····</p> | 285 | ····</p> |
286 | ··</div> | 286 | ··</div> |
287 | ···· | 287 | ···· |
Offset 122, 9 lines modified | Offset 122, 9 lines modified | ||
122 | ················"Ignoring·response·%(response)r:·HTTP·status·code·is·not | 122 | ················"Ignoring·response·%(response)r:·HTTP·status·code·is·not |
123 | handled·or·not·allowed", | 123 | handled·or·not·allowed", |
124 | ················{'response':·response},·extra={'spider':·spider}, | 124 | ················{'response':·response},·extra={'spider':·spider}, |
125 | ············) | 125 | ············) |
126 | ············return·[] | 126 | ············return·[] |
127 | =============================================================================== | 127 | =============================================================================== |
128 | ©·Copyright·2008â202 | 128 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
129 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 129 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 304, 15 lines modified | Offset 304, 15 lines modified | ||
304 | ··········</div> | 304 | ··········</div> |
305 | ··········<footer> | 305 | ··········<footer> |
306 | ··<hr/> | 306 | ··<hr/> |
307 | ··<div·role="contentinfo"> | 307 | ··<div·role="contentinfo"> |
308 | ····<p> | 308 | ····<p> |
309 | ········©·Copyright·2008–202 | 309 | ········©·Copyright·2008–2024,·Scrapy·developers. |
310 | ······<span·class="lastupdated"> | 310 | ······<span·class="lastupdated"> |
311 | ········Last·updated·on·May·20,·2022. | 311 | ········Last·updated·on·May·20,·2022. |
312 | ······</span> | 312 | ······</span> |
313 | ····</p> | 313 | ····</p> |
314 | ··</div> | 314 | ··</div> |
315 | ···· | 315 | ···· |
Offset 151, 9 lines modified | Offset 151, 9 lines modified | ||
151 | ····pass | 151 | ····pass |
152 | class·PortWarning(Warning): | 152 | class·PortWarning(Warning): |
153 | ····pass | 153 | ····pass |
154 | =============================================================================== | 154 | =============================================================================== |
155 | ©·Copyright·2008â202 | 155 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
156 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 156 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 580, 15 lines modified | Offset 580, 15 lines modified | ||
580 | ··········</div> | 580 | ··········</div> |
581 | ··········<footer> | 581 | ··········<footer> |
582 | ··<hr/> | 582 | ··<hr/> |
583 | ··<div·role="contentinfo"> | 583 | ··<div·role="contentinfo"> |
584 | ····<p> | 584 | ····<p> |
585 | ········©·Copyright·2008–202 | 585 | ········©·Copyright·2008–2024,·Scrapy·developers. |
586 | ······<span·class="lastupdated"> | 586 | ······<span·class="lastupdated"> |
587 | ········Last·updated·on·May·20,·2022. | 587 | ········Last·updated·on·May·20,·2022. |
588 | ······</span> | 588 | ······</span> |
589 | ····</p> | 589 | ····</p> |
590 | ··</div> | 590 | ··</div> |
591 | ···· | 591 | ···· |
Offset 456, 9 lines modified | Offset 456, 9 lines modified | ||
456 | ················if·policy_referrer·!=·request_referrer: | 456 | ················if·policy_referrer·!=·request_referrer: |
457 | ····················if·policy_referrer·is·None: | 457 | ····················if·policy_referrer·is·None: |
458 | ························request.headers.pop('Referer') | 458 | ························request.headers.pop('Referer') |
459 | ····················else: | 459 | ····················else: |
460 | ························request.headers['Referer']·=·policy_referrer | 460 | ························request.headers['Referer']·=·policy_referrer |
461 | =============================================================================== | 461 | =============================================================================== |
462 | ©·Copyright·2008â202 | 462 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
463 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 463 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 256, 15 lines modified | Offset 256, 15 lines modified | ||
256 | ··········</div> | 256 | ··········</div> |
257 | ··········<footer> | 257 | ··········<footer> |
258 | ··<hr/> | 258 | ··<hr/> |
259 | ··<div·role="contentinfo"> | 259 | ··<div·role="contentinfo"> |
260 | ····<p> | 260 | ····<p> |
261 | ········©·Copyright·2008–202 | 261 | ········©·Copyright·2008–2024,·Scrapy·developers. |
262 | ······<span·class="lastupdated"> | 262 | ······<span·class="lastupdated"> |
263 | ········Last·updated·on·May·20,·2022. | 263 | ········Last·updated·on·May·20,·2022. |
264 | ······</span> | 264 | ······</span> |
265 | ····</p> | 265 | ····</p> |
266 | ··</div> | 266 | ··</div> |
267 | ···· | 267 | ···· |
Offset 101, 9 lines modified | Offset 101, 9 lines modified | ||
101 | ················return·False | 101 | ················return·False |
102 | ············else: | 102 | ············else: |
103 | ················return·True | 103 | ················return·True |
104 | ········return·(r·for·r·in·result·or·()·if·_filter(r)) | 104 | ········return·(r·for·r·in·result·or·()·if·_filter(r)) |
105 | =============================================================================== | 105 | =============================================================================== |
106 | ©·Copyright·2008â202 | 106 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
107 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 107 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 360, 15 lines modified | Offset 360, 15 lines modified | ||
360 | ··········</div> | 360 | ··········</div> |
361 | ··········<footer> | 361 | ··········<footer> |
362 | ··<hr/> | 362 | ··<hr/> |
363 | ··<div·role="contentinfo"> | 363 | ··<div·role="contentinfo"> |
364 | ····<p> | 364 | ····<p> |
365 | ········©·Copyright·2008–202 | 365 | ········©·Copyright·2008–2024,·Scrapy·developers. |
366 | ······<span·class="lastupdated"> | 366 | ······<span·class="lastupdated"> |
367 | ········Last·updated·on·May·20,·2022. | 367 | ········Last·updated·on·May·20,·2022. |
368 | ······</span> | 368 | ······</span> |
369 | ····</p> | 369 | ····</p> |
370 | ··</div> | 370 | ··</div> |
371 | ···· | 371 | ···· |
Offset 206, 9 lines modified | Offset 206, 9 lines modified | ||
206 | ····def·from_crawler(cls,·crawler,·*args,·**kwargs): | 206 | ····def·from_crawler(cls,·crawler,·*args,·**kwargs): |
207 | ········spider·=·super().from_crawler(crawler,·*args,·**kwargs) | 207 | ········spider·=·super().from_crawler(crawler,·*args,·**kwargs) |
208 | ········spider._follow_links·=·crawler.settings.getbool | 208 | ········spider._follow_links·=·crawler.settings.getbool |
209 | ('CRAWLSPIDER_FOLLOW_LINKS',·True) | 209 | ('CRAWLSPIDER_FOLLOW_LINKS',·True) |
210 | ········return·spider | 210 | ········return·spider |
211 | =============================================================================== | 211 | =============================================================================== |
212 | ©·Copyright·2008â202 | 212 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
213 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 213 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 356, 15 lines modified | Offset 356, 15 lines modified | ||
356 | ··········</div> | 356 | ··········</div> |
357 | ··········<footer> | 357 | ··········<footer> |
358 | ··<hr/> | 358 | ··<hr/> |
359 | ··<div·role="contentinfo"> | 359 | ··<div·role="contentinfo"> |
360 | ····<p> | 360 | ····<p> |
361 | ········©·Copyright·2008–202 | 361 | ········©·Copyright·2008–2024,·Scrapy·developers. |
362 | ······<span·class="lastupdated"> | 362 | ······<span·class="lastupdated"> |
363 | ········Last·updated·on·May·20,·2022. | 363 | ········Last·updated·on·May·20,·2022. |
364 | ······</span> | 364 | ······</span> |
365 | ····</p> | 365 | ····</p> |
366 | ··</div> | 366 | ··</div> |
367 | ···· | 367 | ···· |
Offset 212, 9 lines modified | Offset 212, 9 lines modified | ||
212 | ········if·not·hasattr(self,·'parse_row'): | 212 | ········if·not·hasattr(self,·'parse_row'): |
213 | ············raise·NotConfigured('You·must·define·parse_row·method·in·order·to | 213 | ············raise·NotConfigured('You·must·define·parse_row·method·in·order·to |
214 | scrape·this·CSV·feed') | 214 | scrape·this·CSV·feed') |
215 | ········response·=·self.adapt_response(response) | 215 | ········response·=·self.adapt_response(response) |
216 | ········return·self.parse_rows(response) | 216 | ········return·self.parse_rows(response) |
217 | =============================================================================== | 217 | =============================================================================== |
218 | ©·Copyright·2008â202 | 218 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
219 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 219 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 320, 15 lines modified | Offset 320, 15 lines modified | ||
320 | ··········</div> | 320 | ··········</div> |
321 | ··········<footer> | 321 | ··········<footer> |
322 | ··<hr/> | 322 | ··<hr/> |
323 | ··<div·role="contentinfo"> | 323 | ··<div·role="contentinfo"> |
324 | ····<p> | 324 | ····<p> |
325 | ········©·Copyright·2008–202 | 325 | ········©·Copyright·2008–2024,·Scrapy·developers. |
326 | ······<span·class="lastupdated"> | 326 | ······<span·class="lastupdated"> |
327 | ········Last·updated·on·May·20,·2022. | 327 | ········Last·updated·on·May·20,·2022. |
328 | ······</span> | 328 | ······</span> |
329 | ····</p> | 329 | ····</p> |
330 | ··</div> | 330 | ··</div> |
331 | ···· | 331 | ···· |
Offset 165, 9 lines modified | Offset 165, 9 lines modified | ||
165 | ········yield·d['loc'] | 165 | ········yield·d['loc'] |
166 | ········#·Also·consider·alternate·URLs·(xhtml:link·rel="alternate") | 166 | ········#·Also·consider·alternate·URLs·(xhtml:link·rel="alternate") |
167 | ········if·alt·and·'alternate'·in·d: | 167 | ········if·alt·and·'alternate'·in·d: |
168 | ············yield·from·d['alternate'] | 168 | ············yield·from·d['alternate'] |
169 | =============================================================================== | 169 | =============================================================================== |
170 | ©·Copyright·2008â202 | 170 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
171 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 171 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 337, 15 lines modified | Offset 337, 15 lines modified | ||
337 | ··········</div> | 337 | ··········</div> |
338 | ··········<footer> | 338 | ··········<footer> |
339 | ··<hr/> | 339 | ··<hr/> |
340 | ··<div·role="contentinfo"> | 340 | ··<div·role="contentinfo"> |
341 | ····<p> | 341 | ····<p> |
342 | ········©·Copyright·2008–202 | 342 | ········©·Copyright·2008–2024,·Scrapy·developers. |
343 | ······<span·class="lastupdated"> | 343 | ······<span·class="lastupdated"> |
344 | ········Last·updated·on·May·20,·2022. | 344 | ········Last·updated·on·May·20,·2022. |
345 | ······</span> | 345 | ······</span> |
346 | ····</p> | 346 | ····</p> |
347 | ··</div> | 347 | ··</div> |
348 | ···· | 348 | ···· |
Offset 186, 9 lines modified | Offset 186, 9 lines modified | ||
186 | #·Top-level·imports | 186 | #·Top-level·imports |
187 | from·scrapy.spiders.crawl·import·CrawlSpider,·Rule | 187 | from·scrapy.spiders.crawl·import·CrawlSpider,·Rule |
188 | from·scrapy.spiders.feed·import·XMLFeedSpider,·CSVFeedSpider | 188 | from·scrapy.spiders.feed·import·XMLFeedSpider,·CSVFeedSpider |
189 | from·scrapy.spiders.sitemap·import·SitemapSpider | 189 | from·scrapy.spiders.sitemap·import·SitemapSpider |
190 | =============================================================================== | 190 | =============================================================================== |
191 | ©·Copyright·2008â202 | 191 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
192 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 192 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 301, 15 lines modified | Offset 301, 15 lines modified | ||
301 | ··········</div> | 301 | ··········</div> |
302 | ··········<footer> | 302 | ··········<footer> |
303 | ··<hr/> | 303 | ··<hr/> |
304 | ··<div·role="contentinfo"> | 304 | ··<div·role="contentinfo"> |
305 | ····<p> | 305 | ····<p> |
306 | ········©·Copyright·2008–202 | 306 | ········©·Copyright·2008–2024,·Scrapy·developers. |
307 | ······<span·class="lastupdated"> | 307 | ······<span·class="lastupdated"> |
308 | ········Last·updated·on·May·20,·2022. | 308 | ········Last·updated·on·May·20,·2022. |
309 | ······</span> | 309 | ······</span> |
310 | ····</p> | 310 | ····</p> |
311 | ··</div> | 311 | ··</div> |
312 | ···· | 312 | ···· |
Offset 157, 9 lines modified | Offset 157, 9 lines modified | ||
157 | ····def·max_value(self,·key,·value,·spider=None): | 157 | ····def·max_value(self,·key,·value,·spider=None): |
158 | ········pass | 158 | ········pass |
159 | ····def·min_value(self,·key,·value,·spider=None): | 159 | ····def·min_value(self,·key,·value,·spider=None): |
160 | ········pass | 160 | ········pass |
161 | =============================================================================== | 161 | =============================================================================== |
162 | ©·Copyright·2008â202 | 162 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
163 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 163 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 319, 15 lines modified | Offset 319, 15 lines modified | ||
319 | ··········</div> | 319 | ··········</div> |
320 | ··········<footer> | 320 | ··········<footer> |
321 | ··<hr/> | 321 | ··<hr/> |
322 | ··<div·role="contentinfo"> | 322 | ··<div·role="contentinfo"> |
323 | ····<p> | 323 | ····<p> |
324 | ········©·Copyright·2008–202 | 324 | ········©·Copyright·2008–2024,·Scrapy·developers. |
325 | ······<span·class="lastupdated"> | 325 | ······<span·class="lastupdated"> |
326 | ········Last·updated·on·May·20,·2022. | 326 | ········Last·updated·on·May·20,·2022. |
327 | ······</span> | 327 | ······</span> |
328 | ····</p> | 328 | ····</p> |
329 | ··</div> | 329 | ··</div> |
330 | ···· | 330 | ···· |
Offset 162, 9 lines modified | Offset 162, 9 lines modified | ||
162 | ············#·if·the·"data"·is·specified·but·the·"method"·is·not·specified, | 162 | ············#·if·the·"data"·is·specified·but·the·"method"·is·not·specified, |
163 | ············#·the·default·method·is·'POST' | 163 | ············#·the·default·method·is·'POST' |
164 | ············result['method']·=·'POST' | 164 | ············result['method']·=·'POST' |
165 | ····return·result | 165 | ····return·result |
166 | =============================================================================== | 166 | =============================================================================== |
167 | ©·Copyright·2008â202 | 167 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
168 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 168 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 434, 15 lines modified | Offset 434, 15 lines modified | ||
434 | ··········</div> | 434 | ··········</div> |
435 | ··········<footer> | 435 | ··········<footer> |
436 | ··<hr/> | 436 | ··<hr/> |
437 | ··<div·role="contentinfo"> | 437 | ··<div·role="contentinfo"> |
438 | ····<p> | 438 | ····<p> |
439 | ········©·Copyright·2008–202 | 439 | ········©·Copyright·2008–2024,·Scrapy·developers. |
440 | ······<span·class="lastupdated"> | 440 | ······<span·class="lastupdated"> |
441 | ········Last·updated·on·May·20,·2022. | 441 | ········Last·updated·on·May·20,·2022. |
442 | ······</span> | 442 | ······</span> |
443 | ····</p> | 443 | ····</p> |
444 | ··</div> | 444 | ··</div> |
445 | ···· | 445 | ···· |
Offset 281, 9 lines modified | Offset 281, 9 lines modified | ||
281 | ····#·NOTE:·This·also·handles·'args'·being·an·empty·dict,·that·case·doesn't | 281 | ····#·NOTE:·This·also·handles·'args'·being·an·empty·dict,·that·case·doesn't |
282 | ····#·play·well·in·logger.log·calls | 282 | ····#·play·well·in·logger.log·calls |
283 | ····args·=·logkws·if·not·logkws.get('args')·else·logkws['args'] | 283 | ····args·=·logkws·if·not·logkws.get('args')·else·logkws['args'] |
284 | ····return·(level,·message,·args) | 284 | ····return·(level,·message,·args) |
285 | =============================================================================== | 285 | =============================================================================== |
286 | ©·Copyright·2008â202 | 286 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
287 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 287 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 309, 15 lines modified | Offset 309, 15 lines modified | ||
309 | ··········</div> | 309 | ··········</div> |
310 | ··········<footer> | 310 | ··········<footer> |
311 | ··<hr/> | 311 | ··<hr/> |
312 | ··<div·role="contentinfo"> | 312 | ··<div·role="contentinfo"> |
313 | ····<p> | 313 | ····<p> |
314 | ········©·Copyright·2008–202 | 314 | ········©·Copyright·2008–2024,·Scrapy·developers. |
315 | ······<span·class="lastupdated"> | 315 | ······<span·class="lastupdated"> |
316 | ········Last·updated·on·May·20,·2022. | 316 | ········Last·updated·on·May·20,·2022. |
317 | ······</span> | 317 | ······</span> |
318 | ····</p> | 318 | ····</p> |
319 | ··</div> | 319 | ··</div> |
320 | ···· | 320 | ···· |
Offset 153, 9 lines modified | Offset 153, 9 lines modified | ||
153 | def·is_asyncio_reactor_installed(): | 153 | def·is_asyncio_reactor_installed(): |
154 | ····from·twisted.internet·import·reactor | 154 | ····from·twisted.internet·import·reactor |
155 | ····return·isinstance(reactor,·asyncioreactor.AsyncioSelectorReactor) | 155 | ····return·isinstance(reactor,·asyncioreactor.AsyncioSelectorReactor) |
156 | =============================================================================== | 156 | =============================================================================== |
157 | ©·Copyright·2008â202 | 157 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
158 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 158 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 285, 15 lines modified | Offset 285, 15 lines modified | ||
285 | ··········</div> | 285 | ··········</div> |
286 | ··········<footer> | 286 | ··········<footer> |
287 | ··<hr/> | 287 | ··<hr/> |
288 | ··<div·role="contentinfo"> | 288 | ··<div·role="contentinfo"> |
289 | ····<p> | 289 | ····<p> |
290 | ········©·Copyright·2008–202 | 290 | ········©·Copyright·2008–2024,·Scrapy·developers. |
291 | ······<span·class="lastupdated"> | 291 | ······<span·class="lastupdated"> |
292 | ········Last·updated·on·May·20,·2022. | 292 | ········Last·updated·on·May·20,·2022. |
293 | ······</span> | 293 | ······</span> |
294 | ····</p> | 294 | ····</p> |
295 | ··</div> | 295 | ··</div> |
296 | ···· | 296 | ···· |
Offset 132, 9 lines modified | Offset 132, 9 lines modified | ||
132 | [docs]def·iter_all(class_name): | 132 | [docs]def·iter_all(class_name): |
133 | ····"""Iterate·over·all·objects·of·the·same·class·by·its·class·name""" | 133 | ····"""Iterate·over·all·objects·of·the·same·class·by·its·class·name""" |
134 | ····for·cls,·wdict·in·live_refs.items(): | 134 | ····for·cls,·wdict·in·live_refs.items(): |
135 | ········if·cls.__name__·==·class_name: | 135 | ········if·cls.__name__·==·class_name: |
136 | ············return·wdict.keys() | 136 | ············return·wdict.keys() |
137 | =============================================================================== | 137 | =============================================================================== |
138 | ©·Copyright·2008â202 | 138 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
139 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 139 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 466, 15 lines modified | Offset 466, 15 lines modified | ||
466 | ········<a·href="news.html"·class="btn·btn-neutral·float-left"·title="Release·notes"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 466 | ········<a·href="news.html"·class="btn·btn-neutral·float-left"·title="Release·notes"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
467 | ····</div> | 467 | ····</div> |
468 | ··<hr/> | 468 | ··<hr/> |
469 | ··<div·role="contentinfo"> | 469 | ··<div·role="contentinfo"> |
470 | ····<p> | 470 | ····<p> |
471 | ········©·Copyright·2008–202 | 471 | ········©·Copyright·2008–2024,·Scrapy·developers. |
472 | ······<span·class="lastupdated"> | 472 | ······<span·class="lastupdated"> |
473 | ········Last·updated·on·May·20,·2022. | 473 | ········Last·updated·on·May·20,·2022. |
474 | ······</span> | 474 | ······</span> |
475 | ····</p> | 475 | ····</p> |
476 | ··</div> | 476 | ··</div> |
477 | ···· | 477 | ···· |
Offset 243, 9 lines modified | Offset 243, 9 lines modified | ||
243 | name·typically·resembles·the·full·path·of·the·module·theyâre·testing.·For | 243 | name·typically·resembles·the·full·path·of·the·module·theyâre·testing.·For |
244 | example,·the·item·loaders·code·is·in: | 244 | example,·the·item·loaders·code·is·in: |
245 | scrapy.loader | 245 | scrapy.loader |
246 | And·their·unit-tests·are·in: | 246 | And·their·unit-tests·are·in: |
247 | tests/test_loader.py | 247 | tests/test_loader.py |
248 | Next·Previous | 248 | Next·Previous |
249 | =============================================================================== | 249 | =============================================================================== |
250 | ©·Copyright·2008â202 | 250 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
251 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 251 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 554, 15 lines modified | Offset 554, 15 lines modified | ||
554 | ········<a·href="topics/webservice.html"·class="btn·btn-neutral·float-left"·title="Web·Service"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 554 | ········<a·href="topics/webservice.html"·class="btn·btn-neutral·float-left"·title="Web·Service"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
555 | ····</div> | 555 | ····</div> |
556 | ··<hr/> | 556 | ··<hr/> |
557 | ··<div·role="contentinfo"> | 557 | ··<div·role="contentinfo"> |
558 | ····<p> | 558 | ····<p> |
559 | ········©·Copyright·2008–202 | 559 | ········©·Copyright·2008–2024,·Scrapy·developers. |
560 | ······<span·class="lastupdated"> | 560 | ······<span·class="lastupdated"> |
561 | ········Last·updated·on·May·20,·2022. | 561 | ········Last·updated·on·May·20,·2022. |
562 | ······</span> | 562 | ······</span> |
563 | ····</p> | 563 | ····</p> |
564 | ··</div> | 564 | ··</div> |
565 | ···· | 565 | ···· |
Offset 308, 9 lines modified | Offset 308, 9 lines modified | ||
308 | response.·For·instance,·if·you·only·need·the·first·part·of·a·large·response·and | 308 | response.·For·instance,·if·you·only·need·the·first·part·of·a·large·response·and |
309 | you·would·like·to·save·resources·by·avoiding·the·download·of·the·whole·body.·In | 309 | you·would·like·to·save·resources·by·avoiding·the·download·of·the·whole·body.·In |
310 | that·case,·you·could·attach·a·handler·to·the·bytes_received·signal·and·raise·a | 310 | that·case,·you·could·attach·a·handler·to·the·bytes_received·signal·and·raise·a |
311 | StopDownload·exception.·Please·refer·to·the·Stopping_the_download_of_a_Response | 311 | StopDownload·exception.·Please·refer·to·the·Stopping_the_download_of_a_Response |
312 | topic·for·additional·information·and·examples. | 312 | topic·for·additional·information·and·examples. |
313 | Next·Previous | 313 | Next·Previous |
314 | =============================================================================== | 314 | =============================================================================== |
315 | ©·Copyright·2008â202 | 315 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
316 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 316 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 3717, 15 lines modified | Offset 3717, 15 lines modified | ||
3717 | ··········</div> | 3717 | ··········</div> |
3718 | ··········<footer> | 3718 | ··········<footer> |
3719 | ··<hr/> | 3719 | ··<hr/> |
3720 | ··<div·role="contentinfo"> | 3720 | ··<div·role="contentinfo"> |
3721 | ····<p> | 3721 | ····<p> |
3722 | ········©·Copyright·2008–202 | 3722 | ········©·Copyright·2008–2024,·Scrapy·developers. |
3723 | ······<span·class="lastupdated"> | 3723 | ······<span·class="lastupdated"> |
3724 | ········Last·updated·on·May·20,·2022. | 3724 | ········Last·updated·on·May·20,·2022. |
3725 | ······</span> | 3725 | ······</span> |
3726 | ····</p> | 3726 | ····</p> |
3727 | ··</div> | 3727 | ··</div> |
3728 | ···· | 3728 | ···· |
Offset 990, 9 lines modified | Offset 990, 9 lines modified | ||
990 | ······scrapy.spiders)·················method) | 990 | ······scrapy.spiders)·················method) |
991 | ····*·XmlItemExporter_(class_in···········o·(scrapy.selector.Selector | 991 | ····*·XmlItemExporter_(class_in···········o·(scrapy.selector.Selector |
992 | ······scrapy.exporters)·····················method) | 992 | ······scrapy.exporters)·····················method) |
993 | ····*·XmlResponse_(class_in···············o·(scrapy.selector.SelectorList | 993 | ····*·XmlResponse_(class_in···············o·(scrapy.selector.SelectorList |
994 | ······scrapy.http)··························method) | 994 | ······scrapy.http)··························method) |
995 | =============================================================================== | 995 | =============================================================================== |
996 | ©·Copyright·2008â202 | 996 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
997 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 997 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 378, 15 lines modified | Offset 378, 15 lines modified | ||
378 | ········<a·href="intro/overview.html"·class="btn·btn-neutral·float-right"·title="Scrapy·at·a·glance"·accesskey="n"·rel="next">Next·<span·class="fa·fa-arrow-circle-right"·aria-hidden="true"></span></a> | 378 | ········<a·href="intro/overview.html"·class="btn·btn-neutral·float-right"·title="Scrapy·at·a·glance"·accesskey="n"·rel="next">Next·<span·class="fa·fa-arrow-circle-right"·aria-hidden="true"></span></a> |
379 | ····</div> | 379 | ····</div> |
380 | ··<hr/> | 380 | ··<hr/> |
381 | ··<div·role="contentinfo"> | 381 | ··<div·role="contentinfo"> |
382 | ····<p> | 382 | ····<p> |
383 | ········©·Copyright·2008–202 | 383 | ········©·Copyright·2008–2024,·Scrapy·developers. |
384 | ······<span·class="lastupdated"> | 384 | ······<span·class="lastupdated"> |
385 | ········Last·updated·on·May·20,·2022. | 385 | ········Last·updated·on·May·20,·2022. |
386 | ······</span> | 386 | ······</span> |
387 | ····</p> | 387 | ····</p> |
388 | ··</div> | 388 | ··</div> |
389 | ···· | 389 | ···· |
Offset 173, 9 lines modified | Offset 173, 9 lines modified | ||
173 | ······See·what·has·changed·in·recent·Scrapy·versions. | 173 | ······See·what·has·changed·in·recent·Scrapy·versions. |
174 | ··Contributing_to_Scrapy | 174 | ··Contributing_to_Scrapy |
175 | ······Learn·how·to·contribute·to·the·Scrapy·project. | 175 | ······Learn·how·to·contribute·to·the·Scrapy·project. |
176 | ··Versioning_and_API_stability | 176 | ··Versioning_and_API_stability |
177 | ······Understand·Scrapy·versioning·and·API·stability. | 177 | ······Understand·Scrapy·versioning·and·API·stability. |
178 | Next | 178 | Next |
179 | =============================================================================== | 179 | =============================================================================== |
180 | ©·Copyright·2008â202 | 180 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
181 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 181 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 239, 15 lines modified | Offset 239, 15 lines modified | ||
239 | ········<a·href="tutorial.html"·class="btn·btn-neutral·float-left"·title="Scrapy·Tutorial"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 239 | ········<a·href="tutorial.html"·class="btn·btn-neutral·float-left"·title="Scrapy·Tutorial"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
240 | ····</div> | 240 | ····</div> |
241 | ··<hr/> | 241 | ··<hr/> |
242 | ··<div·role="contentinfo"> | 242 | ··<div·role="contentinfo"> |
243 | ····<p> | 243 | ····<p> |
244 | ········©·Copyright·2008–202 | 244 | ········©·Copyright·2008–2024,·Scrapy·developers. |
245 | ······<span·class="lastupdated"> | 245 | ······<span·class="lastupdated"> |
246 | ········Last·updated·on·May·20,·2022. | 246 | ········Last·updated·on·May·20,·2022. |
247 | ······</span> | 247 | ······</span> |
248 | ····</p> | 248 | ····</p> |
249 | ··</div> | 249 | ··</div> |
250 | ···· | 250 | ···· |
Offset 73, 9 lines modified | Offset 73, 9 lines modified | ||
73 | expressions. | 73 | expressions. |
74 | The·quotesbot·project·is·available·at:·https://github.com/scrapy/quotesbot.·You | 74 | The·quotesbot·project·is·available·at:·https://github.com/scrapy/quotesbot.·You |
75 | can·find·more·information·about·it·in·the·projectâs·README. | 75 | can·find·more·information·about·it·in·the·projectâs·README. |
76 | If·youâre·familiar·with·git,·you·can·checkout·the·code.·Otherwise·you·can | 76 | If·youâre·familiar·with·git,·you·can·checkout·the·code.·Otherwise·you·can |
77 | download·the·project·as·a·zip·file·by·clicking·here. | 77 | download·the·project·as·a·zip·file·by·clicking·here. |
78 | Next·Previous | 78 | Next·Previous |
79 | =============================================================================== | 79 | =============================================================================== |
80 | ©·Copyright·2008â202 | 80 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
81 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 81 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 461, 15 lines modified | Offset 461, 15 lines modified | ||
461 | ········<a·href="overview.html"·class="btn·btn-neutral·float-left"·title="Scrapy·at·a·glance"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 461 | ········<a·href="overview.html"·class="btn·btn-neutral·float-left"·title="Scrapy·at·a·glance"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
462 | ····</div> | 462 | ····</div> |
463 | ··<hr/> | 463 | ··<hr/> |
464 | ··<div·role="contentinfo"> | 464 | ··<div·role="contentinfo"> |
465 | ····<p> | 465 | ····<p> |
466 | ········©·Copyright·2008–202 | 466 | ········©·Copyright·2008–2024,·Scrapy·developers. |
467 | ······<span·class="lastupdated"> | 467 | ······<span·class="lastupdated"> |
468 | ········Last·updated·on·May·20,·2022. | 468 | ········Last·updated·on·May·20,·2022. |
469 | ······</span> | 469 | ······</span> |
470 | ····</p> | 470 | ····</p> |
471 | ··</div> | 471 | ··</div> |
472 | ···· | 472 | ···· |
Offset 222, 9 lines modified | Offset 222, 9 lines modified | ||
222 | has·a·version·of·pyOpenSSL·that·your·version·of·Twisted·does·not·support. | 222 | has·a·version·of·pyOpenSSL·that·your·version·of·Twisted·does·not·support. |
223 | To·install·a·version·of·pyOpenSSL·that·your·version·of·Twisted·supports, | 223 | To·install·a·version·of·pyOpenSSL·that·your·version·of·Twisted·supports, |
224 | reinstall·Twisted·with·the·tls·extra·option: | 224 | reinstall·Twisted·with·the·tls·extra·option: |
225 | pip·install·twisted[tls] | 225 | pip·install·twisted[tls] |
226 | For·details,·see·Issue_#2473. | 226 | For·details,·see·Issue_#2473. |
227 | Next·Previous | 227 | Next·Previous |
228 | =============================================================================== | 228 | =============================================================================== |
229 | ©·Copyright·2008â202 | 229 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
230 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 230 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 361, 15 lines modified | Offset 361, 15 lines modified | ||
361 | ········<a·href="../index.html"·class="btn·btn-neutral·float-left"·title="Scrapy·2.4·documentation"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 361 | ········<a·href="../index.html"·class="btn·btn-neutral·float-left"·title="Scrapy·2.4·documentation"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
362 | ····</div> | 362 | ····</div> |
363 | ··<hr/> | 363 | ··<hr/> |
364 | ··<div·role="contentinfo"> | 364 | ··<div·role="contentinfo"> |
365 | ····<p> | 365 | ····<p> |
366 | ········©·Copyright·2008–202 | 366 | ········©·Copyright·2008–2024,·Scrapy·developers. |
367 | ······<span·class="lastupdated"> | 367 | ······<span·class="lastupdated"> |
368 | ········Last·updated·on·May·20,·2022. | 368 | ········Last·updated·on·May·20,·2022. |
369 | ······</span> | 369 | ······</span> |
370 | ····</p> | 370 | ····</p> |
371 | ··</div> | 371 | ··</div> |
372 | ···· | 372 | ···· |
Offset 172, 9 lines modified | Offset 172, 9 lines modified | ||
172 | ······resolver,·and·much·more! | 172 | ······resolver,·and·much·more! |
173 | *****·Whatâs·next?¶·***** | 173 | *****·Whatâs·next?¶·***** |
174 | The·next·steps·for·you·are·to·install_Scrapy,·follow_through_the_tutorial·to | 174 | The·next·steps·for·you·are·to·install_Scrapy,·follow_through_the_tutorial·to |
175 | learn·how·to·create·a·full-blown·Scrapy·project·and·join_the_community.·Thanks | 175 | learn·how·to·create·a·full-blown·Scrapy·project·and·join_the_community.·Thanks |
176 | for·your·interest! | 176 | for·your·interest! |
177 | Next·Previous | 177 | Next·Previous |
178 | =============================================================================== | 178 | =============================================================================== |
179 | ©·Copyright·2008â202 | 179 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
180 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 180 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 912, 15 lines modified | Offset 912, 15 lines modified | ||
912 | ········<a·href="install.html"·class="btn·btn-neutral·float-left"·title="Installation·guide"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 912 | ········<a·href="install.html"·class="btn·btn-neutral·float-left"·title="Installation·guide"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
913 | ····</div> | 913 | ····</div> |
914 | ··<hr/> | 914 | ··<hr/> |
915 | ··<div·role="contentinfo"> | 915 | ··<div·role="contentinfo"> |
916 | ····<p> | 916 | ····<p> |
917 | ········©·Copyright·2008–202 | 917 | ········©·Copyright·2008–2024,·Scrapy·developers. |
918 | ······<span·class="lastupdated"> | 918 | ······<span·class="lastupdated"> |
919 | ········Last·updated·on·May·20,·2022. | 919 | ········Last·updated·on·May·20,·2022. |
920 | ······</span> | 920 | ······</span> |
921 | ····</p> | 921 | ····</p> |
922 | ··</div> | 922 | ··</div> |
923 | ···· | 923 | ···· |
Offset 624, 9 lines modified | Offset 624, 9 lines modified | ||
624 | chapter·for·a·quick·overview·of·the·most·important·ones. | 624 | chapter·for·a·quick·overview·of·the·most·important·ones. |
625 | You·can·continue·from·the·section·Basic_concepts·to·know·more·about·the | 625 | You·can·continue·from·the·section·Basic_concepts·to·know·more·about·the |
626 | command-line·tool,·spiders,·selectors·and·other·things·the·tutorial·hasnât | 626 | command-line·tool,·spiders,·selectors·and·other·things·the·tutorial·hasnât |
627 | covered·like·modeling·the·scraped·data.·If·you·prefer·to·play·with·an·example | 627 | covered·like·modeling·the·scraped·data.·If·you·prefer·to·play·with·an·example |
628 | project,·check·the·Examples·section. | 628 | project,·check·the·Examples·section. |
629 | Next·Previous | 629 | Next·Previous |
630 | =============================================================================== | 630 | =============================================================================== |
631 | ©·Copyright·2008â202 | 631 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
632 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 632 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 4518, 15 lines modified | Offset 4518, 15 lines modified | ||
4518 | ········<a·href="topics/exporters.html"·class="btn·btn-neutral·float-left"·title="Item·Exporters"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 4518 | ········<a·href="topics/exporters.html"·class="btn·btn-neutral·float-left"·title="Item·Exporters"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
4519 | ····</div> | 4519 | ····</div> |
4520 | ··<hr/> | 4520 | ··<hr/> |
4521 | ··<div·role="contentinfo"> | 4521 | ··<div·role="contentinfo"> |
4522 | ····<p> | 4522 | ····<p> |
4523 | ········©·Copyright·2008–202 | 4523 | ········©·Copyright·2008–2024,·Scrapy·developers. |
4524 | ······<span·class="lastupdated"> | 4524 | ······<span·class="lastupdated"> |
4525 | ········Last·updated·on·May·20,·2022. | 4525 | ········Last·updated·on·May·20,·2022. |
4526 | ······</span> | 4526 | ······</span> |
4527 | ····</p> | 4527 | ····</p> |
4528 | ··</div> | 4528 | ··</div> |
4529 | ···· | 4529 | ···· |
Offset 3288, 9 lines modified | Offset 3288, 9 lines modified | ||
3288 | ····*·Renamed·extension:·DelayedCloseDomain·to·SpiderCloseDelay·(r1861·|·#121) | 3288 | ····*·Renamed·extension:·DelayedCloseDomain·to·SpiderCloseDelay·(r1861·|·#121) |
3289 | ····*·Removed·obsolete·scrapy.utils.markup.remove_escape_chars·function·-·use | 3289 | ····*·Removed·obsolete·scrapy.utils.markup.remove_escape_chars·function·-·use |
3290 | ······scrapy.utils.markup.replace_escape_chars·instead·(r1865) | 3290 | ······scrapy.utils.markup.replace_escape_chars·instead·(r1865) |
3291 | *****·Scrapy·0.7¶·***** | 3291 | *****·Scrapy·0.7¶·***** |
3292 | First·release·of·Scrapy. | 3292 | First·release·of·Scrapy. |
3293 | Next·Previous | 3293 | Next·Previous |
3294 | =============================================================================== | 3294 | =============================================================================== |
3295 | ©·Copyright·2008â202 | 3295 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
3296 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 3296 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 502, 15 lines modified | Offset 502, 15 lines modified | ||
502 | ··········</div> | 502 | ··········</div> |
503 | ··········<footer> | 503 | ··········<footer> |
504 | ··<hr/> | 504 | ··<hr/> |
505 | ··<div·role="contentinfo"> | 505 | ··<div·role="contentinfo"> |
506 | ····<p> | 506 | ····<p> |
507 | ········©·Copyright·2008–202 | 507 | ········©·Copyright·2008–2024,·Scrapy·developers. |
508 | ······<span·class="lastupdated"> | 508 | ······<span·class="lastupdated"> |
509 | ········Last·updated·on·May·20,·2022. | 509 | ········Last·updated·on·May·20,·2022. |
510 | ······</span> | 510 | ······</span> |
511 | ····</p> | 511 | ····</p> |
512 | ··</div> | 512 | ··</div> |
513 | ···· | 513 | ···· |
Offset 128, 9 lines modified | Offset 128, 9 lines modified | ||
128 | ·················································manager·and·spider·middleware | 128 | ·················································manager·and·spider·middleware |
129 | ···· ·scrapy.statscollectors················Stats·Collectors | 129 | ···· ·scrapy.statscollectors················Stats·Collectors |
130 | ···· ·scrapy.utils.log······················Logging·utils | 130 | ···· ·scrapy.utils.log······················Logging·utils |
131 | ···· ·scrapy.utils.trackref·················Track·references·of·live | 131 | ···· ·scrapy.utils.trackref·················Track·references·of·live |
132 | ·················································objects | 132 | ·················································objects |
133 | =============================================================================== | 133 | =============================================================================== |
134 | ©·Copyright·2008â202 | 134 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
135 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 135 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 230, 15 lines modified | Offset 230, 15 lines modified | ||
230 | ··········</div> | 230 | ··········</div> |
231 | ··········<footer> | 231 | ··········<footer> |
232 | ··<hr/> | 232 | ··<hr/> |
233 | ··<div·role="contentinfo"> | 233 | ··<div·role="contentinfo"> |
234 | ····<p> | 234 | ····<p> |
235 | ········©·Copyright·2008–202 | 235 | ········©·Copyright·2008–2024,·Scrapy·developers. |
236 | ······<span·class="lastupdated"> | 236 | ······<span·class="lastupdated"> |
237 | ········Last·updated·on·May·20,·2022. | 237 | ········Last·updated·on·May·20,·2022. |
238 | ······</span> | 238 | ······</span> |
239 | ····</p> | 239 | ····</p> |
240 | ··</div> | 240 | ··</div> |
241 | ···· | 241 | ···· |
Offset 61, 9 lines modified | Offset 61, 9 lines modified | ||
61 | ····Scrapy | 61 | ····Scrapy |
62 | ····*··» | 62 | ····*··» |
63 | ····*·Search | 63 | ····*·Search |
64 | =============================================================================== | 64 | =============================================================================== |
65 | Please·activate·JavaScript·to·enable·the·search·functionality. | 65 | Please·activate·JavaScript·to·enable·the·search·functionality. |
66 | =============================================================================== | 66 | =============================================================================== |
67 | ©·Copyright·2008â202 | 67 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
68 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 68 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 994, 15 lines modified | Offset 994, 15 lines modified | ||
994 | ········<a·href="extensions.html"·class="btn·btn-neutral·float-left"·title="Extensions"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 994 | ········<a·href="extensions.html"·class="btn·btn-neutral·float-left"·title="Extensions"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
995 | ····</div> | 995 | ····</div> |
996 | ··<hr/> | 996 | ··<hr/> |
997 | ··<div·role="contentinfo"> | 997 | ··<div·role="contentinfo"> |
998 | ····<p> | 998 | ····<p> |
999 | ········©·Copyright·2008–202 | 999 | ········©·Copyright·2008–2024,·Scrapy·developers. |
1000 | ······<span·class="lastupdated"> | 1000 | ······<span·class="lastupdated"> |
1001 | ········Last·updated·on·May·20,·2022. | 1001 | ········Last·updated·on·May·20,·2022. |
1002 | ······</span> | 1002 | ······</span> |
1003 | ····</p> | 1003 | ····</p> |
1004 | ··</div> | 1004 | ··</div> |
1005 | ···· | 1005 | ···· |
Offset 473, 9 lines modified | Offset 473, 9 lines modified | ||
473 | ········open_spider(spider)[source]¶ | 473 | ········open_spider(spider)[source]¶ |
474 | ············Open·the·given·spider·for·stats·collection. | 474 | ············Open·the·given·spider·for·stats·collection. |
475 | ········close_spider(spider)[source]¶ | 475 | ········close_spider(spider)[source]¶ |
476 | ············Close·the·given·spider.·After·this·is·called,·no·more·specific | 476 | ············Close·the·given·spider.·After·this·is·called,·no·more·specific |
477 | ············stats·can·be·accessed·or·collected. | 477 | ············stats·can·be·accessed·or·collected. |
478 | Next·Previous | 478 | Next·Previous |
479 | =============================================================================== | 479 | =============================================================================== |
480 | ©·Copyright·2008â202 | 480 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
481 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 481 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 370, 15 lines modified | Offset 370, 15 lines modified | ||
370 | ········<a·href="asyncio.html"·class="btn·btn-neutral·float-left"·title="asyncio"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 370 | ········<a·href="asyncio.html"·class="btn·btn-neutral·float-left"·title="asyncio"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
371 | ····</div> | 371 | ····</div> |
372 | ··<hr/> | 372 | ··<hr/> |
373 | ··<div·role="contentinfo"> | 373 | ··<div·role="contentinfo"> |
374 | ····<p> | 374 | ····<p> |
375 | ········©·Copyright·2008–202 | 375 | ········©·Copyright·2008–2024,·Scrapy·developers. |
376 | ······<span·class="lastupdated"> | 376 | ······<span·class="lastupdated"> |
377 | ········Last·updated·on·May·20,·2022. | 377 | ········Last·updated·on·May·20,·2022. |
378 | ······</span> | 378 | ······</span> |
379 | ····</p> | 379 | ····</p> |
380 | ··</div> | 380 | ··</div> |
381 | ···· | 381 | ···· |
Offset 159, 9 lines modified | Offset 159, 9 lines modified | ||
159 | For·more·information·about·asynchronous·programming·and·Twisted·see·these | 159 | For·more·information·about·asynchronous·programming·and·Twisted·see·these |
160 | links: | 160 | links: |
161 | ····*·twisted:core/howto/defer-intro | 161 | ····*·twisted:core/howto/defer-intro |
162 | ····*·Twisted_-_hello,_asynchronous_programming | 162 | ····*·Twisted_-_hello,_asynchronous_programming |
163 | ····*·Twisted_Introduction_-_Krondo | 163 | ····*·Twisted_Introduction_-_Krondo |
164 | Next·Previous | 164 | Next·Previous |
165 | =============================================================================== | 165 | =============================================================================== |
166 | ©·Copyright·2008â202 | 166 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
167 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 167 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 263, 15 lines modified | Offset 263, 15 lines modified | ||
263 | ········<a·href="coroutines.html"·class="btn·btn-neutral·float-left"·title="Coroutines"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 263 | ········<a·href="coroutines.html"·class="btn·btn-neutral·float-left"·title="Coroutines"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
264 | ····</div> | 264 | ····</div> |
265 | ··<hr/> | 265 | ··<hr/> |
266 | ··<div·role="contentinfo"> | 266 | ··<div·role="contentinfo"> |
267 | ····<p> | 267 | ····<p> |
268 | ········©·Copyright·2008–202 | 268 | ········©·Copyright·2008–2024,·Scrapy·developers. |
269 | ······<span·class="lastupdated"> | 269 | ······<span·class="lastupdated"> |
270 | ········Last·updated·on·May·20,·2022. | 270 | ········Last·updated·on·May·20,·2022. |
271 | ······</span> | 271 | ······</span> |
272 | ····</p> | 272 | ····</p> |
273 | ··</div> | 273 | ··</div> |
274 | ···· | 274 | ···· |
Offset 83, 9 lines modified | Offset 83, 9 lines modified | ||
83 | install_reactor('twisted.internet.asyncioreactor.AsyncioSelectorReactor') | 83 | install_reactor('twisted.internet.asyncioreactor.AsyncioSelectorReactor') |
84 | *****·Using·custom·asyncio·loops¶·***** | 84 | *****·Using·custom·asyncio·loops¶·***** |
85 | You·can·also·use·custom·asyncio·event·loops·with·the·asyncio·reactor.·Set·the | 85 | You·can·also·use·custom·asyncio·event·loops·with·the·asyncio·reactor.·Set·the |
86 | ASYNCIO_EVENT_LOOP·setting·to·the·import·path·of·the·desired·event·loop·class | 86 | ASYNCIO_EVENT_LOOP·setting·to·the·import·path·of·the·desired·event·loop·class |
87 | to·use·it·instead·of·the·default·asyncio·event·loop. | 87 | to·use·it·instead·of·the·default·asyncio·event·loop. |
88 | Next·Previous | 88 | Next·Previous |
89 | =============================================================================== | 89 | =============================================================================== |
90 | ©·Copyright·2008â202 | 90 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
91 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 91 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 369, 15 lines modified | Offset 369, 15 lines modified | ||
369 | ········<a·href="deploy.html"·class="btn·btn-neutral·float-left"·title="Deploying·Spiders"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 369 | ········<a·href="deploy.html"·class="btn·btn-neutral·float-left"·title="Deploying·Spiders"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
370 | ····</div> | 370 | ····</div> |
371 | ··<hr/> | 371 | ··<hr/> |
372 | ··<div·role="contentinfo"> | 372 | ··<div·role="contentinfo"> |
373 | ····<p> | 373 | ····<p> |
374 | ········©·Copyright·2008–202 | 374 | ········©·Copyright·2008–2024,·Scrapy·developers. |
375 | ······<span·class="lastupdated"> | 375 | ······<span·class="lastupdated"> |
376 | ········Last·updated·on·May·20,·2022. | 376 | ········Last·updated·on·May·20,·2022. |
377 | ······</span> | 377 | ······</span> |
378 | ····</p> | 378 | ····</p> |
379 | ··</div> | 379 | ··</div> |
380 | ···· | 380 | ···· |
Offset 166, 9 lines modified | Offset 166, 9 lines modified | ||
166 | ****·AUTOTHROTTLE_DEBUG¶·**** | 166 | ****·AUTOTHROTTLE_DEBUG¶·**** |
167 | Default:·False | 167 | Default:·False |
168 | Enable·AutoThrottle·debug·mode·which·will·display·stats·on·every·response | 168 | Enable·AutoThrottle·debug·mode·which·will·display·stats·on·every·response |
169 | received,·so·you·can·see·how·the·throttling·parameters·are·being·adjusted·in | 169 | received,·so·you·can·see·how·the·throttling·parameters·are·being·adjusted·in |
170 | real·time. | 170 | real·time. |
171 | Next·Previous | 171 | Next·Previous |
172 | =============================================================================== | 172 | =============================================================================== |
173 | ©·Copyright·2008â202 | 173 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
174 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 174 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 306, 15 lines modified | Offset 306, 15 lines modified | ||
306 | ········<a·href="autothrottle.html"·class="btn·btn-neutral·float-left"·title="AutoThrottle·extension"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 306 | ········<a·href="autothrottle.html"·class="btn·btn-neutral·float-left"·title="AutoThrottle·extension"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
307 | ····</div> | 307 | ····</div> |
308 | ··<hr/> | 308 | ··<hr/> |
309 | ··<div·role="contentinfo"> | 309 | ··<div·role="contentinfo"> |
310 | ····<p> | 310 | ····<p> |
311 | ········©·Copyright·2008–202 | 311 | ········©·Copyright·2008–2024,·Scrapy·developers. |
312 | ······<span·class="lastupdated"> | 312 | ······<span·class="lastupdated"> |
313 | ········Last·updated·on·May·20,·2022. | 313 | ········Last·updated·on·May·20,·2022. |
314 | ······</span> | 314 | ······</span> |
315 | ····</p> | 315 | ····</p> |
316 | ··</div> | 316 | ··</div> |
317 | ···· | 317 | ···· |
Offset 154, 9 lines modified | Offset 154, 9 lines modified | ||
154 | follow·links,·any·custom·spider·you·write·will·probably·do·more·stuff·which | 154 | follow·links,·any·custom·spider·you·write·will·probably·do·more·stuff·which |
155 | results·in·slower·crawl·rates.·How·slower·depends·on·how·much·your·spider·does | 155 | results·in·slower·crawl·rates.·How·slower·depends·on·how·much·your·spider·does |
156 | and·how·well·itâs·written. | 156 | and·how·well·itâs·written. |
157 | In·the·future,·more·cases·will·be·added·to·the·benchmarking·suite·to·cover | 157 | In·the·future,·more·cases·will·be·added·to·the·benchmarking·suite·to·cover |
158 | other·common·scenarios. | 158 | other·common·scenarios. |
159 | Next·Previous | 159 | Next·Previous |
160 | =============================================================================== | 160 | =============================================================================== |
161 | ©·Copyright·2008â202 | 161 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
162 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 162 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 423, 15 lines modified | Offset 423, 15 lines modified | ||
423 | ········<a·href="practices.html"·class="btn·btn-neutral·float-left"·title="Common·Practices"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 423 | ········<a·href="practices.html"·class="btn·btn-neutral·float-left"·title="Common·Practices"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
424 | ····</div> | 424 | ····</div> |
425 | ··<hr/> | 425 | ··<hr/> |
426 | ··<div·role="contentinfo"> | 426 | ··<div·role="contentinfo"> |
427 | ····<p> | 427 | ····<p> |
428 | ········©·Copyright·2008–202 | 428 | ········©·Copyright·2008–2024,·Scrapy·developers. |
429 | ······<span·class="lastupdated"> | 429 | ······<span·class="lastupdated"> |
430 | ········Last·updated·on·May·20,·2022. | 430 | ········Last·updated·on·May·20,·2022. |
431 | ······</span> | 431 | ······</span> |
432 | ····</p> | 432 | ····</p> |
433 | ··</div> | 433 | ··</div> |
434 | ···· | 434 | ···· |
Offset 206, 9 lines modified | Offset 206, 9 lines modified | ||
206 | If·your·broad·crawl·shows·a·high·memory·usage,·in·addition·to·crawling_in_BFO | 206 | If·your·broad·crawl·shows·a·high·memory·usage,·in·addition·to·crawling_in_BFO |
207 | order·and·lowering_concurrency·you·should·debug_your_memory_leaks. | 207 | order·and·lowering_concurrency·you·should·debug_your_memory_leaks. |
208 | *****·Install·a·specific·Twisted·reactor¶·***** | 208 | *****·Install·a·specific·Twisted·reactor¶·***** |
209 | If·the·crawl·is·exceeding·the·systemâs·capabilities,·you·might·want·to·try | 209 | If·the·crawl·is·exceeding·the·systemâs·capabilities,·you·might·want·to·try |
210 | installing·a·specific·Twisted·reactor,·via·the·TWISTED_REACTOR·setting. | 210 | installing·a·specific·Twisted·reactor,·via·the·TWISTED_REACTOR·setting. |
211 | Next·Previous | 211 | Next·Previous |
212 | =============================================================================== | 212 | =============================================================================== |
213 | ©·Copyright·2008â202 | 213 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
214 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 214 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 777, 15 lines modified | Offset 777, 15 lines modified | ||
777 | ········<a·href="../intro/examples.html"·class="btn·btn-neutral·float-left"·title="Examples"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 777 | ········<a·href="../intro/examples.html"·class="btn·btn-neutral·float-left"·title="Examples"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
778 | ····</div> | 778 | ····</div> |
779 | ··<hr/> | 779 | ··<hr/> |
780 | ··<div·role="contentinfo"> | 780 | ··<div·role="contentinfo"> |
781 | ····<p> | 781 | ····<p> |
782 | ········©·Copyright·2008–202 | 782 | ········©·Copyright·2008–2024,·Scrapy·developers. |
783 | ······<span·class="lastupdated"> | 783 | ······<span·class="lastupdated"> |
784 | ········Last·updated·on·May·20,·2022. | 784 | ········Last·updated·on·May·20,·2022. |
785 | ······</span> | 785 | ······</span> |
786 | ····</p> | 786 | ····</p> |
787 | ··</div> | 787 | ··</div> |
788 | ···· | 788 | ···· |
Offset 470, 9 lines modified | Offset 470, 9 lines modified | ||
470 | ····'scrapy.commands':·[ | 470 | ····'scrapy.commands':·[ |
471 | ······'my_command=my_scrapy_module.commands:MyCommand', | 471 | ······'my_command=my_scrapy_module.commands:MyCommand', |
472 | ····], | 472 | ····], |
473 | ··}, | 473 | ··}, |
474 | ·) | 474 | ·) |
475 | Next·Previous | 475 | Next·Previous |
476 | =============================================================================== | 476 | =============================================================================== |
477 | ©·Copyright·2008â202 | 477 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
478 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 478 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 390, 15 lines modified | Offset 390, 15 lines modified | ||
390 | ········<a·href="debug.html"·class="btn·btn-neutral·float-left"·title="Debugging·Spiders"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 390 | ········<a·href="debug.html"·class="btn·btn-neutral·float-left"·title="Debugging·Spiders"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
391 | ····</div> | 391 | ····</div> |
392 | ··<hr/> | 392 | ··<hr/> |
393 | ··<div·role="contentinfo"> | 393 | ··<div·role="contentinfo"> |
394 | ····<p> | 394 | ····<p> |
395 | ········©·Copyright·2008–202 | 395 | ········©·Copyright·2008–2024,·Scrapy·developers. |
396 | ······<span·class="lastupdated"> | 396 | ······<span·class="lastupdated"> |
397 | ········Last·updated·on·May·20,·2022. | 397 | ········Last·updated·on·May·20,·2022. |
398 | ······</span> | 398 | ······</span> |
399 | ····</p> | 399 | ····</p> |
400 | ··</div> | 400 | ··</div> |
401 | ···· | 401 | ···· |
Offset 161, 9 lines modified | Offset 161, 9 lines modified | ||
161 | ····name·=·'example' | 161 | ····name·=·'example' |
162 | ····def·__init__(self): | 162 | ····def·__init__(self): |
163 | ········if·os.environ.get('SCRAPY_CHECK'): | 163 | ········if·os.environ.get('SCRAPY_CHECK'): |
164 | ············pass··#·Do·some·scraper·adjustments·when·a·check·is·running | 164 | ············pass··#·Do·some·scraper·adjustments·when·a·check·is·running |
165 | Next·Previous | 165 | Next·Previous |
166 | =============================================================================== | 166 | =============================================================================== |
167 | ©·Copyright·2008â202 | 167 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
168 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 168 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 331, 15 lines modified | Offset 331, 15 lines modified | ||
331 | ········<a·href="jobs.html"·class="btn·btn-neutral·float-left"·title="Jobs:·pausing·and·resuming·crawls"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 331 | ········<a·href="jobs.html"·class="btn·btn-neutral·float-left"·title="Jobs:·pausing·and·resuming·crawls"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
332 | ····</div> | 332 | ····</div> |
333 | ··<hr/> | 333 | ··<hr/> |
334 | ··<div·role="contentinfo"> | 334 | ··<div·role="contentinfo"> |
335 | ····<p> | 335 | ····<p> |
336 | ········©·Copyright·2008–202 | 336 | ········©·Copyright·2008–2024,·Scrapy·developers. |
337 | ······<span·class="lastupdated"> | 337 | ······<span·class="lastupdated"> |
338 | ········Last·updated·on·May·20,·2022. | 338 | ········Last·updated·on·May·20,·2022. |
339 | ······</span> | 339 | ······</span> |
340 | ····</p> | 340 | ····</p> |
341 | ··</div> | 341 | ··</div> |
342 | ···· | 342 | ···· |
Offset 135, 9 lines modified | Offset 135, 9 lines modified | ||
135 | ····*·storing·data·in·databases·(in·pipelines·and·middlewares); | 135 | ····*·storing·data·in·databases·(in·pipelines·and·middlewares); |
136 | ····*·delaying·the·spider·initialization·until·some·external·event·(in·the | 136 | ····*·delaying·the·spider·initialization·until·some·external·event·(in·the |
137 | ······spider_opened·handler); | 137 | ······spider_opened·handler); |
138 | ····*·calling·asynchronous·Scrapy·methods·like·ExecutionEngine.download·(see | 138 | ····*·calling·asynchronous·Scrapy·methods·like·ExecutionEngine.download·(see |
139 | ······the_screenshot_pipeline_example). | 139 | ······the_screenshot_pipeline_example). |
140 | Next·Previous | 140 | Next·Previous |
141 | =============================================================================== | 141 | =============================================================================== |
142 | ©·Copyright·2008â202 | 142 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
143 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 143 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 364, 15 lines modified | Offset 364, 15 lines modified | ||
364 | ········<a·href="../faq.html"·class="btn·btn-neutral·float-left"·title="Frequently·Asked·Questions"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 364 | ········<a·href="../faq.html"·class="btn·btn-neutral·float-left"·title="Frequently·Asked·Questions"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
365 | ····</div> | 365 | ····</div> |
366 | ··<hr/> | 366 | ··<hr/> |
367 | ··<div·role="contentinfo"> | 367 | ··<div·role="contentinfo"> |
368 | ····<p> | 368 | ····<p> |
369 | ········©·Copyright·2008–202 | 369 | ········©·Copyright·2008–2024,·Scrapy·developers. |
370 | ······<span·class="lastupdated"> | 370 | ······<span·class="lastupdated"> |
371 | ········Last·updated·on·May·20,·2022. | 371 | ········Last·updated·on·May·20,·2022. |
372 | ······</span> | 372 | ······</span> |
373 | ····</p> | 373 | ····</p> |
374 | ··</div> | 374 | ··</div> |
375 | ···· | 375 | ···· |
Offset 175, 9 lines modified | Offset 175, 9 lines modified | ||
175 | ········#·populate·more·`item`·fields | 175 | ········#·populate·more·`item`·fields |
176 | ········return·item | 176 | ········return·item |
177 | ····else: | 177 | ····else: |
178 | ········self.logger.warning('No·item·received·for·%s',·response.url) | 178 | ········self.logger.warning('No·item·received·for·%s',·response.url) |
179 | For·more·information,·check·the·Logging·section. | 179 | For·more·information,·check·the·Logging·section. |
180 | Next·Previous | 180 | Next·Previous |
181 | =============================================================================== | 181 | =============================================================================== |
182 | ©·Copyright·2008â202 | 182 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
183 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 183 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 266, 15 lines modified | Offset 266, 15 lines modified | ||
266 | ········<a·href="media-pipeline.html"·class="btn·btn-neutral·float-left"·title="Downloading·and·processing·files·and·images"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 266 | ········<a·href="media-pipeline.html"·class="btn·btn-neutral·float-left"·title="Downloading·and·processing·files·and·images"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
267 | ····</div> | 267 | ····</div> |
268 | ··<hr/> | 268 | ··<hr/> |
269 | ··<div·role="contentinfo"> | 269 | ··<div·role="contentinfo"> |
270 | ····<p> | 270 | ····<p> |
271 | ········©·Copyright·2008–202 | 271 | ········©·Copyright·2008–2024,·Scrapy·developers. |
272 | ······<span·class="lastupdated"> | 272 | ······<span·class="lastupdated"> |
273 | ········Last·updated·on·May·20,·2022. | 273 | ········Last·updated·on·May·20,·2022. |
274 | ······</span> | 274 | ······</span> |
275 | ····</p> | 275 | ····</p> |
276 | ··</div> | 276 | ··</div> |
277 | ···· | 277 | ···· |
Offset 92, 9 lines modified | Offset 92, 9 lines modified | ||
92 | To·deploy·spiders·to·Scrapy·Cloud·you·can·use·the·shub·command·line·tool. | 92 | To·deploy·spiders·to·Scrapy·Cloud·you·can·use·the·shub·command·line·tool. |
93 | Please·refer·to·the·Scrapy_Cloud_documentation·for·more·information. | 93 | Please·refer·to·the·Scrapy_Cloud_documentation·for·more·information. |
94 | Scrapy·Cloud·is·compatible·with·Scrapyd·and·one·can·switch·between·them·as | 94 | Scrapy·Cloud·is·compatible·with·Scrapyd·and·one·can·switch·between·them·as |
95 | needed·-·the·configuration·is·read·from·the·scrapy.cfg·file·just·like·scrapyd- | 95 | needed·-·the·configuration·is·read·from·the·scrapy.cfg·file·just·like·scrapyd- |
96 | deploy. | 96 | deploy. |
97 | Next·Previous | 97 | Next·Previous |
98 | =============================================================================== | 98 | =============================================================================== |
99 | ©·Copyright·2008â202 | 99 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
100 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 100 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 484, 15 lines modified | Offset 484, 15 lines modified | ||
484 | ········<a·href="broad-crawls.html"·class="btn·btn-neutral·float-left"·title="Broad·Crawls"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 484 | ········<a·href="broad-crawls.html"·class="btn·btn-neutral·float-left"·title="Broad·Crawls"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
485 | ····</div> | 485 | ····</div> |
486 | ··<hr/> | 486 | ··<hr/> |
487 | ··<div·role="contentinfo"> | 487 | ··<div·role="contentinfo"> |
488 | ····<p> | 488 | ····<p> |
489 | ········©·Copyright·2008–202 | 489 | ········©·Copyright·2008–2024,·Scrapy·developers. |
490 | ······<span·class="lastupdated"> | 490 | ······<span·class="lastupdated"> |
491 | ········Last·updated·on·May·20,·2022. | 491 | ········Last·updated·on·May·20,·2022. |
492 | ······</span> | 492 | ······</span> |
493 | ····</p> | 493 | ····</p> |
494 | ··</div> | 494 | ··</div> |
495 | ···· | 495 | ···· |
Offset 280, 9 lines modified | Offset 280, 9 lines modified | ||
280 | As·you·can·see,·with·a·few·inspections·in·theNetwork-tool·we·were·able·to | 280 | As·you·can·see,·with·a·few·inspections·in·theNetwork-tool·we·were·able·to |
281 | easily·replicate·the·dynamic·requests·of·the·scrolling·functionality·of·the | 281 | easily·replicate·the·dynamic·requests·of·the·scrolling·functionality·of·the |
282 | page.·Crawling·dynamic·pages·can·be·quite·daunting·and·pages·can·be·very | 282 | page.·Crawling·dynamic·pages·can·be·quite·daunting·and·pages·can·be·very |
283 | complex,·but·it·(mostly)·boils·down·to·identifying·the·correct·request·and | 283 | complex,·but·it·(mostly)·boils·down·to·identifying·the·correct·request·and |
284 | replicating·it·in·your·spider. | 284 | replicating·it·in·your·spider. |
285 | Next·Previous | 285 | Next·Previous |
286 | =============================================================================== | 286 | =============================================================================== |
287 | ©·Copyright·2008â202 | 287 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
288 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 288 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 228, 15 lines modified | Offset 228, 15 lines modified | ||
228 | ··········</div> | 228 | ··········</div> |
229 | ··········<footer> | 229 | ··········<footer> |
230 | ··<hr/> | 230 | ··<hr/> |
231 | ··<div·role="contentinfo"> | 231 | ··<div·role="contentinfo"> |
232 | ····<p> | 232 | ····<p> |
233 | ········©·Copyright·2008–202 | 233 | ········©·Copyright·2008–2024,·Scrapy·developers. |
234 | ······<span·class="lastupdated"> | 234 | ······<span·class="lastupdated"> |
235 | ········Last·updated·on·May·20,·2022. | 235 | ········Last·updated·on·May·20,·2022. |
236 | ······</span> | 236 | ······</span> |
237 | ····</p> | 237 | ····</p> |
238 | ··</div> | 238 | ··</div> |
239 | ···· | 239 | ···· |
Offset 65, 9 lines modified | Offset 65, 9 lines modified | ||
65 | =============================================================================== | 65 | =============================================================================== |
66 | ******·DjangoItem¶·****** | 66 | ******·DjangoItem¶·****** |
67 | DjangoItem·has·been·moved·into·a·separate·project. | 67 | DjangoItem·has·been·moved·into·a·separate·project. |
68 | It·is·hosted·at: | 68 | It·is·hosted·at: |
69 | ·····https://github.com/scrapy-plugins/scrapy-djangoitem | 69 | ·····https://github.com/scrapy-plugins/scrapy-djangoitem |
70 | =============================================================================== | 70 | =============================================================================== |
71 | ©·Copyright·2008â202 | 71 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
72 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 72 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 1270, 15 lines modified | Offset 1270, 15 lines modified | ||
1270 | ········<a·href="architecture.html"·class="btn·btn-neutral·float-left"·title="Architecture·overview"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 1270 | ········<a·href="architecture.html"·class="btn·btn-neutral·float-left"·title="Architecture·overview"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
1271 | ····</div> | 1271 | ····</div> |
1272 | ··<hr/> | 1272 | ··<hr/> |
1273 | ··<div·role="contentinfo"> | 1273 | ··<div·role="contentinfo"> |
1274 | ····<p> | 1274 | ····<p> |
1275 | ········©·Copyright·2008–202 | 1275 | ········©·Copyright·2008–2024,·Scrapy·developers. |
1276 | ······<span·class="lastupdated"> | 1276 | ······<span·class="lastupdated"> |
1277 | ········Last·updated·on·May·20,·2022. | 1277 | ········Last·updated·on·May·20,·2022. |
1278 | ······</span> | 1278 | ······</span> |
1279 | ····</p> | 1279 | ····</p> |
1280 | ··</div> | 1280 | ··</div> |
1281 | ···· | 1281 | ···· |
Offset 743, 9 lines modified | Offset 743, 9 lines modified | ||
743 | Default:·True | 743 | Default:·True |
744 | Whether·or·not·to·enable·the·HttpProxyMiddleware. | 744 | Whether·or·not·to·enable·the·HttpProxyMiddleware. |
745 | **·HTTPPROXY_AUTH_ENCODING¶·** | 745 | **·HTTPPROXY_AUTH_ENCODING¶·** |
746 | Default:·"latin-1" | 746 | Default:·"latin-1" |
747 | The·default·encoding·for·proxy·authentication·on·HttpProxyMiddleware. | 747 | The·default·encoding·for·proxy·authentication·on·HttpProxyMiddleware. |
748 | Next·Previous | 748 | Next·Previous |
749 | =============================================================================== | 749 | =============================================================================== |
750 | ©·Copyright·2008â202 | 750 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
751 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 751 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 433, 15 lines modified | Offset 433, 15 lines modified | ||
433 | ········<a·href="developer-tools.html"·class="btn·btn-neutral·float-left"·title="Using·your·browser’s·Developer·Tools·for·scraping"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 433 | ········<a·href="developer-tools.html"·class="btn·btn-neutral·float-left"·title="Using·your·browser’s·Developer·Tools·for·scraping"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
434 | ····</div> | 434 | ····</div> |
435 | ··<hr/> | 435 | ··<hr/> |
436 | ··<div·role="contentinfo"> | 436 | ··<div·role="contentinfo"> |
437 | ····<p> | 437 | ····<p> |
438 | ········©·Copyright·2008–202 | 438 | ········©·Copyright·2008–2024,·Scrapy·developers. |
439 | ······<span·class="lastupdated"> | 439 | ······<span·class="lastupdated"> |
440 | ········Last·updated·on·May·20,·2022. | 440 | ········Last·updated·on·May·20,·2022. |
441 | ······</span> | 441 | ······</span> |
442 | ····</p> | 442 | ····</p> |
443 | ··</div> | 443 | ··</div> |
444 | ···· | 444 | ···· |
Offset 214, 9 lines modified | Offset 214, 9 lines modified | ||
214 | *****·Using·a·headless·browser¶·***** | 214 | *****·Using·a·headless·browser¶·***** |
215 | A·headless_browser·is·a·special·web·browser·that·provides·an·API·for | 215 | A·headless_browser·is·a·special·web·browser·that·provides·an·API·for |
216 | automation. | 216 | automation. |
217 | The·easiest·way·to·use·a·headless·browser·with·Scrapy·is·to·use·Selenium,·along | 217 | The·easiest·way·to·use·a·headless·browser·with·Scrapy·is·to·use·Selenium,·along |
218 | with·scrapy-selenium·for·seamless·integration. | 218 | with·scrapy-selenium·for·seamless·integration. |
219 | Next·Previous | 219 | Next·Previous |
220 | =============================================================================== | 220 | =============================================================================== |
221 | ©·Copyright·2008â202 | 221 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
222 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 222 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 371, 15 lines modified | Offset 371, 15 lines modified | ||
371 | ········<a·href="stats.html"·class="btn·btn-neutral·float-left"·title="Stats·Collection"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 371 | ········<a·href="stats.html"·class="btn·btn-neutral·float-left"·title="Stats·Collection"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
372 | ····</div> | 372 | ····</div> |
373 | ··<hr/> | 373 | ··<hr/> |
374 | ··<div·role="contentinfo"> | 374 | ··<div·role="contentinfo"> |
375 | ····<p> | 375 | ····<p> |
376 | ········©·Copyright·2008–202 | 376 | ········©·Copyright·2008–2024,·Scrapy·developers. |
377 | ······<span·class="lastupdated"> | 377 | ······<span·class="lastupdated"> |
378 | ········Last·updated·on·May·20,·2022. | 378 | ········Last·updated·on·May·20,·2022. |
379 | ······</span> | 379 | ······</span> |
380 | ····</p> | 380 | ····</p> |
381 | ··</div> | 381 | ··</div> |
382 | ···· | 382 | ···· |
Offset 160, 9 lines modified | Offset 160, 9 lines modified | ||
160 | Enforce·using·STARTTLS.·STARTTLS·is·a·way·to·take·an·existing·insecure | 160 | Enforce·using·STARTTLS.·STARTTLS·is·a·way·to·take·an·existing·insecure |
161 | connection,·and·upgrade·it·to·a·secure·connection·using·SSL/TLS. | 161 | connection,·and·upgrade·it·to·a·secure·connection·using·SSL/TLS. |
162 | ****·MAIL_SSL¶·**** | 162 | ****·MAIL_SSL¶·**** |
163 | Default:·False | 163 | Default:·False |
164 | Enforce·connecting·using·an·SSL·encrypted·connection | 164 | Enforce·connecting·using·an·SSL·encrypted·connection |
165 | Next·Previous | 165 | Next·Previous |
166 | =============================================================================== | 166 | =============================================================================== |
167 | ©·Copyright·2008â202 | 167 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
168 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 168 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 361, 15 lines modified | Offset 361, 15 lines modified | ||
361 | ········<a·href="settings.html"·class="btn·btn-neutral·float-left"·title="Settings"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 361 | ········<a·href="settings.html"·class="btn·btn-neutral·float-left"·title="Settings"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
362 | ····</div> | 362 | ····</div> |
363 | ··<hr/> | 363 | ··<hr/> |
364 | ··<div·role="contentinfo"> | 364 | ··<div·role="contentinfo"> |
365 | ····<p> | 365 | ····<p> |
366 | ········©·Copyright·2008–202 | 366 | ········©·Copyright·2008–2024,·Scrapy·developers. |
367 | ······<span·class="lastupdated"> | 367 | ······<span·class="lastupdated"> |
368 | ········Last·updated·on·May·20,·2022. | 368 | ········Last·updated·on·May·20,·2022. |
369 | ······</span> | 369 | ······</span> |
370 | ····</p> | 370 | ····</p> |
371 | ··</div> | 371 | ··</div> |
372 | ···· | 372 | ···· |
Offset 131, 9 lines modified | Offset 131, 9 lines modified | ||
131 | Note | 131 | Note |
132 | fail·is·a·keyword-only·parameter,·i.e.·raising·StopDownload(False)·or | 132 | fail·is·a·keyword-only·parameter,·i.e.·raising·StopDownload(False)·or |
133 | StopDownload(True)·will·raise·a·TypeError. | 133 | StopDownload(True)·will·raise·a·TypeError. |
134 | See·the·documentation·for·the·bytes_received·signal·and·the·Stopping_the | 134 | See·the·documentation·for·the·bytes_received·signal·and·the·Stopping_the |
135 | download_of_a_Response·topic·for·additional·information·and·examples. | 135 | download_of_a_Response·topic·for·additional·information·and·examples. |
136 | Next·Previous | 136 | Next·Previous |
137 | =============================================================================== | 137 | =============================================================================== |
138 | ©·Copyright·2008â202 | 138 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
139 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 139 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 689, 15 lines modified | Offset 689, 15 lines modified | ||
689 | ········<a·href="signals.html"·class="btn·btn-neutral·float-left"·title="Signals"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 689 | ········<a·href="signals.html"·class="btn·btn-neutral·float-left"·title="Signals"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
690 | ····</div> | 690 | ····</div> |
691 | ··<hr/> | 691 | ··<hr/> |
692 | ··<div·role="contentinfo"> | 692 | ··<div·role="contentinfo"> |
693 | ····<p> | 693 | ····<p> |
694 | ········©·Copyright·2008–202 | 694 | ········©·Copyright·2008–2024,·Scrapy·developers. |
695 | ······<span·class="lastupdated"> | 695 | ······<span·class="lastupdated"> |
696 | ········Last·updated·on·May·20,·2022. | 696 | ········Last·updated·on·May·20,·2022. |
697 | ······</span> | 697 | ······</span> |
698 | ····</p> | 698 | ····</p> |
699 | ··</div> | 699 | ··</div> |
700 | ···· | 700 | ···· |
Offset 379, 9 lines modified | Offset 379, 9 lines modified | ||
379 | ······Exports·items·in·a·Python-specific·binary·format·(see·marshal). | 379 | ······Exports·items·in·a·Python-specific·binary·format·(see·marshal). |
380 | ········Parameters | 380 | ········Parameters |
381 | ············file·â·The·file-like·object·to·use·for·exporting·the·data.·Its | 381 | ············file·â·The·file-like·object·to·use·for·exporting·the·data.·Its |
382 | ············write·method·should·accept·bytes·(a·disk·file·opened·in·binary | 382 | ············write·method·should·accept·bytes·(a·disk·file·opened·in·binary |
383 | ············mode,·a·BytesIO·object,·etc) | 383 | ············mode,·a·BytesIO·object,·etc) |
384 | Next·Previous | 384 | Next·Previous |
385 | =============================================================================== | 385 | =============================================================================== |
386 | ©·Copyright·2008â202 | 386 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
387 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 387 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 578, 15 lines modified | Offset 578, 15 lines modified | ||
578 | ········<a·href="spider-middleware.html"·class="btn·btn-neutral·float-left"·title="Spider·Middleware"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 578 | ········<a·href="spider-middleware.html"·class="btn·btn-neutral·float-left"·title="Spider·Middleware"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
579 | ····</div> | 579 | ····</div> |
580 | ··<hr/> | 580 | ··<hr/> |
581 | ··<div·role="contentinfo"> | 581 | ··<div·role="contentinfo"> |
582 | ····<p> | 582 | ····<p> |
583 | ········©·Copyright·2008–202 | 583 | ········©·Copyright·2008–2024,·Scrapy·developers. |
584 | ······<span·class="lastupdated"> | 584 | ······<span·class="lastupdated"> |
585 | ········Last·updated·on·May·20,·2022. | 585 | ········Last·updated·on·May·20,·2022. |
586 | ······</span> | 586 | ······</span> |
587 | ····</p> | 587 | ····</p> |
588 | ··</div> | 588 | ··</div> |
589 | ···· | 589 | ···· |
Offset 292, 9 lines modified | Offset 292, 9 lines modified | ||
292 | Invokes·a·Python·debugger·inside·a·running·Scrapy·process·when·a·SIGUSR2·signal | 292 | Invokes·a·Python·debugger·inside·a·running·Scrapy·process·when·a·SIGUSR2·signal |
293 | is·received.·After·the·debugger·is·exited,·the·Scrapy·process·continues·running | 293 | is·received.·After·the·debugger·is·exited,·the·Scrapy·process·continues·running |
294 | normally. | 294 | normally. |
295 | For·more·info·see·Debugging_in_Python. | 295 | For·more·info·see·Debugging_in_Python. |
296 | This·extension·only·works·on·POSIX-compliant·platforms·(i.e.·not·Windows). | 296 | This·extension·only·works·on·POSIX-compliant·platforms·(i.e.·not·Windows). |
297 | Next·Previous | 297 | Next·Previous |
298 | =============================================================================== | 298 | =============================================================================== |
299 | ©·Copyright·2008â202 | 299 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
300 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 300 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 822, 15 lines modified | Offset 822, 15 lines modified | ||
822 | ········<a·href="item-pipeline.html"·class="btn·btn-neutral·float-left"·title="Item·Pipeline"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 822 | ········<a·href="item-pipeline.html"·class="btn·btn-neutral·float-left"·title="Item·Pipeline"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
823 | ····</div> | 823 | ····</div> |
824 | ··<hr/> | 824 | ··<hr/> |
825 | ··<div·role="contentinfo"> | 825 | ··<div·role="contentinfo"> |
826 | ····<p> | 826 | ····<p> |
827 | ········©·Copyright·2008–202 | 827 | ········©·Copyright·2008–2024,·Scrapy·developers. |
828 | ······<span·class="lastupdated"> | 828 | ······<span·class="lastupdated"> |
829 | ········Last·updated·on·May·20,·2022. | 829 | ········Last·updated·on·May·20,·2022. |
830 | ······</span> | 830 | ······</span> |
831 | ····</p> | 831 | ····</p> |
832 | ··</div> | 832 | ··</div> |
833 | ···· | 833 | ···· |
Offset 421, 9 lines modified | Offset 421, 9 lines modified | ||
421 | ···2.·Point·FEED_URI_PARAMS·to·that·function·in·your·settings: | 421 | ···2.·Point·FEED_URI_PARAMS·to·that·function·in·your·settings: |
422 | ······#·myproject/settings.py | 422 | ······#·myproject/settings.py |
423 | ······FEED_URI_PARAMS·=·'myproject.utils.uri_params' | 423 | ······FEED_URI_PARAMS·=·'myproject.utils.uri_params' |
424 | ···3.·Use·%(spider_name)s·in·your·feed·URI: | 424 | ···3.·Use·%(spider_name)s·in·your·feed·URI: |
425 | ······scrapy·crawl·<spider_name>·-o·"%(spider_name)s.jl" | 425 | ······scrapy·crawl·<spider_name>·-o·"%(spider_name)s.jl" |
426 | Next·Previous | 426 | Next·Previous |
427 | =============================================================================== | 427 | =============================================================================== |
428 | ©·Copyright·2008â202 | 428 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
429 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 429 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 491, 15 lines modified | Offset 491, 15 lines modified | ||
491 | ········<a·href="shell.html"·class="btn·btn-neutral·float-left"·title="Scrapy·shell"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 491 | ········<a·href="shell.html"·class="btn·btn-neutral·float-left"·title="Scrapy·shell"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
492 | ····</div> | 492 | ····</div> |
493 | ··<hr/> | 493 | ··<hr/> |
494 | ··<div·role="contentinfo"> | 494 | ··<div·role="contentinfo"> |
495 | ····<p> | 495 | ····<p> |
496 | ········©·Copyright·2008–202 | 496 | ········©·Copyright·2008–2024,·Scrapy·developers. |
497 | ······<span·class="lastupdated"> | 497 | ······<span·class="lastupdated"> |
498 | ········Last·updated·on·May·20,·2022. | 498 | ········Last·updated·on·May·20,·2022. |
499 | ······</span> | 499 | ······</span> |
500 | ····</p> | 500 | ····</p> |
501 | ··</div> | 501 | ··</div> |
502 | ···· | 502 | ···· |
Offset 257, 9 lines modified | Offset 257, 9 lines modified | ||
257 | ····'myproject.pipelines.JsonWriterPipeline':·800, | 257 | ····'myproject.pipelines.JsonWriterPipeline':·800, |
258 | } | 258 | } |
259 | The·integer·values·you·assign·to·classes·in·this·setting·determine·the·order·in | 259 | The·integer·values·you·assign·to·classes·in·this·setting·determine·the·order·in |
260 | which·they·run:·items·go·through·from·lower·valued·to·higher·valued·classes. | 260 | which·they·run:·items·go·through·from·lower·valued·to·higher·valued·classes. |
261 | Itâs·customary·to·define·these·numbers·in·the·0-1000·range. | 261 | Itâs·customary·to·define·these·numbers·in·the·0-1000·range. |
262 | Next·Previous | 262 | Next·Previous |
263 | =============================================================================== | 263 | =============================================================================== |
264 | ©·Copyright·2008â202 | 264 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
265 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 265 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 614, 15 lines modified | Offset 614, 15 lines modified | ||
614 | ········<a·href="selectors.html"·class="btn·btn-neutral·float-left"·title="Selectors"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 614 | ········<a·href="selectors.html"·class="btn·btn-neutral·float-left"·title="Selectors"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
615 | ····</div> | 615 | ····</div> |
616 | ··<hr/> | 616 | ··<hr/> |
617 | ··<div·role="contentinfo"> | 617 | ··<div·role="contentinfo"> |
618 | ····<p> | 618 | ····<p> |
619 | ········©·Copyright·2008–202 | 619 | ········©·Copyright·2008–2024,·Scrapy·developers. |
620 | ······<span·class="lastupdated"> | 620 | ······<span·class="lastupdated"> |
621 | ········Last·updated·on·May·20,·2022. | 621 | ········Last·updated·on·May·20,·2022. |
622 | ······</span> | 622 | ······</span> |
623 | ····</p> | 623 | ····</p> |
624 | ··</div> | 624 | ··</div> |
625 | ···· | 625 | ···· |
Offset 304, 9 lines modified | Offset 304, 9 lines modified | ||
304 | ······False·otherwise. | 304 | ······False·otherwise. |
305 | ······Alias·for·ItemAdapter.is_item | 305 | ······Alias·for·ItemAdapter.is_item |
306 | *****·Other·classes·related·to·items¶·***** | 306 | *****·Other·classes·related·to·items¶·***** |
307 | ··classscrapy.item.ItemMeta(class_name,·bases,·attrs)[source]¶ | 307 | ··classscrapy.item.ItemMeta(class_name,·bases,·attrs)[source]¶ |
308 | ······Metaclass·of·Item·that·handles·field·definitions. | 308 | ······Metaclass·of·Item·that·handles·field·definitions. |
309 | Next·Previous | 309 | Next·Previous |
310 | =============================================================================== | 310 | =============================================================================== |
311 | ©·Copyright·2008â202 | 311 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
312 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 312 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 306, 15 lines modified | Offset 306, 15 lines modified | ||
306 | ········<a·href="benchmarking.html"·class="btn·btn-neutral·float-left"·title="Benchmarking"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 306 | ········<a·href="benchmarking.html"·class="btn·btn-neutral·float-left"·title="Benchmarking"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
307 | ····</div> | 307 | ····</div> |
308 | ··<hr/> | 308 | ··<hr/> |
309 | ··<div·role="contentinfo"> | 309 | ··<div·role="contentinfo"> |
310 | ····<p> | 310 | ····<p> |
311 | ········©·Copyright·2008–202 | 311 | ········©·Copyright·2008–2024,·Scrapy·developers. |
312 | ······<span·class="lastupdated"> | 312 | ······<span·class="lastupdated"> |
313 | ········Last·updated·on·May·20,·2022. | 313 | ········Last·updated·on·May·20,·2022. |
314 | ······</span> | 314 | ······</span> |
315 | ····</p> | 315 | ····</p> |
316 | ··</div> | 316 | ··</div> |
317 | ···· | 317 | ···· |
Offset 116, 9 lines modified | Offset 116, 9 lines modified | ||
116 | except·for·the·callback·and·errback·values·passed·to·their·__init__·method, | 116 | except·for·the·callback·and·errback·values·passed·to·their·__init__·method, |
117 | which·must·be·methods·of·the·running·Spider·class. | 117 | which·must·be·methods·of·the·running·Spider·class. |
118 | If·you·wish·to·log·the·requests·that·couldnât·be·serialized,·you·can·set·the | 118 | If·you·wish·to·log·the·requests·that·couldnât·be·serialized,·you·can·set·the |
119 | SCHEDULER_DEBUG·setting·to·True·in·the·projectâs·settings·page.·It·is·False | 119 | SCHEDULER_DEBUG·setting·to·True·in·the·projectâs·settings·page.·It·is·False |
120 | by·default. | 120 | by·default. |
121 | Next·Previous | 121 | Next·Previous |
122 | =============================================================================== | 122 | =============================================================================== |
123 | ©·Copyright·2008â202 | 123 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
124 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 124 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 493, 15 lines modified | Offset 493, 15 lines modified | ||
493 | ········<a·href="dynamic-content.html"·class="btn·btn-neutral·float-left"·title="Selecting·dynamically-loaded·content"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 493 | ········<a·href="dynamic-content.html"·class="btn·btn-neutral·float-left"·title="Selecting·dynamically-loaded·content"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
494 | ····</div> | 494 | ····</div> |
495 | ··<hr/> | 495 | ··<hr/> |
496 | ··<div·role="contentinfo"> | 496 | ··<div·role="contentinfo"> |
497 | ····<p> | 497 | ····<p> |
498 | ········©·Copyright·2008–202 | 498 | ········©·Copyright·2008–2024,·Scrapy·developers. |
499 | ······<span·class="lastupdated"> | 499 | ······<span·class="lastupdated"> |
500 | ········Last·updated·on·May·20,·2022. | 500 | ········Last·updated·on·May·20,·2022. |
501 | ······</span> | 501 | ······</span> |
502 | ····</p> | 502 | ····</p> |
503 | ··</div> | 503 | ··</div> |
504 | ···· | 504 | ···· |
Offset 258, 9 lines modified | Offset 258, 9 lines modified | ||
258 | ·····collector,·which·is·able·to·move·objects·in·memory.·This·would | 258 | ·····collector,·which·is·able·to·move·objects·in·memory.·This·would |
259 | ·····require·significant·changes·to·the·Python·interpreter. | 259 | ·····require·significant·changes·to·the·Python·interpreter. |
260 | To·keep·memory·consumption·reasonable·you·can·split·the·job·into·several | 260 | To·keep·memory·consumption·reasonable·you·can·split·the·job·into·several |
261 | smaller·jobs·or·enable·persistent_job_queue·and·stop/start·spider·from·time·to | 261 | smaller·jobs·or·enable·persistent_job_queue·and·stop/start·spider·from·time·to |
262 | time. | 262 | time. |
263 | Next·Previous | 263 | Next·Previous |
264 | =============================================================================== | 264 | =============================================================================== |
265 | ©·Copyright·2008â202 | 265 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
266 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 266 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 381, 15 lines modified | Offset 381, 15 lines modified | ||
381 | ········<a·href="request-response.html"·class="btn·btn-neutral·float-left"·title="Requests·and·Responses"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 381 | ········<a·href="request-response.html"·class="btn·btn-neutral·float-left"·title="Requests·and·Responses"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
382 | ····</div> | 382 | ····</div> |
383 | ··<hr/> | 383 | ··<hr/> |
384 | ··<div·role="contentinfo"> | 384 | ··<div·role="contentinfo"> |
385 | ····<p> | 385 | ····<p> |
386 | ········©·Copyright·2008–202 | 386 | ········©·Copyright·2008–2024,·Scrapy·developers. |
387 | ······<span·class="lastupdated"> | 387 | ······<span·class="lastupdated"> |
388 | ········Last·updated·on·May·20,·2022. | 388 | ········Last·updated·on·May·20,·2022. |
389 | ······</span> | 389 | ······</span> |
390 | ····</p> | 390 | ····</p> |
391 | ··</div> | 391 | ··</div> |
392 | ···· | 392 | ···· |
Offset 109, 9 lines modified | Offset 109, 9 lines modified | ||
109 | ··················Dont·follow·this·one. | 109 | ··················Dont·follow·this·one. |
110 | ················*·fragment·â·the·part·of·the·url·after·the·hash·symbol.·From | 110 | ················*·fragment·â·the·part·of·the·url·after·the·hash·symbol.·From |
111 | ··················the·sample,·this·is·foo. | 111 | ··················the·sample,·this·is·foo. |
112 | ················*·nofollow·â·an·indication·of·the·presence·or·absence·of·a | 112 | ················*·nofollow·â·an·indication·of·the·presence·or·absence·of·a |
113 | ··················nofollow·value·in·the·rel·attribute·of·the·anchor·tag. | 113 | ··················nofollow·value·in·the·rel·attribute·of·the·anchor·tag. |
114 | Next·Previous | 114 | Next·Previous |
115 | =============================================================================== | 115 | =============================================================================== |
116 | ©·Copyright·2008â202 | 116 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
117 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 117 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 873, 15 lines modified | Offset 873, 15 lines modified | ||
873 | ········<a·href="items.html"·class="btn·btn-neutral·float-left"·title="Items"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 873 | ········<a·href="items.html"·class="btn·btn-neutral·float-left"·title="Items"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
874 | ····</div> | 874 | ····</div> |
875 | ··<hr/> | 875 | ··<hr/> |
876 | ··<div·role="contentinfo"> | 876 | ··<div·role="contentinfo"> |
877 | ····<p> | 877 | ····<p> |
878 | ········©·Copyright·2008–202 | 878 | ········©·Copyright·2008–2024,·Scrapy·developers. |
879 | ······<span·class="lastupdated"> | 879 | ······<span·class="lastupdated"> |
880 | ········Last·updated·on·May·20,·2022. | 880 | ········Last·updated·on·May·20,·2022. |
881 | ······</span> | 881 | ······</span> |
882 | ····</p> | 882 | ····</p> |
883 | ··</div> | 883 | ··</div> |
884 | ···· | 884 | ···· |
Offset 513, 9 lines modified | Offset 513, 9 lines modified | ||
513 | There·are·many·other·possible·ways·to·extend,·inherit·and·override·your·Item | 513 | There·are·many·other·possible·ways·to·extend,·inherit·and·override·your·Item |
514 | Loaders,·and·different·Item·Loaders·hierarchies·may·fit·better·for·different | 514 | Loaders,·and·different·Item·Loaders·hierarchies·may·fit·better·for·different |
515 | projects.·Scrapy·only·provides·the·mechanism;·it·doesnât·impose·any·specific | 515 | projects.·Scrapy·only·provides·the·mechanism;·it·doesnât·impose·any·specific |
516 | organization·of·your·Loaders·collection·-·thatâs·up·to·you·and·your | 516 | organization·of·your·Loaders·collection·-·thatâs·up·to·you·and·your |
517 | projectâs·needs. | 517 | projectâs·needs. |
518 | Next·Previous | 518 | Next·Previous |
519 | =============================================================================== | 519 | =============================================================================== |
520 | ©·Copyright·2008â202 | 520 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
521 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 521 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 599, 15 lines modified | Offset 599, 15 lines modified | ||
599 | ········<a·href="exceptions.html"·class="btn·btn-neutral·float-left"·title="Exceptions"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 599 | ········<a·href="exceptions.html"·class="btn·btn-neutral·float-left"·title="Exceptions"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
600 | ····</div> | 600 | ····</div> |
601 | ··<hr/> | 601 | ··<hr/> |
602 | ··<div·role="contentinfo"> | 602 | ··<div·role="contentinfo"> |
603 | ····<p> | 603 | ····<p> |
604 | ········©·Copyright·2008–202 | 604 | ········©·Copyright·2008–2024,·Scrapy·developers. |
605 | ······<span·class="lastupdated"> | 605 | ······<span·class="lastupdated"> |
606 | ········Last·updated·on·May·20,·2022. | 606 | ········Last·updated·on·May·20,·2022. |
607 | ······</span> | 607 | ······</span> |
608 | ····</p> | 608 | ····</p> |
609 | ··</div> | 609 | ··</div> |
610 | ···· | 610 | ···· |
Offset 319, 9 lines modified | Offset 319, 9 lines modified | ||
319 | ··········format='%(levelname)s:·%(message)s', | 319 | ··········format='%(levelname)s:·%(message)s', |
320 | ··········level=logging.INFO | 320 | ··········level=logging.INFO |
321 | ······) | 321 | ······) |
322 | ······Refer·to·Run_Scrapy_from_a_script·for·more·details·about·using·Scrapy | 322 | ······Refer·to·Run_Scrapy_from_a_script·for·more·details·about·using·Scrapy |
323 | ······this·way. | 323 | ······this·way. |
324 | Next·Previous | 324 | Next·Previous |
325 | =============================================================================== | 325 | =============================================================================== |
326 | ©·Copyright·2008â202 | 326 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
327 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 327 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 790, 15 lines modified | Offset 790, 15 lines modified | ||
790 | ········<a·href="leaks.html"·class="btn·btn-neutral·float-left"·title="Debugging·memory·leaks"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 790 | ········<a·href="leaks.html"·class="btn·btn-neutral·float-left"·title="Debugging·memory·leaks"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
791 | ····</div> | 791 | ····</div> |
792 | ··<hr/> | 792 | ··<hr/> |
793 | ··<div·role="contentinfo"> | 793 | ··<div·role="contentinfo"> |
794 | ····<p> | 794 | ····<p> |
795 | ········©·Copyright·2008–202 | 795 | ········©·Copyright·2008–2024,·Scrapy·developers. |
796 | ······<span·class="lastupdated"> | 796 | ······<span·class="lastupdated"> |
797 | ········Last·updated·on·May·20,·2022. | 797 | ········Last·updated·on·May·20,·2022. |
798 | ······</span> | 798 | ······</span> |
799 | ····</p> | 799 | ····</p> |
800 | ··</div> | 800 | ··</div> |
801 | ···· | 801 | ···· |
Offset 461, 9 lines modified | Offset 461, 9 lines modified | ||
461 | To·enable·your·custom·media·pipeline·component·you·must·add·its·class·import | 461 | To·enable·your·custom·media·pipeline·component·you·must·add·its·class·import |
462 | path·to·the·ITEM_PIPELINES·setting,·like·in·the·following·example: | 462 | path·to·the·ITEM_PIPELINES·setting,·like·in·the·following·example: |
463 | ITEM_PIPELINES·=·{ | 463 | ITEM_PIPELINES·=·{ |
464 | ····'myproject.pipelines.MyImagesPipeline':·300 | 464 | ····'myproject.pipelines.MyImagesPipeline':·300 |
465 | } | 465 | } |
466 | Next·Previous | 466 | Next·Previous |
467 | =============================================================================== | 467 | =============================================================================== |
468 | ©·Copyright·2008â202 | 468 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
469 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 469 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 448, 15 lines modified | Offset 448, 15 lines modified | ||
448 | ········<a·href="contracts.html"·class="btn·btn-neutral·float-left"·title="Spiders·Contracts"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 448 | ········<a·href="contracts.html"·class="btn·btn-neutral·float-left"·title="Spiders·Contracts"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
449 | ····</div> | 449 | ····</div> |
450 | ··<hr/> | 450 | ··<hr/> |
451 | ··<div·role="contentinfo"> | 451 | ··<div·role="contentinfo"> |
452 | ····<p> | 452 | ····<p> |
453 | ········©·Copyright·2008–202 | 453 | ········©·Copyright·2008–2024,·Scrapy·developers. |
454 | ······<span·class="lastupdated"> | 454 | ······<span·class="lastupdated"> |
455 | ········Last·updated·on·May·20,·2022. | 455 | ········Last·updated·on·May·20,·2022. |
456 | ······</span> | 456 | ······</span> |
457 | ····</p> | 457 | ····</p> |
458 | ··</div> | 458 | ··</div> |
459 | ···· | 459 | ···· |
Offset 254, 9 lines modified | Offset 254, 9 lines modified | ||
254 | ····*·use·a·highly·distributed·downloader·that·circumvents·bans·internally,·so | 254 | ····*·use·a·highly·distributed·downloader·that·circumvents·bans·internally,·so |
255 | ······you·can·just·focus·on·parsing·clean·pages.·One·example·of·such | 255 | ······you·can·just·focus·on·parsing·clean·pages.·One·example·of·such |
256 | ······downloaders·is·Crawlera | 256 | ······downloaders·is·Crawlera |
257 | If·you·are·still·unable·to·prevent·your·bot·getting·banned,·consider·contacting | 257 | If·you·are·still·unable·to·prevent·your·bot·getting·banned,·consider·contacting |
258 | commercial_support. | 258 | commercial_support. |
259 | Next·Previous | 259 | Next·Previous |
260 | =============================================================================== | 260 | =============================================================================== |
261 | ©·Copyright·2008â202 | 261 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
262 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 262 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 1262, 15 lines modified | Offset 1262, 15 lines modified | ||
1262 | ········<a·href="feed-exports.html"·class="btn·btn-neutral·float-left"·title="Feed·exports"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 1262 | ········<a·href="feed-exports.html"·class="btn·btn-neutral·float-left"·title="Feed·exports"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
1263 | ····</div> | 1263 | ····</div> |
1264 | ··<hr/> | 1264 | ··<hr/> |
1265 | ··<div·role="contentinfo"> | 1265 | ··<div·role="contentinfo"> |
1266 | ····<p> | 1266 | ····<p> |
1267 | ········©·Copyright·2008–202 | 1267 | ········©·Copyright·2008–2024,·Scrapy·developers. |
1268 | ······<span·class="lastupdated"> | 1268 | ······<span·class="lastupdated"> |
1269 | ········Last·updated·on·May·20,·2022. | 1269 | ········Last·updated·on·May·20,·2022. |
1270 | ······</span> | 1270 | ······</span> |
1271 | ····</p> | 1271 | ····</p> |
1272 | ··</div> | 1272 | ··</div> |
1273 | ···· | 1273 | ···· |
Offset 715, 9 lines modified | Offset 715, 9 lines modified | ||
715 | ****·XmlResponse·objects¶·**** | 715 | ****·XmlResponse·objects¶·**** |
716 | ··classscrapy.http.XmlResponse(url[,·...])[source]¶ | 716 | ··classscrapy.http.XmlResponse(url[,·...])[source]¶ |
717 | ······The·XmlResponse·class·is·a·subclass·of·TextResponse·which·adds·encoding | 717 | ······The·XmlResponse·class·is·a·subclass·of·TextResponse·which·adds·encoding |
718 | ······auto-discovering·support·by·looking·into·the·XML·declaration·line.·See | 718 | ······auto-discovering·support·by·looking·into·the·XML·declaration·line.·See |
719 | ······TextResponse.encoding. | 719 | ······TextResponse.encoding. |
720 | Next·Previous | 720 | Next·Previous |
721 | =============================================================================== | 721 | =============================================================================== |
722 | ©·Copyright·2008â202 | 722 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
723 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 723 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 228, 15 lines modified | Offset 228, 15 lines modified | ||
228 | ··········</div> | 228 | ··········</div> |
229 | ··········<footer> | 229 | ··········<footer> |
230 | ··<hr/> | 230 | ··<hr/> |
231 | ··<div·role="contentinfo"> | 231 | ··<div·role="contentinfo"> |
232 | ····<p> | 232 | ····<p> |
233 | ········©·Copyright·2008–202 | 233 | ········©·Copyright·2008–2024,·Scrapy·developers. |
234 | ······<span·class="lastupdated"> | 234 | ······<span·class="lastupdated"> |
235 | ········Last·updated·on·May·20,·2022. | 235 | ········Last·updated·on·May·20,·2022. |
236 | ······</span> | 236 | ······</span> |
237 | ····</p> | 237 | ····</p> |
238 | ··</div> | 238 | ··</div> |
239 | ···· | 239 | ···· |
Offset 65, 9 lines modified | Offset 65, 9 lines modified | ||
65 | =============================================================================== | 65 | =============================================================================== |
66 | ******·Scrapyd¶·****** | 66 | ******·Scrapyd¶·****** |
67 | Scrapyd·has·been·moved·into·a·separate·project. | 67 | Scrapyd·has·been·moved·into·a·separate·project. |
68 | Its·documentation·is·now·hosted·at: | 68 | Its·documentation·is·now·hosted·at: |
69 | ·····https://scrapyd.readthedocs.io/en/latest/ | 69 | ·····https://scrapyd.readthedocs.io/en/latest/ |
70 | =============================================================================== | 70 | =============================================================================== |
71 | ©·Copyright·2008â202 | 71 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
72 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 72 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 1403, 15 lines modified | Offset 1403, 15 lines modified | ||
1403 | ········<a·href="spiders.html"·class="btn·btn-neutral·float-left"·title="Spiders"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 1403 | ········<a·href="spiders.html"·class="btn·btn-neutral·float-left"·title="Spiders"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
1404 | ····</div> | 1404 | ····</div> |
1405 | ··<hr/> | 1405 | ··<hr/> |
1406 | ··<div·role="contentinfo"> | 1406 | ··<div·role="contentinfo"> |
1407 | ····<p> | 1407 | ····<p> |
1408 | ········©·Copyright·2008–202 | 1408 | ········©·Copyright·2008–2024,·Scrapy·developers. |
1409 | ······<span·class="lastupdated"> | 1409 | ······<span·class="lastupdated"> |
1410 | ········Last·updated·on·May·20,·2022. | 1410 | ········Last·updated·on·May·20,·2022. |
1411 | ······</span> | 1411 | ······</span> |
1412 | ····</p> | 1412 | ····</p> |
1413 | ··</div> | 1413 | ··</div> |
1414 | ···· | 1414 | ···· |
Offset 889, 9 lines modified | Offset 889, 9 lines modified | ||
889 | ······sel.xpath("//product") | 889 | ······sel.xpath("//product") |
890 | ···2.·Extract·all·prices·from·a·Google_Base_XML_feed·which·requires·registering | 890 | ···2.·Extract·all·prices·from·a·Google_Base_XML_feed·which·requires·registering |
891 | ······a·namespace: | 891 | ······a·namespace: |
892 | ······sel.register_namespace("g",·"http://base.google.com/ns/1.0") | 892 | ······sel.register_namespace("g",·"http://base.google.com/ns/1.0") |
893 | ······sel.xpath("//g:price").getall() | 893 | ······sel.xpath("//g:price").getall() |
894 | Next·Previous | 894 | Next·Previous |
895 | =============================================================================== | 895 | =============================================================================== |
896 | ©·Copyright·2008â202 | 896 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
897 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 897 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 1578, 15 lines modified | Offset 1578, 15 lines modified | ||
1578 | ········<a·href="link-extractors.html"·class="btn·btn-neutral·float-left"·title="Link·Extractors"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 1578 | ········<a·href="link-extractors.html"·class="btn·btn-neutral·float-left"·title="Link·Extractors"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
1579 | ····</div> | 1579 | ····</div> |
1580 | ··<hr/> | 1580 | ··<hr/> |
1581 | ··<div·role="contentinfo"> | 1581 | ··<div·role="contentinfo"> |
1582 | ····<p> | 1582 | ····<p> |
1583 | ········©·Copyright·2008–202 | 1583 | ········©·Copyright·2008–2024,·Scrapy·developers. |
1584 | ······<span·class="lastupdated"> | 1584 | ······<span·class="lastupdated"> |
1585 | ········Last·updated·on·May·20,·2022. | 1585 | ········Last·updated·on·May·20,·2022. |
1586 | ······</span> | 1586 | ······</span> |
1587 | ····</p> | 1587 | ····</p> |
1588 | ··</div> | 1588 | ··</div> |
1589 | ···· | 1589 | ···· |
Offset 1065, 9 lines modified | Offset 1065, 9 lines modified | ||
1065 | ····*·RETRY_TIMES | 1065 | ····*·RETRY_TIMES |
1066 | ····*·TELNETCONSOLE_HOST | 1066 | ····*·TELNETCONSOLE_HOST |
1067 | ····*·TELNETCONSOLE_PASSWORD | 1067 | ····*·TELNETCONSOLE_PASSWORD |
1068 | ····*·TELNETCONSOLE_PORT | 1068 | ····*·TELNETCONSOLE_PORT |
1069 | ····*·TELNETCONSOLE_USERNAME | 1069 | ····*·TELNETCONSOLE_USERNAME |
1070 | Next·Previous | 1070 | Next·Previous |
1071 | =============================================================================== | 1071 | =============================================================================== |
1072 | ©·Copyright·2008â202 | 1072 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
1073 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 1073 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 511, 15 lines modified | Offset 511, 15 lines modified | ||
511 | ········<a·href="loaders.html"·class="btn·btn-neutral·float-left"·title="Item·Loaders"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 511 | ········<a·href="loaders.html"·class="btn·btn-neutral·float-left"·title="Item·Loaders"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
512 | ····</div> | 512 | ····</div> |
513 | ··<hr/> | 513 | ··<hr/> |
514 | ··<div·role="contentinfo"> | 514 | ··<div·role="contentinfo"> |
515 | ····<p> | 515 | ····<p> |
516 | ········©·Copyright·2008–202 | 516 | ········©·Copyright·2008–2024,·Scrapy·developers. |
517 | ······<span·class="lastupdated"> | 517 | ······<span·class="lastupdated"> |
518 | ········Last·updated·on·May·20,·2022. | 518 | ········Last·updated·on·May·20,·2022. |
519 | ······</span> | 519 | ······</span> |
520 | ····</p> | 520 | ····</p> |
521 | ··</div> | 521 | ··</div> |
522 | ···· | 522 | ···· |
Offset 281, 9 lines modified | Offset 281, 9 lines modified | ||
281 | example.net>·(referer:·None) | 281 | example.net>·(referer:·None) |
282 | ... | 282 | ... |
283 | Note·that·you·canât·use·the·fetch·shortcut·here·since·the·Scrapy·engine·is | 283 | Note·that·you·canât·use·the·fetch·shortcut·here·since·the·Scrapy·engine·is |
284 | blocked·by·the·shell.·However,·after·you·leave·the·shell,·the·spider·will | 284 | blocked·by·the·shell.·However,·after·you·leave·the·shell,·the·spider·will |
285 | continue·crawling·where·it·stopped,·as·shown·above. | 285 | continue·crawling·where·it·stopped,·as·shown·above. |
286 | Next·Previous | 286 | Next·Previous |
287 | =============================================================================== | 287 | =============================================================================== |
288 | ©·Copyright·2008â202 | 288 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
289 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 289 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 717, 15 lines modified | Offset 717, 15 lines modified | ||
717 | ········<a·href="api.html"·class="btn·btn-neutral·float-left"·title="Core·API"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 717 | ········<a·href="api.html"·class="btn·btn-neutral·float-left"·title="Core·API"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
718 | ····</div> | 718 | ····</div> |
719 | ··<hr/> | 719 | ··<hr/> |
720 | ··<div·role="contentinfo"> | 720 | ··<div·role="contentinfo"> |
721 | ····<p> | 721 | ····<p> |
722 | ········©·Copyright·2008–202 | 722 | ········©·Copyright·2008–2024,·Scrapy·developers. |
723 | ······<span·class="lastupdated"> | 723 | ······<span·class="lastupdated"> |
724 | ········Last·updated·on·May·20,·2022. | 724 | ········Last·updated·on·May·20,·2022. |
725 | ······</span> | 725 | ······</span> |
726 | ····</p> | 726 | ····</p> |
727 | ··</div> | 727 | ··</div> |
728 | ···· | 728 | ···· |
Offset 361, 9 lines modified | Offset 361, 9 lines modified | ||
361 | ················*·response·(Response·object)·â·the·response·downloaded | 361 | ················*·response·(Response·object)·â·the·response·downloaded |
362 | ················*·request·(Request·object)·â·the·request·that·generated·the | 362 | ················*·request·(Request·object)·â·the·request·that·generated·the |
363 | ··················response | 363 | ··················response |
364 | ················*·spider·(Spider·object)·â·the·spider·for·which·the·response | 364 | ················*·spider·(Spider·object)·â·the·spider·for·which·the·response |
365 | ··················is·intended | 365 | ··················is·intended |
366 | Next·Previous | 366 | Next·Previous |
367 | =============================================================================== | 367 | =============================================================================== |
368 | ©·Copyright·2008â202 | 368 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
369 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 369 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 746, 15 lines modified | Offset 746, 15 lines modified | ||
746 | ········<a·href="downloader-middleware.html"·class="btn·btn-neutral·float-left"·title="Downloader·Middleware"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 746 | ········<a·href="downloader-middleware.html"·class="btn·btn-neutral·float-left"·title="Downloader·Middleware"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
747 | ····</div> | 747 | ····</div> |
748 | ··<hr/> | 748 | ··<hr/> |
749 | ··<div·role="contentinfo"> | 749 | ··<div·role="contentinfo"> |
750 | ····<p> | 750 | ····<p> |
751 | ········©·Copyright·2008–202 | 751 | ········©·Copyright·2008–2024,·Scrapy·developers. |
752 | ······<span·class="lastupdated"> | 752 | ······<span·class="lastupdated"> |
753 | ········Last·updated·on·May·20,·2022. | 753 | ········Last·updated·on·May·20,·2022. |
754 | ······</span> | 754 | ······</span> |
755 | ····</p> | 755 | ····</p> |
756 | ··</div> | 756 | ··</div> |
757 | ···· | 757 | ···· |
Offset 400, 9 lines modified | Offset 400, 9 lines modified | ||
400 | ······Filters·out·requests·with·URLs·longer·than·URLLENGTH_LIMIT | 400 | ······Filters·out·requests·with·URLs·longer·than·URLLENGTH_LIMIT |
401 | ······The·UrlLengthMiddleware·can·be·configured·through·the·following·settings | 401 | ······The·UrlLengthMiddleware·can·be·configured·through·the·following·settings |
402 | ······(see·the·settings·documentation·for·more·info): | 402 | ······(see·the·settings·documentation·for·more·info): |
403 | ···············*·URLLENGTH_LIMIT·-·The·maximum·URL·length·to·allow·for | 403 | ···············*·URLLENGTH_LIMIT·-·The·maximum·URL·length·to·allow·for |
404 | ·················crawled·URLs. | 404 | ·················crawled·URLs. |
405 | Next·Previous | 405 | Next·Previous |
406 | =============================================================================== | 406 | =============================================================================== |
407 | ©·Copyright·2008â202 | 407 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
408 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 408 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 1087, 15 lines modified | Offset 1087, 15 lines modified | ||
1087 | ········<a·href="commands.html"·class="btn·btn-neutral·float-left"·title="Command·line·tool"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 1087 | ········<a·href="commands.html"·class="btn·btn-neutral·float-left"·title="Command·line·tool"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
1088 | ····</div> | 1088 | ····</div> |
1089 | ··<hr/> | 1089 | ··<hr/> |
1090 | ··<div·role="contentinfo"> | 1090 | ··<div·role="contentinfo"> |
1091 | ····<p> | 1091 | ····<p> |
1092 | ········©·Copyright·2008–202 | 1092 | ········©·Copyright·2008–2024,·Scrapy·developers. |
1093 | ······<span·class="lastupdated"> | 1093 | ······<span·class="lastupdated"> |
1094 | ········Last·updated·on·May·20,·2022. | 1094 | ········Last·updated·on·May·20,·2022. |
1095 | ······</span> | 1095 | ······</span> |
1096 | ····</p> | 1096 | ····</p> |
1097 | ··</div> | 1097 | ··</div> |
1098 | ···· | 1098 | ···· |
Offset 695, 9 lines modified | Offset 695, 9 lines modified | ||
695 | ····def·parse_shop(self,·response): | 695 | ····def·parse_shop(self,·response): |
696 | ········pass·#·...·scrape·shop·here·... | 696 | ········pass·#·...·scrape·shop·here·... |
697 | ····def·parse_other(self,·response): | 697 | ····def·parse_other(self,·response): |
698 | ········pass·#·...·scrape·other·here·... | 698 | ········pass·#·...·scrape·other·here·... |
699 | Next·Previous | 699 | Next·Previous |
700 | =============================================================================== | 700 | =============================================================================== |
701 | ©·Copyright·2008â202 | 701 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
702 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 702 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 334, 15 lines modified | Offset 334, 15 lines modified | ||
334 | ········<a·href="logging.html"·class="btn·btn-neutral·float-left"·title="Logging"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 334 | ········<a·href="logging.html"·class="btn·btn-neutral·float-left"·title="Logging"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
335 | ····</div> | 335 | ····</div> |
336 | ··<hr/> | 336 | ··<hr/> |
337 | ··<div·role="contentinfo"> | 337 | ··<div·role="contentinfo"> |
338 | ····<p> | 338 | ····<p> |
339 | ········©·Copyright·2008–202 | 339 | ········©·Copyright·2008–2024,·Scrapy·developers. |
340 | ······<span·class="lastupdated"> | 340 | ······<span·class="lastupdated"> |
341 | ········Last·updated·on·May·20,·2022. | 341 | ········Last·updated·on·May·20,·2022. |
342 | ······</span> | 342 | ······</span> |
343 | ····</p> | 343 | ····</p> |
344 | ··</div> | 344 | ··</div> |
345 | ···· | 345 | ···· |
Offset 132, 9 lines modified | Offset 132, 9 lines modified | ||
132 | ······A·Stats·collector·which·does·nothing·but·is·very·efficient·(because·it | 132 | ······A·Stats·collector·which·does·nothing·but·is·very·efficient·(because·it |
133 | ······does·nothing).·This·stats·collector·can·be·set·via·the·STATS_CLASS | 133 | ······does·nothing).·This·stats·collector·can·be·set·via·the·STATS_CLASS |
134 | ······setting,·to·disable·stats·collect·in·order·to·improve·performance. | 134 | ······setting,·to·disable·stats·collect·in·order·to·improve·performance. |
135 | ······However,·the·performance·penalty·of·stats·collection·is·usually·marginal | 135 | ······However,·the·performance·penalty·of·stats·collection·is·usually·marginal |
136 | ······compared·to·other·Scrapy·workload·like·parsing·pages. | 136 | ······compared·to·other·Scrapy·workload·like·parsing·pages. |
137 | Next·Previous | 137 | Next·Previous |
138 | =============================================================================== | 138 | =============================================================================== |
139 | ©·Copyright·2008â202 | 139 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
140 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 140 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 440, 15 lines modified | Offset 440, 15 lines modified | ||
440 | ········<a·href="email.html"·class="btn·btn-neutral·float-left"·title="Sending·e-mail"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 440 | ········<a·href="email.html"·class="btn·btn-neutral·float-left"·title="Sending·e-mail"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
441 | ····</div> | 441 | ····</div> |
442 | ··<hr/> | 442 | ··<hr/> |
443 | ··<div·role="contentinfo"> | 443 | ··<div·role="contentinfo"> |
444 | ····<p> | 444 | ····<p> |
445 | ········©·Copyright·2008–202 | 445 | ········©·Copyright·2008–2024,·Scrapy·developers. |
446 | ······<span·class="lastupdated"> | 446 | ······<span·class="lastupdated"> |
447 | ········Last·updated·on·May·20,·2022. | 447 | ········Last·updated·on·May·20,·2022. |
448 | ······</span> | 448 | ······</span> |
449 | ····</p> | 449 | ····</p> |
450 | ··</div> | 450 | ··</div> |
451 | ···· | 451 | ···· |
Offset 189, 9 lines modified | Offset 189, 9 lines modified | ||
189 | The·username·used·for·the·telnet·console | 189 | The·username·used·for·the·telnet·console |
190 | ****·TELNETCONSOLE_PASSWORD¶·**** | 190 | ****·TELNETCONSOLE_PASSWORD¶·**** |
191 | Default:·None | 191 | Default:·None |
192 | The·password·used·for·the·telnet·console,·default·behaviour·is·to·have·it | 192 | The·password·used·for·the·telnet·console,·default·behaviour·is·to·have·it |
193 | autogenerated | 193 | autogenerated |
194 | Next·Previous | 194 | Next·Previous |
195 | =============================================================================== | 195 | =============================================================================== |
196 | ©·Copyright·2008â202 | 196 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
197 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 197 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 234, 15 lines modified | Offset 234, 15 lines modified | ||
234 | ········<a·href="telnetconsole.html"·class="btn·btn-neutral·float-left"·title="Telnet·Console"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 234 | ········<a·href="telnetconsole.html"·class="btn·btn-neutral·float-left"·title="Telnet·Console"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
235 | ····</div> | 235 | ····</div> |
236 | ··<hr/> | 236 | ··<hr/> |
237 | ··<div·role="contentinfo"> | 237 | ··<div·role="contentinfo"> |
238 | ····<p> | 238 | ····<p> |
239 | ········©·Copyright·2008–202 | 239 | ········©·Copyright·2008–2024,·Scrapy·developers. |
240 | ······<span·class="lastupdated"> | 240 | ······<span·class="lastupdated"> |
241 | ········Last·updated·on·May·20,·2022. | 241 | ········Last·updated·on·May·20,·2022. |
242 | ······</span> | 242 | ······</span> |
243 | ····</p> | 243 | ····</p> |
244 | ··</div> | 244 | ··</div> |
245 | ···· | 245 | ···· |
Offset 67, 9 lines modified | Offset 67, 9 lines modified | ||
67 | =============================================================================== | 67 | =============================================================================== |
68 | ******·Web·Service¶·****** | 68 | ******·Web·Service¶·****** |
69 | webservice·has·been·moved·into·a·separate·project. | 69 | webservice·has·been·moved·into·a·separate·project. |
70 | It·is·hosted·at: | 70 | It·is·hosted·at: |
71 | ·····https://github.com/scrapy-plugins/scrapy-jsonrpc | 71 | ·····https://github.com/scrapy-plugins/scrapy-jsonrpc |
72 | Next·Previous | 72 | Next·Previous |
73 | =============================================================================== | 73 | =============================================================================== |
74 | ©·Copyright·2008â202 | 74 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
75 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 75 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 279, 15 lines modified | Offset 279, 15 lines modified | ||
279 | ········<a·href="contributing.html"·class="btn·btn-neutral·float-left"·title="Contributing·to·Scrapy"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> | 279 | ········<a·href="contributing.html"·class="btn·btn-neutral·float-left"·title="Contributing·to·Scrapy"·accesskey="p"·rel="prev"><span·class="fa·fa-arrow-circle-left"·aria-hidden="true"></span>·Previous</a> |
280 | ····</div> | 280 | ····</div> |
281 | ··<hr/> | 281 | ··<hr/> |
282 | ··<div·role="contentinfo"> | 282 | ··<div·role="contentinfo"> |
283 | ····<p> | 283 | ····<p> |
284 | ········©·Copyright·2008–202 | 284 | ········©·Copyright·2008–2024,·Scrapy·developers. |
285 | ······<span·class="lastupdated"> | 285 | ······<span·class="lastupdated"> |
286 | ········Last·updated·on·May·20,·2022. | 286 | ········Last·updated·on·May·20,·2022. |
287 | ······</span> | 287 | ······</span> |
288 | ····</p> | 288 | ····</p> |
289 | ··</div> | 289 | ··</div> |
290 | ···· | 290 | ···· |
Offset 101, 9 lines modified | Offset 101, 9 lines modified | ||
101 | 14th·2021·or·before·that. | 101 | 14th·2021·or·before·that. |
102 | Any·new·Scrapy·release·after·a·year·may·remove·support·for·that·deprecated | 102 | Any·new·Scrapy·release·after·a·year·may·remove·support·for·that·deprecated |
103 | feature. | 103 | feature. |
104 | All·deprecated·features·removed·in·a·Scrapy·release·are·explicitly·mentioned·in | 104 | All·deprecated·features·removed·in·a·Scrapy·release·are·explicitly·mentioned·in |
105 | the·release_notes. | 105 | the·release_notes. |
106 | Previous | 106 | Previous |
107 | =============================================================================== | 107 | =============================================================================== |
108 | ©·Copyright·2008â202 | 108 | ©·Copyright·2008â2024,·Scrapy·developers.··Last·updated·on·May·20,·2022. |
109 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 109 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |