fetch_content

swpy.swds.request.fetch_content(url)

It fetches JSON data from the given URL. If an exception occurs during the request, it prints an error message and returns None.

Parameters

  • url (str) – URL containing the data to be fetched.
  • Returns

  • The result of the requests.json().