Closed ccpandhare closed 2 years ago
Scrape cashflow table, balance sheet table too!
Also added another param "-p" or "--print-output" which prints scraped data as a table
ccpandhare@ccpandhare-mbp stock-analyser % ./cli -l 1 -p 1 *** Using LIMIT 1 *** Scraping RELIANCE *** *** P&L: *** 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 *** revenue 265050 357677 395957 433521 374372 272583 303954 390823 568337 596679 466307 699962 *** operating_profit 38623 33176 33155 34935 37449 41781 46307 64315 84250 89266 80790 110460 *** opm 15% 9% 8% 8% 10% 15% 15% 16% 15% 15% 17% 16% *** interest 2411 2893 3463 3836 3316 3691 3849 8052 16495 22027 21189 14584 *** depreciation 14121 12401 11232 11201 11547 11565 11646 16706 20934 22203 26572 29797 *** pbt 24055 25408 26217 28763 31114 38737 40034 49426 55227 53606 55461 84142 *** net_profit 19294 19724 20879 22493 23566 29745 29901 36075 39588 39354 49128 60705 *** eps 27.63 28.27 30.31 32.62 34.14 43.03 43.11 53.39 58.55 58.20 77.50 89.74 *** dpr 12% 13% 13% 12% 12% 10% 11% 10% 10% 10% 9% 9% *** *** Cashflow: *** 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 *** cfo_operating 33338 24483 36918 43261 34374 38134 49550 71459 42346 94877 26185 110654 *** cfo_investing -32040 -6301 -27601 -73070 -64706 -36186 -66201 -68192 -94507 -72497 -141610 -110103 *** cfo_financing 14950 -7590 408 13713 8444 -3210 8617 -2001 55906 -2541 101902 17289 *** cfo_net 16248 10592 9725 -16096 -21888 -1262 -8034 1266 3745 19839 -13523 17840 *** *** Balance Sheet: *** 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 *** equity 2981 2979 2936 2940 2943 2948 2959 5922 5926 6339 6445 6765 *** reserves 151112 166466 179094 195730 215539 228600 260746 287569 381184 442826 653884 772720 *** borrowings 84152 92447 107219 138761 168251 194714 217475 239843 307714 355133 270648 281974 *** total_liabilities 307519 327191 362357 428843 504486 598997 706802 811273 997630 1163015 1320065 1499665 *** fixed_assets 158100 138814 133487 141417 156458 184910 198526 403885 398374 532658 541258 732252 *** cwip 28174 25363 49952 91494 166462 228697 324837 187022 179463 109106 125953 68052 *** total_assets 307519 327191 362357 428843 504486 598997 706802 811273 997630 1163015 1320065 1499665
The code is clean and don't have any comments. Merged and closed
Scrape cashflow table, balance sheet table too!
Also added another param "-p" or "--print-output" which prints scraped data as a table