# Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor

XPATH = {
    'name' : "//div[@class='col-lg-9 col-md-12 col-sm-12 col-xs-12 tit-des-detail']/h1",
    'price' : "//small[@class='price3']/span/@class",
    'category' : "//ol[@class='breadcrumb']/li/a/span",
    'description' : "//div[@id='motasp']/div[@id='ctl00_ContentPlaceHolder1_ltlkythuat']|//div[@id='tab_description']/div[@id='tab_description1']/div[@class='clearfix']/div[@id='ctl00_ContentPlaceHolder1_ltlmota']|//div[@id='example-two']/div[@class='list-wrap']",
    'images' : "//meta[@property='og:image']/@content",
    'canonical' : "",
    'base_url' : "",
    'brand' : "//div[@class='info-price']/div/div[@class='modeldetail']/a",
    'in_stock' : "",
    'guarantee' : "",
    'promotion' : "//div[@class='promotion']/div[@class='blueline2']/ul/div[@class='product_coupon']/div"
}
name = 'trananh.vn'
allowed_domains = ['trananh.vn']
start_urls = ['http://www.trananh.vn/']
tracking_url = ''
sitemap_urls = ['']
sitemap_rules = [('', 'parse_item')]
sitemap_follow = ['']
rules = [
    Rule(LinkExtractor(allow=['-pid\d+cid\d+$']), 'parse_item'),
    Rule(LinkExtractor(allow=['trananh\.vn(/[a-zA-Z0-9-]+){0,2}/[a-zA-Z0-9-]+-cid\d+$'], deny=['/tin-tuc/']), 'parse'),
    #Rule(LinkExtractor(), 'parse_item_and_links'),
]
