Import from Web Table doesn't work anymore

Dear All,

I have been using portfolio performance since 2019 and it is a really marvelous tool to follow all my investments.

Since May 2021 I have set a small python+pandas+flask web service on a raspberry pi zero that calculates an equivalent of the share value of my crypto investment and displays it on a web table. I could automatically retrieve it on portfolio manager through the “get cotation from web table” feature from May 2021 to May 2022 but it seemed to stop working about 3 weeks ago. This seemed to be at the same time as a kind of major update of portfolio performance. On the web server side nothing changed and the server is very accessible.

Has anyone encoutered such issue? If yes if there any fix?

Please find hereunder the log that I get from portfolio performance while using the debug fonction of the quotation. (FYI I’ve tried to play with the date format inside the web table on a test server but nothing changed, quotation could not update either in portfolio performance)

Thanks a lot for your help,

Kind Regards,

Thasille

<table> 
 <thead> 
  <tr> 
   <td>Date</td> 
   <td>Price</td> 
  </tr> 
  <tr> 
   <td>2022-06-18</td> 
   <td>0.3557727090502814</td> 
  </tr> 
  <tr> 
   <td>2022-06-17</td> 
   <td>0.35758328244856163</td> 
  </tr> 
  <tr> 
   <td>2022-06-16</td> 
   <td>0.35133541196565654</td> 
  </tr> 
  <tr> 
   <td>2022-06-15</td> 
   <td>0.3890459730846775</td> 
  </tr> 
  <tr> 
   <td>2022-06-14</td> 
   <td>0.37391718867475604</td> 
  </tr> 
  <tr> 
   <td>2022-06-13</td> 
   <td>0.37299750606230103</td> 
  </tr> 
  <tr> 
   <td>2022-06-12</td> 
   <td>0.4144999492175292</td> 
  </tr> 
  <tr> 
   <td>2022-06-11</td> 
   <td>0.43275439949288097</td> 
  </tr> 
  <tr> 
   <td>2022-06-10</td> 
   <td>0.45381662947147544</td> 
  </tr> 
  <tr> 
   <td>2022-06-09</td> 
   <td>0.4668921485717236</td> 
  </tr> 
  <tr> 
   <td>2022-06-08</td> 
   <td>0.46306804237068694</td> 
  </tr> 
  <tr> 
   <td>2022-06-07</td> 
   <td>0.4692386336170037</td> 
  </tr> 
  <tr> 
   <td>2022-06-06</td> 
   <td>0.4745202475696139</td> 
  </tr> 
  <tr> 
   <td>2022-06-05</td> 
   <td>0.4595802321668841</td> 
  </tr> 
  <tr> 
   <td>2022-06-04</td> 
   <td>0.46034150694166</td> 
  </tr> 
  <tr> 
   <td>2022-06-03</td> 
   <td>0.4560731508859767</td> 
  </tr> 
  <tr> 
   <td>2022-06-02</td> 
   <td>0.4675597752135443</td> 
  </tr> 
  <tr> 
   <td>2022-06-01</td> 
   <td>0.46447876753028144</td> 
  </tr> 
  <tr> 
   <td>2022-05-31</td> 
   <td>0.4883556707028643</td> 
  </tr> 
  <tr> 
   <td>2022-05-30</td> 
   <td>0.48772576751587826</td> 
  </tr> 
  <tr> 
   <td>2022-05-29</td> 
   <td>0.4616344206393741</td> 
  </tr> 
  <tr> 
   <td>2022-05-28</td> 
   <td>0.4572393445667055</td> 
  </tr> 
  <tr> 
   <td>2022-05-27</td> 
   <td>0.4465291026905202</td> 
  </tr> 
  <tr> 
   <td>2022-05-26</td> 
   <td>0.4572312897655134</td> 
  </tr> 
  <tr> 
   <td>2022-05-25</td> 
   <td>0.4763088376512311</td> 
  </tr> 
  <tr> 
   <td>2022-05-24</td> 
   <td>0.47804475860121337</td> 
  </tr> 
  <tr> 
   <td>2022-05-23</td> 
   <td>0.4746243739224944</td> 
  </tr> 
  <tr> 
   <td>2022-05-22</td> 
   <td>0.4905775950581254</td> 
  </tr> 
  <tr> 
   <td>2022-05-21</td> 
   <td>0.48319894471624947</td> 
  </tr> 
  <tr> 
   <td>2022-05-20</td> 
   <td>0.47774495080061474</td> 
  </tr> 
  <tr> 
   <td>2022-05-19</td> 
   <td>0.48687132358723356</td> 
  </tr> 
  <tr> 
   <td>2022-05-18</td> 
   <td>0.4751114901970189</td> 
  </tr> 
  <tr> 
   <td>2022-05-17</td> 
   <td>0.5040625659723186</td> 
  </tr> 
  <tr> 
   <td>2022-05-16</td> 
   <td>0.4977851670434027</td> 
  </tr> 
  <tr> 
   <td>2022-05-15</td> 
   <td>0.5225256596293445</td> 
  </tr> 
  <tr> 
   <td>2022-05-14</td> 
   <td>0.5038036135507092</td> 
  </tr> 
  <tr> 
   <td>2022-05-13</td> 
   <td>0.49091365734968184</td> 
  </tr> 
  <tr> 
   <td>2022-05-12</td> 
   <td>0.47597721505647983</td> 
  </tr> 
  <tr> 
   <td>2022-05-11</td> 
   <td>0.4806869053064566</td> 
  </tr> 
  <tr> 
   <td>2022-05-10</td> 
   <td>0.5513823314875722</td> 
  </tr> 
  <tr> 
   <td>2022-05-09</td> 
   <td>0.5477186755550062</td> 
  </tr> 
  <tr> 
   <td>2022-05-08</td> 
   <td>0.6225908141412918</td> 
  </tr> 
  <tr> 
   <td>2022-05-07</td> 
   <td>0.6436425008956581</td> 
  </tr> 
  <tr> 
   <td>2022-05-06</td> 
   <td>0.6587036641274235</td> 
  </tr> 
  <tr> 
   <td>2022-05-05</td> 
   <td>0.6684336762335852</td> 
  </tr> 
 </thead> 
</table>

There was no meaningful change to the PP code in that period, but I updated the dependencies to the JSoup library which is used to extract data from HTML.

Apparently JSoup became more picky on the HTML.
I noticed that your service returns all rows as thead (header rows).
If you change it in such a way that you add the body inside a tbody, it should work.
Or you remove the thead and just use tr tags, then it works also.

2 Likes

Hello again,

That’s awesome, I removed the thead tags and it works like a charm!

Thanks a lot for all your hard work,

Kind Regards,

Thasille

1 Like