From c1057a58adadb893500f2183caa90cf448fdfac0 Mon Sep 17 00:00:00 2001 From: yyhh91 Date: Fri, 4 Jun 2021 18:40:08 +0800 Subject: [PATCH] Fix Url encoding when there is emoji in linkedin profile link --- LinkedInt.cfg | 5 ++--- LinkedInt.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/LinkedInt.cfg b/LinkedInt.cfg index 28cdf94..755df71 100644 --- a/LinkedInt.cfg +++ b/LinkedInt.cfg @@ -1,7 +1,6 @@ [API_KEYS] -hunter = +hunter = "" [CREDS] linkedin_username = -linkedin_password = - +linkedin_password = \ No newline at end of file diff --git a/LinkedInt.py b/LinkedInt.py index da2adca..212fb75 100644 --- a/LinkedInt.py +++ b/LinkedInt.py @@ -332,7 +332,7 @@ def authenticate(): if __name__ == '__main__': print("") - a = open(baseDir + "banner.txt","r") + a = open(baseDir + "banner.txt","r", encoding="utf-8") print(a.read()) a.close() print("")