To extract the stocks list, open the above yahoo url (in Google Chrome), right click on top "Matching stocks" text and click on inspect. You should see div id="fin-scr-res-table". If you take your cursor over it, you would see that entire table is selected, we want to extract the contents from this div.
In the code below, We are collecting all the links and then for each link we are extracting the href text.