findall (), as the name indicates, returns a Python list, not a string / buffer.
You cannot write a list to a file descriptor - how should this work?
What do you expect?
file.write(str(tickers))
for a string representation of a list?
Or
file.write(', '.join(tickers))
for comma separated concatenation of list items?
In any case ... write (..) requires a string or buffer.
Also: do not name your file with the file descriptor.
file () is a built-in method.
source share