To get symbols:
I wrote this some time ago, but it worked at the time.
You might have to adjust a few things
but at the time, I believe it got all the symbols for NYSE, NASDAQ and AMEX
since AMEX is now NYSE American you will have to fix that
https://github.com/Larz60p/PySymbol
There was a script named TrySymbolFetch.py that would locate company by symbol name or symbol by company name included.
I wrote this some time ago, but it worked at the time.
You might have to adjust a few things
but at the time, I believe it got all the symbols for NYSE, NASDAQ and AMEX
since AMEX is now NYSE American you will have to fix that
https://github.com/Larz60p/PySymbol
There was a script named TrySymbolFetch.py that would locate company by symbol name or symbol by company name included.