Fundamental Investing Playlist: http://youtu.be/fBEMfugH3OA?list=PLQVvvaa0QuDejNczz7dbpyu3JnwUBvNch This is the eighth video in the series for using programming to aid fundamental investing analysis, showing you how to use programming to get all of the ticker symbols from the Russell 3000 into an array/list. The idea is to use programming to help you find possible and eligible companies for further consideration. This entire series focuses on using programming specifically for value investing, just as an example to use throughout the video. Sentdex.com Facebook.com/sentdex Twitter.com/sentdex
Visibility: 3407
Duration: 8m 49s
Rating: 18
I basically just save the PDF and then use the PyPDF2 library to do the heavy lifting for me:
```
import PyPDF2
import os
f = os.path.join('C:\\', 'path', 'to', 'file', 'ru3000_membershiplist_20160627.pdf')
pdf = PyPDF2.PdfFileReader(f)
constituents = dict()
for page_number in range(0, pdf.numPages-1):
page = pdf.getPage(page_number).extractText()
lines = page.split('\n')
for pgidx in range(0,len(lines)-6,2):
if lines[pgidx]=='Company':
continue
company = lines[pgidx].strip()
ticker = lines[pgidx+1].strip()
constituents[company] = ticker
```
Hope this helps, if someone still needs the constituent list.
Cheers,
Matt