Skip to content

Instantly share code, notes, and snippets.

@vikramvi
Created June 30, 2023 12:09
Show Gist options
  • Save vikramvi/fb883bb199e1990582b511edb8ccfa49 to your computer and use it in GitHub Desktop.
Save vikramvi/fb883bb199e1990582b511edb8ccfa49 to your computer and use it in GitHub Desktop.
working doc new JSONObject(doc.text());
<html>
<head></head>
<body>
{"security_id":42383,"essential_checks_z_score":"
<h4>Altman Z-Score&lt;\/h4&gt;\r\n
<div class="\&quot;altman-z-score-modified-prpgress" essential-checks\>
\r\n
<div class="\&quot;investment-bar\&quot;">
\r\n
<div class="\&quot;progress-bar" progress-high-bg\>
&lt;\/div&gt;\r\n
<div class="\&quot;progress-bar" progress-moderately-high-bg\>
&lt;\/div&gt;\r\n
<div class="\&quot;progress-bar" progress-moderate-bg\>
&lt;\/div&gt;\r\n
<div class="\&quot;progress-bar" progress-moderately-low-bg\>
&lt;\/div&gt;\r\n
<div class="\&quot;progress-bar" progress-low-bg\>
&lt;\/div&gt;\r\n &lt;\/div&gt;\r\n
<p class="this-mean"><span class="\&quot;red\&quot;">Not available for banking and finance companies&lt;\/span&gt;&lt;\/p&gt;\r\n &lt;\/div&gt;","essential_checks_c_score":"</span></p>
<h4>Modified C-Score&lt;\/h4&gt;\r\n
<div class="\&quot;altman-z-score-modified-prpgress" essential-checks\>
\r\n
<div class="\&quot;investment-bar\&quot;">
\r\n
<div class="\&quot;progress-bar" progress-low-bg\>
&lt;\/div&gt;\r\n
<div class="\&quot;progress-bar" progress-moderately-low-bg\>
&lt;\/div&gt;\r\n
<div class="\&quot;progress-bar" progress-moderate-bg\>
&lt;\/div&gt;\r\n
<div class="\&quot;progress-bar" progress-moderately-high-bg\>
&lt;\/div&gt;\r\n
<div class="\&quot;progress-bar" progress-high-bg\>
&lt;\/div&gt;\r\n &lt;\/div&gt;\r\n
<p class="this-mean"><span class="\&quot;red\&quot;">Not available for banking and finance companies&lt;\/span&gt;&lt;\/p&gt;\r\n &lt;\/div&gt;","essential_checks_f_score":"</span></p>
<h4>Piotroski F-Score&lt;\/h4&gt;\r\n
<div class="\&quot;altman-z-score-modified-prpgress" essential-checks\>
\r\n
<div class="\&quot;investment-bar\&quot;">
\r\n
<div class="\&quot;progress-bar" progress-high-bg\>
&lt;\/div&gt;\r\n
<div class="\&quot;progress-bar" progress-moderately-high-bg\>
&lt;\/div&gt;\r\n
<div class="\&quot;progress-bar" progress-moderate-bg\>
&lt;\/div&gt;\r\n
<div class="\&quot;progress-bar" progress-moderately-low-bg\>
&lt;\/div&gt;\r\n
<div class="\&quot;progress-bar" progress-low-bg\>
&lt;\/div&gt;\r\n &lt;\/div&gt;\r\n
<p class="this-mean"><span class="\&quot;red\&quot;">Not available for banking and finance companies&lt;\/span&gt;&lt;\/p&gt;\r\n &lt;\/div&gt;","holding_details":"</span></p>
<div class="\&quot;info\&quot;">
\r\n
<p class="\&quot;info-title\&quot;">Others<span class="\&quot;giant-cap-color-circle\&quot;">&lt;\/span&gt; &lt;\/p&gt;\r\n </span></p>
<p class="\&quot;info-value\&quot;">13.92%&lt;\/p&gt;\r\n &lt;\/div&gt;</p>
<div class="\&quot;info\&quot;">
\r\n
<p class="\&quot;info-title\&quot;">FIIs<span class="\&quot;giant-cap-color-circle\&quot;">&lt;\/span&gt; &lt;\/p&gt;\r\n </span></p>
<p class="\&quot;info-value\&quot;">32.24%&lt;\/p&gt;\r\n &lt;\/div&gt;</p>
<div class="\&quot;info\&quot;">
\r\n
<p class="\&quot;info-title\&quot;">DIIs<span class="\&quot;giant-cap-color-circle\&quot;">&lt;\/span&gt; &lt;\/p&gt;\r\n </span></p>
<p class="\&quot;info-value\&quot;">28.25%&lt;\/p&gt;\r\n &lt;\/div&gt;</p>
<div class="\&quot;info\&quot;">
\r\n
<p class="\&quot;info-title\&quot;">Indian Promoter<span class="\&quot;giant-cap-color-circle\&quot;">&lt;\/span&gt; &lt;\/p&gt;\r\n </span></p>
<p class="\&quot;info-value\&quot;">25.59%&lt;\/p&gt;\r\n &lt;\/div&gt;","holding_graph_details":[{"name":"Others","data":[13.92],"sort_order":5},{"name":"FIIs","data":[32.24],"sort_order":4},{"name":"DIIs","data":[28.25],"sort_order":3},{"name":"Indian Promoter","data":[25.59],"sort_order":1}],"financial_revenue_profit":"</p>
<div class="\&quot;content\&quot;">
\r\n
<h2>Revenue<span class="\&quot;purple-circle\&quot;">&lt;\/span&gt;&lt;\/h2&gt;\r\n <h3 class="grey">--&lt;\/h3&gt;\r\n</h3><h6 class="">YoY: --&lt;\/h6&gt;\r\n &lt;\/div&gt;\r\n
<div class="\&quot;content\&quot;">
\r\n
<h2>Net Profit\/Loss<span class="\&quot;blue-circle\&quot;">&lt;\/span&gt;&lt;\/h2&gt;\r\n <h3 class="grey">\u20b946,149 Cr&lt;\/h3&gt;\r\n</h3><h6 class="green">YoY: 20.96%&lt;\/h6&gt;\r\n &lt;\/div&gt;","financial_revenue_category":["Mar-23","Mar-22","Mar-21","Mar-20","Mar-19","Mar-18","Mar-17"],"financial_revenue_series":[null,null,null,null,null,null,null],"financial_net_series":[46148.7,38150.9,31856.77,27296.2653,22445.6129,18560.841,15287.4022],"financial_net_worth":"
<div class="\&quot;content\&quot;">
\r\n
<h2>Net Worth<span class="\&quot;purple-circle\&quot;">&lt;\/span&gt;&lt;\/h2&gt;\r\n <h3>\u20b92,89,438 Cr&lt;\/h3&gt;\r\n</h3><h6 class="\&quot;green\&quot;">YoY: 17.03%&lt;\/h6&gt;\r\n &lt;\/div&gt;\r\n
<div class="\&quot;content\&quot;">
\r\n
<h2>Debt<span class="\&quot;blue-circle\&quot;">&lt;\/span&gt;&lt;\/h2&gt;\r\n <h3>--&lt;\/h3&gt;\r\n</h3><h6 class="\&quot;\&quot;">YoY: --&lt;\/h6&gt;\r\n &lt;\/div&gt;","financial_net_worth_category":["Mar-23","Mar-22","Mar-21","Mar-20","Mar-19","Mar-18","Mar-17"],"financial_net_worth_series":[289437.52,247326.17,209810.18,176358.7052,153672.6595,109599.1243,91793.9488],"financial_debt_series":[null,null,null,null,null,null,null],"financial_net_cash_flow":"
<div class="\&quot;content\&quot;">
\r\n
<h2>Free Cash Flow<span class="\&quot;purple-circle\&quot;">&lt;\/span&gt;&lt;\/h2&gt;\r\n <h3>\u20b9-14,196 Cr&lt;\/h3&gt;\r\n</h3><h6 class="red">YoY: -134.81%&lt;\/h6&gt;\r\n &lt;\/div&gt;\r\n
<div class="\&quot;content\&quot;">
\r\n
<h2>CFO<span class="\&quot;blue-circle\&quot;">&lt;\/span&gt;&lt;\/h2&gt;\r\n <h3>\u20b9-11,960 Cr&lt;\/h3&gt;\r\n</h3><h6 class="red">YoY: -128.16%&lt;\/h6&gt;\r\n &lt;\/div&gt;","financial_cash_flow_category":["Mar-22","Mar-21","Mar-20","Mar-19","Mar-18","Mar-17","Mar-16"],"financial_cash_flow_series":[-14195.82,40780.3,-18504.9626,-64492.1571,16366.6018,16123.8361,-35312.5298],"financial_cfo_series":[-11959.58,42476.45,-16869.092,-62871.5447,17214.3764,17281.5931,-34435.3663],"financial_data_as_on":"","valuation_overview_table_data":[{"id":1,"name":"P\/E","thisFund":20.69,"peerAvg":14.16,"tooltip_val":"<b>Current&lt;\/b&gt;: Current share price divided by earning per share in the last trailing twelve months<br \><b>Min&lt;\/b&gt;: Minimum price to earnings ratio in the given period<br \><b>Median&lt;\/b&gt;: Median price to earnings ratio in the given period<br \><b>Max&lt;\/b&gt;: Maximum price to earnings ratio in the given period<br \>
","color_class":"red"},{"id":2,"name":"P\/B","thisFund":3.29,"peerAvg":0.97,"tooltip_val":"<b>Current&lt;\/b&gt;: Current share price divided by book value per share in the latest financial year<br \><b>Min&lt;\/b&gt;: Minimum price to book ratio in the given period<br \><b>Median&lt;\/b&gt;: Median price to book ratio in the given period<br \><b>Max&lt;\/b&gt;: Maximum price to book ratio in the given period<br \>
","color_class":"red"},{"id":3,"name":"Earnings Yield (%)","thisFund":7.35,"peerAvg":"--","tooltip_val":"Earnings before interest and taxes divided by enterprise value","color_class":"grey"},{"id":4,"name":"Dividend Yield (%)","thisFund":1.13,"peerAvg":0.57,"tooltip_val":"Dividend per share in the past twelve months divided by current share price","color_class":"green"},{"id":5,"name":"PEG","thisFund":1.22,"peerAvg":"--","tooltip_val":"PEG (based on 5Y earnings growth)","color_class":"grey"}],"growth_overview_table_data":[{"id":1,"name":"TTM EBIT Growth (%)","thisFund":32.77,"peerAvg":8.36,"tooltip_val":"Operating profit (EBIT) \/ Net Sales * 100"},{"id":2,"name":"TTM EPS YoY change (%)","thisFund":20.17,"peerAvg":43.64,"tooltip_val":"Current price to earnings \/ earnings per share growth for the selected period"},{"id":3,"name":"Returns on Equity (%)","thisFund":16.73,"peerAvg":9.22,"tooltip_val":"Profit after tax \/ Average Net worth * 100"},{"id":4,"name":"Return on Capital","thisFund":0,"peerAvg":0,"tooltip_val":"Earning before interest and taxes \/ (Average net worth + Average total Debt) * 100"},{"id":5,"name":"Piotroski F-Score","thisFund":"NA","fscore_per":null,"peerAvg":"--","tooltip_val":"How well has this company done in the past one year?"}]}</b></b></b></b></b></b></b></b></h6></span></h2>
</div></h6></span></h2>
</div></h6></span></h2>
</div></h6></span></h2>
</div></h6></span></h2>
</div></h6></span></h2>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div></h4>
</div>
</div>
</div>
</div>
</div>
</div>
</div></h4>
</div>
</div>
</div>
</div>
</div>
</div>
</div></h4>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment