<filename>scraper/storage_spiders/sunflycomvn.py
# Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor

XPATH = {
    'name' : "//h2",
    'price' : "//div[@data-prop='PriceSaleInt']",
    'category' : "//div[@class='tmn_title']//a",
    'description' : "",
    'images' : "//div[@class='iImg ']/a/@href",
    'canonical' : "",
    'base_url' : "",
    'brand' : "",
    'in_stock' : "",
    'guarantee' : ""
}
name = 'sunfly.com.vn'
allowed_domains = ['sunfly.com.vn']
start_urls = ['http://sunfly.com.vn/']
tracking_url = ''
sitemap_urls = ['']
sitemap_rules = [('', 'parse_item')]
sitemap_follow = ['']
rules = [
    Rule(LinkExtractor(allow=['/san-pham/[/\w-]+-\d+\.html$']), 'parse_item'),
    Rule(LinkExtractor(allow=['/san-pham/[/\w-]+\.html($|\?pi=\d+$)'], deny=['/san-pham/[/\w-]+-\d+\.html$']), 'parse'),
    #Rule(LinkExtractor(), 'parse_item_and_links'),
]
