forked from mulsahu/testspac
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtechbargains.com.json
21 lines (21 loc) · 1.22 KB
/
techbargains.com.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
"name":"crawl techbargains.com deals",
"model": "com.fp.ecommerce.model.Deal",
"urls":[
"http://www.techbargains.com/?page=1"
],
"list_xpath":"//section[contains(@class,'deal-feed')]//div[contains(@class,'deal_wrapper')]",
"fields":{
"siteName": "##www.techbargains.com",
"title": "//div[contains(@class,'deal-inner_right')]//h4[contains(@class,'deal-title')]/a",
"imageUrl": "//div[contains(@class,'deal-image_wrapper')]//a/@style !! (http.*[0-9a-zA-Z]+)",
"category": "##deals",
"desc": "//div[contains(@class,'deal-inner_right')]//div[contains(@class,'deal-description')]//p",
"regularPrice": "//div[contains(@class,'deal-price_wrapper')]//p[contains(@class,'list-price')]//span[1] !! ([0-9]*\\.?[0-9]+)",
"dealPrice": "//div[contains(@class,'deal-price_wrapper')]//p[contains(@class,'final-price')]//span !! ([0-9]*\\.?[0-9]+)",
"discount": "//div[contains(@class,'deal-price_wrapper')]//p[contains(@class,'list-price')]//span[2] !! ([0-9]*\\.?[0-9]+)",
"detailUrl": "//div[contains(@class,'deal-title')]//a/@href",
"salePitch": "//div[contains(@class,'deal-price_wrapper')]//p[contains(@class,'shipping')]",
"redirUrl": "//div[contains(@class,'deal-btn_wrapper')]//a/@href"
}
}