Created
July 26, 2017 16:18
-
-
Save jenya/4e5277d74f435699d3ce2aea0b40f3ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from scrapy.spiders import SitemapSpider | |
class HbiczSpider(SitemapSpider): | |
name = 'hbicz' | |
sitemap_urls = ['http://hbi.cz/sitemap.xml'] | |
sitemap_rules = [(r"http://www\.hbi\.cz/en/firmy/[^./]+-C\d+.html", 'parse')] | |
sitemap_follow = [r"http://www\.hbi\.cz/CoSiteMap_C184.xml"] | |
sitemap_alternate_links = True | |
def parse(self, response): | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment