forked from mulsahu/testspac
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbensbargains-test.com.json
25 lines (25 loc) · 1.26 KB
/
bensbargains-test.com.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
"name":"crawl bensbargains.com deals",
"model": "com.ctx.ecommerce.model.Deal",
"urls":[
"http://bensbargains.com/categories/computers-104/##1-7## !! category= Computer",
"http://bensbargains.com/categories/computer-parts-116/##1-2## !! category= Computer-parts",
"http://bensbargains.com/categories/electronics-105/##1-13## !! category= Electronics"
],
"list_xpath":"//article[contains(@id, 'deal')]",
"fields":{
"siteName": "##www.bensbargains.com",
"title": "//h2[contains(@class, 'deal-title')]/a !! (.+) at",
"detailUrl": "//h2[contains(@class, 'deal-title')]/a/@href",
"category": "$$category",
"score": "//div[contains(@class, 'deal-hotness-meter')]/@style !! width:([0-9]+)px;",
"reviewNum": "//div[contains(@class, 'deal-comment-replies')]/span",
"merchant": "//a[contains(@class, 'deal-merchant')]",
"desc": "//div[contains(@class, 'deal-description')]",
"salePitch": "//div[contains(@class, 'deal-hotness-label')]",
"regularPrice": "//div[contains(@class, 'deal-msrp')] !! \\$([0-9]+)",
"dealPrice": "//div[contains(@class, 'deal-price')] !! \\$([0-9]+)",
"imageUrl": "//figure[contains(@class, 'deal-image')]//img/@data-original",
"postTime" : "//div[contains(@class,'deal-meta')]//time/@datetime"
}
}