<reponame>chongiadung/choinho<filename>scraper/storage_spiders/babyonevn.py<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='pd-name']/h1",
    'price' : "//div[@class='pctemp']/div/span[@class='sub5 txt_20 chudam']",
    'category' : "//div[@class='lead_sub2']/div/a",
    'description' : "//div[@class='pcdetails']/div[@class='tabus']",
    'images' : "//div[@class='hbimg zoomp']/a/@href",
    'canonical' : "",
    'base_url' : "",
    'brand' : ""
}
name = 'babyone.vn'
allowed_domains = ['babyone.vn']
start_urls = ['http://babyone.vn/']
tracking_url = ''
sitemap_urls = ['']
sitemap_rules = [('', 'parse_item')]
sitemap_follow = []
rules = [
    Rule(LinkExtractor(allow=['/[a-zA-Z0-9-]+-\d{4}\.html$']), 'parse_item'),
    Rule(LinkExtractor(allow=['/[a-zA-Z0-9-]+-\d{1,3}\.html']), '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='pd-name']/h1",
    'price' : "//div[@class='pctemp']/div/span[@class='sub5 txt_20 chudam']",
    'category' : "//div[@class='lead_sub2']/div/a",
    'description' : "//div[@class='pcdetails']/div[@class='tabus']",
    'images' : "//div[@class='hbimg zoomp']/a/@href",
    'canonical' : "",
    'base_url' : "",
    'brand' : ""
}
name = 'babyone.vn'
allowed_domains = ['babyone.vn']
start_urls = ['http://babyone.vn/']
tracking_url = ''
sitemap_urls = ['']
sitemap_rules = [('', 'parse_item')]
sitemap_follow = []
rules = [
    Rule(LinkExtractor(allow=['/[a-zA-Z0-9-]+-\d{4}\.html$']), 'parse_item'),
    Rule(LinkExtractor(allow=['/[a-zA-Z0-9-]+-\d{1,3}\.html']), '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'),