Updated linkedin profile link not displayed correctly if there is emoji in the URL

This commit is contained in:
yyhh91 2021-06-04 18:34:00 +08:00
parent 517871b4e9
commit d67727efcf
2 changed files with 4 additions and 2 deletions

2
.gitignore vendored
View file

@ -1 +1,3 @@
LinkedInt.cfg
*.html
*.csv

View file

@ -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()