Hello, I’m wondering if somebody can help or share his experience.
I’m trying to use the multiscrape integration to get energy cost values (PUN values).
The document to parse is an XML but while there are a few examples on how to parse the values of an html document (also on the custom integration Wiki) I could find nothing for XMLs.
How do I identify the fields? I tried with the nodes path but no luck.
In particular I’m interested in using the select_list
feature to get all the hourly costs at once (this is what I tried: select_list: 'NewDataSet > Prezzi > PUN'
)
Below an XML extract (you can have a look at the actual file here - you will get a landing page asking you to check a couple of boxes to accept the use terms and then you will be redirected to the file).
Thanks to anybody who can help!
<NewDataSet>
<xs:schema id="NewDataSet">
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Prezzi">
<xs:complexType>
<xs:sequence>
<xs:element name="Data" type="xs:string" minOccurs="0"/>
<xs:element name="Mercato" type="xs:string" minOccurs="0"/>
<xs:element name="Ora" type="xs:string" minOccurs="0"/>
<xs:element name="PUN" type="xs:string" minOccurs="0"/>
<xs:element name="NAT" type="xs:string" minOccurs="0"/>
<xs:element name="CALA" type="xs:string" minOccurs="0"/>
<xs:element name="CNOR" type="xs:string" minOccurs="0"/>
<xs:element name="CSUD" type="xs:string" minOccurs="0"/>
<xs:element name="NORD" type="xs:string" minOccurs="0"/>
<xs:element name="SARD" type="xs:string" minOccurs="0"/>
<xs:element name="SICI" type="xs:string" minOccurs="0"/>
<xs:element name="SUD" type="xs:string" minOccurs="0"/>
<xs:element name="AUST" type="xs:string" minOccurs="0"/>
<xs:element name="COAC" type="xs:string" minOccurs="0"/>
<xs:element name="COUP" type="xs:string" minOccurs="0"/>
<xs:element name="CORS" type="xs:string" minOccurs="0"/>
<xs:element name="FRAN" type="xs:string" minOccurs="0"/>
<xs:element name="GREC" type="xs:string" minOccurs="0"/>
<xs:element name="SLOV" type="xs:string" minOccurs="0"/>
<xs:element name="SVIZ" type="xs:string" minOccurs="0"/>
<xs:element name="BSP" type="xs:string" minOccurs="0"/>
<xs:element name="MALT" type="xs:string" minOccurs="0"/>
<xs:element name="XAUS" type="xs:string" minOccurs="0"/>
<xs:element name="XFRA" type="xs:string" minOccurs="0"/>
<xs:element name="MONT" type="xs:string" minOccurs="0"/>
<xs:element name="XGRE" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<Prezzi>
<Data>20230822</Data>
<Mercato>MGP</Mercato>
<Ora>1</Ora>
<PUN>119,631120</PUN>
<NAT>121,230000</NAT>
<CALA>124,000000</CALA>
<CNOR>119,190000</CNOR>
<CSUD>119,190000</CSUD>
<NORD>119,190000</NORD>
<SARD>119,190000</SARD>
<SICI>124,000000</SICI>
<SUD>119,190000</SUD>
<AUST>119,190000</AUST>
<COAC>119,190000</COAC>
<COUP>119,190000</COUP>
<CORS>119,190000</CORS>
<FRAN>119,190000</FRAN>
<GREC>119,190000</GREC>
<SLOV>119,190000</SLOV>
<SVIZ>119,190000</SVIZ>
<BSP>119,190000</BSP>
<MALT>124,000000</MALT>
<XAUS>119,190000</XAUS>
<XFRA>119,190000</XFRA>
<MONT>119,190000</MONT>
<XGRE>119,190000</XGRE>
</Prezzi>
<Prezzi>
<Data>20230822</Data>
<Mercato>MGP</Mercato>
<Ora>2</Ora>
<PUN>124,000000</PUN>
<NAT>124,000000</NAT>
<CALA>124,000000</CALA>
<CNOR>124,000000</CNOR>
<CSUD>124,000000</CSUD>
<NORD>124,000000</NORD>
<SARD>124,000000</SARD>
<SICI>124,000000</SICI>
<SUD>124,000000</SUD>
<AUST>124,000000</AUST>
<COAC>124,000000</COAC>
<COUP>124,000000</COUP>
<CORS>124,000000</CORS>
<FRAN>124,000000</FRAN>
<GREC>124,000000</GREC>
<SLOV>124,000000</SLOV>
<SVIZ>124,000000</SVIZ>
<BSP>124,000000</BSP>
<MALT>124,000000</MALT>
<XAUS>124,000000</XAUS>
<XFRA>124,000000</XFRA>
<MONT>124,000000</MONT>
<XGRE>124,000000</XGRE>
</Prezzi>
<Prezzi>
<Data>20230822</Data>
<Mercato>MGP</Mercato>
<Ora>3</Ora>
<PUN>119,000000</PUN>
<NAT>116,270000</NAT>
<CALA>149,270000</CALA>
<CNOR>115,996050</CNOR>
<CSUD>115,996050</CSUD>
<NORD>115,996050</NORD>
<SARD>115,996050</SARD>
<SICI>149,270000</SICI>
<SUD>115,996050</SUD>
<AUST>115,996050</AUST>
<COAC>115,996050</COAC>
<COUP>115,996050</COUP>
<CORS>115,996050</CORS>
<FRAN>115,996050</FRAN>
<GREC>115,996050</GREC>
<SLOV>115,996050</SLOV>
<SVIZ>115,996050</SVIZ>
<BSP>115,996050</BSP>
<MALT>149,270000</MALT>
<XAUS>115,996050</XAUS>
<XFRA>115,996050</XFRA>
<MONT>115,996050</MONT>
<XGRE>115,996050</XGRE>
</Prezzi>
</NewDataSet>