diff --git a/.gitignore b/.gitignore index 3eb91bd..9d69f09 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ LinkedInt.cfg +*.html +*.csv \ No newline at end of file diff --git a/LinkedInt.py b/LinkedInt.py index e841e33..da2adca 100644 --- a/LinkedInt.py +++ b/LinkedInt.py @@ -223,7 +223,7 @@ def get_search(): data_picture = "" - + data_slug = repr(data_slug.encode("utf-8")).replace("\\x","%").replace("b","",1).replace("'","") parts = data_lastname.split() name = data_firstname + " " + data_lastname @@ -311,7 +311,7 @@ def get_search(): f.close() f = open(baseDir + '{}.csv'.format(outfile), 'wb') newcsv='\n'.join(csv) - f.writelines(newcsv.encode()) + f.write(newcsv.encode()) for x in csv: f.write(x.join('\n').encode()) f.close()