Sto utilizzando il seguente endpoint per ottenere i dati dell’utente tramite nome utente tramite richieste Python.
https://{defaultHost}/u/{username}.json
Recentemente, ho scoperto che i dati restituiti tramite richieste Python sono diversi dall’inserimento dello stesso URL nel browser.
Ecco un esempio:
https://forum.leasehackr.com/u/jalopspecial.json
Tramite il browser, ottengo il set di dati completo dell’utente. Se richiedo i dati tramite richieste Python utilizzando lo stesso endpoint:
user_url = https://forum.leasehackr.com/u/jalopspecial.json
user_profile_request = requests.get(user_url)
user_profile = user_profile_request.json()
Ottengo solo:
{'user': {'avatar_template': '/user_avatar/forum.leasehackr.com/jalopspecial/{size}/92094_2.png',
'id': 11498,
'name': 'Whitt',
'primary_group_name': 'supporters',
'profile_hidden': True,
'title': 'Supporter',
'username': 'JalopSpecial'}}
Non è stato così in passato. È cambiato qualcosa? Apprezzo l’aiuto! ![]()