If I parse directly from a url, it works fine. But if it saves the data to a text file then the parsing fails