1
restaurant-search/build/data/converters/tripadvisor.toml

66 lines
1.5 KiB
TOML
Raw Normal View History

2015-09-20 11:02:03 +00:00
name = "tripadvisor"
2015-09-22 02:57:07 +00:00
domains = ["www.tripadvisor.com"]
2015-09-20 11:02:03 +00:00
[index.items]
2015-09-20 06:31:21 +00:00
path = "a.property_title"
attr = "href"
2015-09-20 11:02:03 +00:00
[index.next]
2015-09-20 06:31:21 +00:00
path = "div.deckTools.btm a.nav.next.rndBtn.rndBtnGreen.taLnk"
attr = "href"
2015-09-20 11:02:03 +00:00
[item.name]
2015-09-20 06:31:21 +00:00
path = "h1#HEADING"
2015-09-20 11:02:03 +00:00
[item.address]
2015-09-22 02:57:07 +00:00
path = "address span.format_address"
2015-09-20 06:31:21 +00:00
2015-09-22 02:57:07 +00:00
[item.count]
2015-09-20 06:31:21 +00:00
path = "h3.reviews_header"
2015-09-22 02:57:07 +00:00
regEx = "^(\\d+)"
2015-09-20 06:31:21 +00:00
2015-09-20 13:30:38 +00:00
[item.props]
[item.props.service]
2015-09-20 11:02:03 +00:00
accomodating = 1.0
affordable = 0.0
atmospheric = 0.0
2015-09-22 02:57:07 +00:00
delicious = 0.0
2015-09-20 11:02:03 +00:00
scale = 5.0
2015-09-22 02:57:07 +00:00
path = "ul.barChart > li:nth-child(1) > div:nth-child(2) img"
regEx = "^([0-9]*\\.?[0-9]+)"
2015-09-20 06:31:21 +00:00
attr = "alt"
2015-09-20 13:30:38 +00:00
[item.props.food]
2015-09-20 11:02:03 +00:00
accomodating = 0.0
affordable = 0.0
atmospheric = 0.0
2015-09-22 02:57:07 +00:00
delicious = 1.0
2015-09-20 11:02:03 +00:00
scale = 5.0
2015-09-22 02:57:07 +00:00
path = "ul.barChart > li:nth-child(1) > div:nth-child(1) img"
regEx = "^([0-9]*\\.?[0-9]+)"
2015-09-20 06:31:21 +00:00
attr = "alt"
2015-09-20 13:30:38 +00:00
[item.props.value]
2015-09-20 11:02:03 +00:00
accomodating = 0.0
affordable = 1.0
atmospheric = 0.0
2015-09-22 02:57:07 +00:00
delicious = 0.0
2015-09-20 11:02:03 +00:00
scale = 5.0
2015-09-22 02:57:07 +00:00
path = "ul.barChart > li:nth-child(2) > div:nth-child(1) img"
regEx = "^([0-9]*\\.?[0-9]+)"
2015-09-20 06:31:21 +00:00
attr = "alt"
2015-09-20 13:30:38 +00:00
[item.props.atmosphere]
2015-09-20 11:02:03 +00:00
accomodating = 0.0
affordable = 0.0
atmospheric = 1.0
2015-09-22 02:57:07 +00:00
delicious = 0.0
2015-09-20 11:02:03 +00:00
scale = 5.0
2015-09-22 02:57:07 +00:00
path = "ul.barChart > li:nth-child(2) > div:nth-child(2) img"
regEx = "^([0-9]*\\.?[0-9]+)"
2015-09-20 06:31:21 +00:00
attr = "alt"