このサイトをスクラップしようとしていますが、 'NotSupported:サポートされていないURLスキーム' ':なぜルールが間違っていないのであれば、なぜ起こっているのか、あなたの提案は何か、助けてください。どうもありがとう。NotSupported:サポートされていないURLスキーム '':そのスキームで利用可能なハンドラーがありません。
コードはここにある:
from scrapy.spiders import CrawlSpider, Rule, BaseSpider
from scrapy.linkextractors import LinkExtractor
class FellowSearch(CrawlSpider):
name ='fellow'
allowed_domains = ['emma.cam.ac.uk']
start_urls = [' https://www.emma.cam.ac.uk/']
rules =(Rule(LinkExtractor(allow=(r'\?id=\d+$')),callback='parse_obj', follow=True),)
def parse_obj(self, response):
print response.url
「ハッピー」の前にスペースがありますか? –