s="s2">&quot;aapl&quot;</span><span class="p">,</span> <span class="s2">&quot;0050.TW&quot;</span><span class="p">,</span> <span class="s2">&quot;MSFT&quot;</span><span class="p">]</span>
        <span class="n">pe</span> <span class="o">=</span> <span class="n">Portfolio_Extractor</span><span class="p">(</span><span class="n">stockList</span><span class="p">,</span><span class="s1">&#39;yahoo&#39;</span><span class="p">)</span><span class="o">.</span><span class="n">get_portfolio_period</span><span class="