79671214

Date: 2025-06-18 19:36:06
Score: 0.5
Natty:
Report link

I ended up using BeautifulSoup instead

    get_partyid = requests.post('%s' % nwsap_host, data=get_partyid)
    gpid = BeautifulSoup(get_partyid.content, 'xml')
    gpstatus = gpid.find('api:PlexViewResponse')
    print("Status:", gpstatus.attrs['Status'])
    PartyID = gpid.find('PartyId').get_text()
    print("PartyID:", PartyID)

Much easier to digest for me as a newbie.
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Kelso