Member-only story

Web Scraping Stock Tickers Using Python

randerson112358
6 min readOct 26, 2020

--

Scrape the web using Python

As with most interesting projects, this one started with a simple question: where can I get all of the stock symbols and company names for my portfolio? Well, the obvious answer was to gather the data myself from the web !

This brings us to this article where I will show you how to gather stock symbols/tickers and their associated company names from the web.

Understanding The Thought Process Before Programming

First, I need to find a website that contains the data I want. A website that has some of the data I want to scrape is:(https://www.advfn.com/nyse/newyorkstockexchange.asp?companies=A)

This site seems like it would have a good amount of stock symbols/tickers and the associated company name. But looking at the website, I can see that it is missing some data from the New York Stock Exchange (NYSE), but that’s okay as this is just a small project and it doesn’t need to be perfect and contain every single stock from the stock exchange.

Also the page from the link (https://www.advfn.com/nyse/newyorkstockexchange.asp?companies=A) contains some of the company names and symbols for the New York Stock Exchange (NYSE) where the company names begin with the letter ‘A’. I want ALL of the…

--

--

Responses (2)