mirror of https://github.com/scrapy/scrapy.git
documentation code example correction corrections per pablohoffman
This commit is contained in:
parent
9028a06de7
commit
6ba0857a5c
|
|
@ -135,6 +135,10 @@ For more information about XPath see the `XPath reference`_.
|
|||
|
||||
Finally, here's the spider code::
|
||||
|
||||
from scrapy.contrib.spiders import CrawlSpider, Rule
|
||||
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor
|
||||
from scrapy.selectors import Selector
|
||||
|
||||
class MininovaSpider(CrawlSpider):
|
||||
|
||||
name = 'mininova'
|
||||
|
|
|
|||
|
|
@ -281,6 +281,8 @@ HttpAuthMiddleware
|
|||
|
||||
Example::
|
||||
|
||||
from scrapy.contrib.spiders import CrawlSpider
|
||||
|
||||
class SomeIntranetSiteSpider(CrawlSpider):
|
||||
|
||||
http_user = 'someuser'
|
||||
|
|
|
|||
Loading…
Reference in New Issue