我正在尝试抓取一个服装零售购物网站。由于某种原因,每当我运行以下代码时,我最终都会从三个类别(在parse()中定义为第n个子项)中获得几个项,并从li:nth-child(5)中获得大量项。有时会出现以下错误:
2017-01-09 20:33:30 [scrapy] ERROR: Spider error processing <GET http://www.example.com/jacketsEither the element is no longer attached to the DOM or the pag