-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathscrapers.config.json
More file actions
90 lines (88 loc) · 2.79 KB
/
scrapers.config.json
File metadata and controls
90 lines (88 loc) · 2.79 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
"jumia": {
"baseURI": "https://www.jumia.com.ng",
"searchSegment" : ["/catalog/?q="],
"parentDOM": "div[data-catalog] article.prd",
"extractables" : [
{
"variable": "link",
"source": "a.core",
"attribute": "href"
},
{
"variable": "img",
"source": "div.img-c > img.img",
"attribute": "data-src"
},
{
"variable": "name",
"source": "div.info > h3.name",
"attribute": "_text"
},
{
"variable": "price",
"source": "div.info div.prc",
"attribute": "_text"
},
{
"variable": "rating_text",
"source": "div.info div.stars._s",
"attribute": "_text"
}
]
},
"kara": {
"baseURI": "https://www.kara.com.ng",
"searchSegment" : ["/catalogsearch/result/?q="],
"parentDOM": "ol.products li.product",
"extractables" : [
{
"variable": "link",
"source": "div.product_image > a.photo",
"attribute": "href"
},
{
"variable": "img",
"source": "div.product_image > a > span.product-image-container > span.product-image-wrapper > img.product-image-photo",
"attribute": "src"
},
{
"variable": "name",
"source": "div.product.details.product-item-details > h2.product-item-name > a.product-item-link",
"attribute": "_text"
},
{
"variable": "price",
"source": ".price-wrapper > span.price",
"attribute": "_text"
}
]
},
"slot": {
"baseURI": "https://slot.ng",
"searchSegment" : ["/?s=", "&post_type=product"],
"parentDOM": "ul.products li.product",
"extractables" : [
{
"variable": "link",
"source": "div.mf-product-thumbnail > a",
"attribute": "href"
},
{
"variable": "img",
"source": "div.mf-product-thumbnail > a > img",
"attribute": "src"
},
{
"variable": "name",
"source": "div.mf-product-details > div.mf-product-content > h2 > a",
"attribute": "_text"
},
{
"variable": "price",
"source": "div.mf-product-details > div.mf-product-price-box > span.price span.amount",
"attribute": "_text"
}
]
}
}