Multiscrape getting value results 403

Hi all,

I am trying to get some fuel prices the same way i did with other prices for energy etc via multiscrape (which are working).

But the fuel prices somehow won’t get scraped and shown in the entity. It’s always getting the “unavailable”.
Thought it was a small and easy thing to setup…

Only thing i get in the logs is a 403 error. But no idea how/if i can fix this to get the price?

Scraper_noname_0 # Updating failed with exception: Client error '403 Forbidden' for url 'https://www.makro.nl/vestigingen/breda/' For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403 

Tried and searched if i made a typo or a missing ’ somewhere etc, but doesn’t seem the case.
Any idea how i can make this work? It’s driving me crazy or i am missing something small that i keep missing…

Used code in the yaml:

## Package
multiscrape:

## Sensor
- resource: https://www.makro.nl/vestigingen/breda
  scan_interval: 3600
  sensor:
    - unique_id: euro95_prijs_makro
      name: Euro 95
      select: ".fuel-prices .price:nth-child(2) .field-price"
      unit_of_measurement: "€/l"
      value_template: "{{ value.split('€')[1]|replace(',','.') }}"

Thanks in advance :slight_smile:

That site blocks you until you make a decision as to whether or not to accept cookies. I’m not sure if Multiscrape’s form submit can handle something like that, I’ve never tried.

The <button> element to reject cookies has this as a selector: #footer > div > div:nth-child(3) > div > div > div > div > div > div.buttons > div > button.btn-secondary.reject-btn.field-reject-button-name

tried some different options but couldnt get it to work with that cookie bar blocking it. Tried some options with the form-submit ect but also no luck.