Hi,
is it possible to provide website login data for this component so that you can scrape data which is behind a login?
Could it be, that I just have to edit: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/sensor/scrape.py
to include the following in the PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
section:
vol.Optional(CONF_AUTHENTICATION):
vol.In([HTTP_BASIC_AUTHENTICATION, HTTP_DIGEST_AUTHENTICATION]),
vol.Optional(CONF_USERNAME): cv.string,
vol.Optional(CONF_PASSWORD): cv.string,
and add the following to: def setup_platform(hass, config, add_devices, discovery_info=None)
:
username = config.get(CONF_USERNAME)
password = config.get(CONF_PASSWORD)
And finally then further down remove the “auth” from:
payload = auth = headers = None
to
payload = headers = None
It would be great if you could confirm these steps or help me along my way! Thanks!