dkkr23
(Dkkr23)
1
Hi All. I’m trying to use Multiscrape to scrape the product names and prices from the following page into home assistant: Home - eBucks
Trying code in multiscrape.yaml, but its not even worth pasting here.
I just can’t figure it out. Any Multiscrape pros out there?
malosaa
(Hector)
2
Hi
try this out its the first 3 items and prices.
multiscrape:
- resource: https://www.ebucks.com/web/shop/categorySelected.do?catId=1986770766
name: ebucks
scan_interval: 3600
sensor:
name: ebucks
select: "#\\32 023664768 .productbox-name"
attributes:
- name: first item
select: "#\\32 023664768 .productbox-name"
on_error:
value: default
- name: First item price
select: "#\\32 023664768 > div > .was-price > .randValue"
on_error:
value: default
- name: Second item
select: "#\\32 006308232 .productbox-name"
on_error:
value: last
- name: Second item price
select: "#\\32 006308232 > div > .rand-price > .randValue"
on_error:
value: default
- name: Third item
select: "#\\32 013284761 .productbox-name"
on_error:
value: last
- name: Third item price
select: "#\\32 013284761 > div > .rand-price > .randValue"
on_error:
value: default