Open azizmuhammadfikhri123 opened 5 months ago
I am getting the same error
Traceback (most recent call last):
File "/Users/***/Downloads/nqntnqnqmb-master/nqntnqnqmb.py", line 67, in <module>
result= getProfileFromName(profile,config["JSESSIONID"],config["li_at"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/***/Downloads/nqntnqnqmb-master/nqntnqnqmb/core.py", line 60, in getProfileFromName
data_total = content['paging']['total']
~~~~~~~^^^^^^^^^^
KeyError: 'paging'
I don't think this library works after LinkedIn updated their CSS recently. Here was my approach: https://medium.com/@jackblair87/writing-a-live-follower-count-python-program-for-my-website-5e34631582d3
try: r = requests.get(url, cookies=cookies, headers=headers, timeout=60) except Exception: exit()
Traceback (most recent call last): File "/home/be-azizmuhammadf/Documents/E-bdesk/Project/2024/linkedin/main.py", line 129, in
main()
File "/home/be-azizmuhammadf/Documents/E-bdesk/Project/2024/linkedin/main.py", line 122, in main
results = getProfileFromName(search_string, config["JSESSIONID"],config["li_at"])
File "/home/be-azizmuhammadf/Documents/E-bdesk/Project/2024/linkedin/main.py", line 48, in getProfileFromName
data_total = content['paging']['total']
KeyError: 'paging'