mikhailklassen / Mining-the-Social-Web-3rd-Edition

The official online compendium for Mining the Social Web, 3rd Edition (O'Reilly, 2018)
Other
929 stars 486 forks source link

python-linkedin is deprecated and should use python-linkedin-v2 #59

Open cmosguy opened 3 years ago

cmosguy commented 3 years ago

Hi all,

If you see an error like:

requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://api.linkedin.com/v1/people/~?format=json&oauth2_access_token=AQXqVw1bCm7yl11gxVi46pvvznAh4ZsN_i7I1O1VxPdoY75nIilzZ5h9nqsClHHXRckR-NLrn3ALOHQltR4rSncuBvqsj4tPiJ6yoTp4urG4Bxgi0_bS0nlOAR97r1SkYkqhDLi_U7zYtudQwjdfff12d4yqXdUa-R0Ew6eDrukzvFli3EX_axrEao9L6MudMSAndkPncoLncgmTBVhfIMwoy0FVvUaqliX82K3ySkfhfJIjktiHNhB1JF17ceVsBVK1H5ShmoJkh__lFe-PVeSV41YP2yhAIewKZUEKpDVXxmZTELJXVVbtOovMVRcMjz6npXgpvmZNYOvPO6eJNvsleXr5zw

You are using the v1 api, the author should just update the example oauth code base for the flask example to use the: https://pypi.org/project/python-linkedin-v2/