0

I have an GET api that returns

file_url

and several other variables. I want to only export

file_url

and just dump other variables.

import requests
response = requests.get("foo.xyz/index.php?example=example")
print(response.content)

but i only get an output of "illegible" full response.

b'<?xml version="1.0" encoding="UTF-8"?><posts  count="3893" offset="0"><post height="4089" core="0"file_url="https://foo.xyz/example.jpg"

[Program finished]

ChrisGPT was on strike
  • 127,765
  • 105
  • 273
  • 257

0 Answers0