forked from mulsahu/testspac
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdealcatcher.com.json
22 lines (22 loc) · 976 Bytes
/
dealcatcher.com.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"name":"crawl dealcatcher.com deals",
"model": "com.fp.ecommerce.model.Deal",
"urls":[
"https://www.dealcatcher.com/computers-office !! category= Computers and Office",
"https://www.dealcatcher.com/electronics !! category= Electronics"
],
"list_xpath":"//article[contains(@class, 'deal-enclosure')]",
"fields":{
"siteName": "##www.dealcatcher.com",
"title": "//h3//a",
"category": "$$category",
"imageUrl": "//div[contains(@class, 'image-block')]/img/@src",
"desc": "//div[contains(@class, 'description')]",
"regularPrice": "//span[contains(@class, 'retail-price')] !! ([0-9]*\\.?[0-9]+)",
"dealPrice": "//span[contains(@class, 'deal-price')] !! ([0-9]*\\.?[0-9]+)",
"merchant": "//div[contains(@class, 'deal-in')]//a[contains(@class, 'deal-merchant')]",
"salePitch": "//span[contains(@class, 'deal-info')]",
"detailUrl": "//div[contains(@class, 'deal-body')]//h3//a/@href",
"postTime": "//time/@datetime"
}
}