有没有办法强制def parse_web6(self, response): #Eprints BBK
i=0
for sel in response.xpath("//div/div[@class='ep_tm_page_content']/div[@class='ep_view_page ep_view_page_view_subjects']"):
publicaciones = sel.xpath("//div/div[@class='ep_tm_page_content']/div[@class='ep_view_page ep_view_page_view_subjects']/p/a/text()").extract() #publicacion
autores = response.xpath("//div/div[@class='ep_tm_page_content']/div[@class='ep_view_page ep_view_page_view_subjects']/p/span[@class='person_name']/text()").extract() #Autor
links = sel.xpath("//div/div[@class='ep_tm_page_content']/div[@class='ep_view_page ep_view_page_view_subjects']/p/a/@href").extract()
if i == 0:
o=0
while o != len(publicaciones):
publicacion = PublicacionItem()
publicacion['titulo_publicacion'] = publicaciones[o]
publicacion['anio_publicacion'] = response.xpath("//div/div[@class='ep_tm_page_content']/div[@class='ep_view_page ep_view_page_view_subjects']/p").re(r'\d\d\d\d')[0].strip() #Fecha, ultimos cuatro digitos.
publicacion['isbn'] = response.xpath("//div/div[@class='ep_tm_page_content']/div[@class='ep_view_page ep_view_page_view_subjects']/p").re(r'\d\d\d\d-\d\d\d\d')[0].strip()
publicacion['nombre_autor'] = autores[o]
publicacion['url_link'] = links[o]
yield publicacion
o+=1
i+=1
只允许通用或python轮子,并编译本地只用作二进制轮子的包?
答案 0 :(得分:0)
pip install --implementation py
仅安装通用轮子。您还需要指定对依赖项的处理方式(如果您尝试在不使用其他必需标志的情况下运行此命令,则会出现一条错误消息,说明您的选择)。