get_resource Method

Fetches a resource.

Syntax

def get_resource(url: str) -> None: ...

Remarks

This method fetches the resource. If local_file is set, the document will be saved in the file specified. Otherwise, the document contents are delivered in the atom_data property, as well as through the on_transfer event, and the HTTP response headers through the on_header event.

Unlike the get_feed method, after retrieval, the class will not attempt to parse the data into the channel and entries properties.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 Python Edition - Version 20.0 [Build 8307]