1 2 3 4 5 6 7
@task() def startcraw(base,url,emails): with open('myfile', 'w') as f: f.write('hi there\n') # python will convert \n to os.linesep f.close() list= crawler(base,url,emails) list.save()