pyLinkwarden package
Submodules
pyLinkwarden.api module
pyLinkwarden.content module
- class pyLinkwarden.content.Collections(client)[source]
Bases:
object- _get_raw()[source]
Returns entirety of collections endpoint response.
- Returns:
Requests library response object
- class pyLinkwarden.content.Links(client)[source]
Bases:
object- _get(link_id=None, specific_attribute=None)[source]
Returns JSON of links endpoint response. Returns all links if link_id is not specified. Otherwise, returns the specific link.
- Parameters:
link_id – Id of the link that you wish to view. Optional.
specific_attribute – Returns the value of this attribute. Optional.
- Returns:
JSON of link data or the specific attribute’s value.
- _get_raw(link_id=None)[source]
Returns entirety of links endpoint response. Returns all links if link_id not specified. Otherwise, returns specific link.
- Parameters:
link_id – Id of link that you wish to view. Optional.
- Returns:
Requests library response object
- check_if_url_exists(url)[source]
Checks to see if the provided URL already exists.
- Parameters:
url – URL of page
- Returns:
True if page exists, False if page does not exist.