擅长:python、mysql、java
<p>如果只想使用蜘蛛中的<code>start_urls</code>,则必须实现<code>parse</code>方法,因为您可以检查<a href="https://github.com/scrapy/scrapy/blob/master/scrapy/spiders/__init__.py#L76" rel="nofollow">here</a></p>
<p><code>parse</code>方法是从<code>start_urls</code>中的url发出的请求的默认回调。</p>
<p>如果要从一开始就控制请求,还可以使用<code>start_requests</code>方法。</p>