<gh_stars>0
# 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='product-name']/h1",
    'price' : "//div[@class='span8']/div[@class='price-box']/p[@class='special-price']/span[2] | //div[@class='span8']/div[@class='price-box']/span/span[@class='price']",
    'category' : "//div[@class='col-main']/div/ul/li/a | //ul[@class='breadcrumb hidden-phone']/li/a",
    'description' : "//div[@class='box-collateral box-description']",
    'images' : "//div[@class='product-img-box span4']/p//a/@href | //div[@class='more-views']/ul/li/a/@href",
    'canonical' : "//link[@rel='canonical']/@href",
    'base_url' : "",
    'brand' : ""
}
name = 'halobuy.vn'
allowed_domains = ['halobuy.vn']
start_urls = ['http://halobuy.vn/']
tracking_url = ''
sitemap_urls = ['']
sitemap_rules = [('', 'parse_item')]
sitemap_follow = []
rules = [
    Rule(LinkExtractor(allow=['/[a-zA-Z0-9-]+.html'], deny=['/thiet-bi-so','/gia-dung','/me-va-be','/the-thao','/du-lich','/qua-tang','/thiet-bi-cham-soc-suc-khoe','\?p=\d+']), 'parse_item'),
    Rule(LinkExtractor(allow=['/thiet-bi-so','/gia-dung','/me-va-be','/the-thao','/du-lich','/qua-tang','/thiet-bi-cham-soc-suc-khoe','\?p=\d+'], deny=['www\.halobuy\.vn','limit=','dir=','oder=']), 'parse'),
    #Rule(LinkExtractor(), 'parse_item_and_links'),
]

# 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='product-name']/h1",
    'price' : "//div[@class='span8']/div[@class='price-box']/p[@class='special-price']/span[2] | //div[@class='span8']/div[@class='price-box']/span/span[@class='price']",
    'category' : "//div[@class='col-main']/div/ul/li/a | //ul[@class='breadcrumb hidden-phone']/li/a",
    'description' : "//div[@class='box-collateral box-description']",
    'images' : "//div[@class='product-img-box span4']/p//a/@href | //div[@class='more-views']/ul/li/a/@href",
    'canonical' : "//link[@rel='canonical']/@href",
    'base_url' : "",
    'brand' : ""
}
name = 'halobuy.vn'
allowed_domains = ['halobuy.vn']
start_urls = ['http://halobuy.vn/']
tracking_url = ''
sitemap_urls = ['']
sitemap_rules = [('', 'parse_item')]
sitemap_follow = []
rules = [
    Rule(LinkExtractor(allow=['/[a-zA-Z0-9-]+.html'], deny=['/thiet-bi-so','/gia-dung','/me-va-be','/the-thao','/du-lich','/qua-tang','/thiet-bi-cham-soc-suc-khoe','\?p=\d+']), 'parse_item'),
    Rule(LinkExtractor(allow=['/thiet-bi-so','/gia-dung','/me-va-be','/the-thao','/du-lich','/qua-tang','/thiet-bi-cham-soc-suc-khoe','\?p=\d+'], deny=['www\.halobuy\.vn','limit=','dir=','oder=']), 'parse'),
    #Rule(LinkExtractor(), 'parse_item_and_links'),
]
# Auto generated by generator.py. Delete this line if you make modification. #Rule(LinkExtractor(), 'parse_item_and_links'),