How can I export data from a website and write the contents to a text file?

Random832 random832 at fastmail.com
Wed Nov 18 16:38:30 EST 2015


ryguy7272 <ryanshuell at gmail.com> writes:
> text_file = open("C:/Users/rshuell001/Desktop/excel/Text1.txt", "wb")

Remove the "b" from this line. This is causing it to omit the
platform-specific translation of "\n", which means some Windows
applications will not recognize the line endings.




More information about the Python-list mailing list