привет У меня есть эта ошибка runspider: ошибка: невозможно загрузить 'oddschecker.py': нет модуля с именем 'market' Я пытаюсь установить библиотеку, но она не позволяет мне
import scrapy
import numpy as np
from scrapy.spiders import CrawlSpider, Rule
from scrapy.linkextractors import LinkExtractor
from scrapy.exceptions import CloseSpider
from mercado.items import MercadoItem
class Oddschecker(scrapy.Spider):
name = "oddschecker"
allowed_domains = ['oddschecker.com']
start_urls = ['https://www.oddschecker.com/football/france/ligue-1/nice-v-paris-st-germain/winner']
custom_settings = {
'USER_AGENT': 'my-cool-project (http://example33.com)',
}
rules = {
# Para cada item
Rule(LinkExtractor(allow=(),restrict_xpaths=('(//a [@class="select-item beta- callout"]) [3] '))),
Rule(LinkExtractor(allow=(), restrict_xpaths=('(//a [@class="select-item beta- callout"]) [4] ')),
callback='parse_item', follow=False)
}
def parse_item(self, response):
item = MercadoItem()
item['uno']=(response.xpath(" (//a [@class='popup selTxt'] ) //text()
").extract())
item['dos']=(response.xpath(" (//td [@data-bk='B3']) [2] //text()
").extract())
item['tres']=(response.xpath(" (//a [@class='popup selTxt'] ) //text()
").extract()