Skip to content

civitai recording XML issue #4

@draeician

Description

@draeician

@codex I'm seeing this error when trying to record a url to civitai.

Enter a URL or YouTube video ID to record (or press Ctrl+C to quit):
https://civitai.com/api/download/models/2264444?type=Model&format=SafeTensor

/home/draeician/.local/share/pipx/venvs/ref-cli/lib/python3.12/site-packages/ref_cli/cli.py:379: XMLParsedAsHTMLWarning: It looks like you're using an HTML parser to parse an XML document.

Assuming this really is an XML document, what you're doing might work, but you should know that using an XML parser will be more reliable. To parse this document as XML, make sure you have the Python package 'lxml' installed, and pass the keyword argument features="xml" into the BeautifulSoup constructor.

If you want or need to use an HTML parser on this document, you can make this warning go away by filtering it. To do that, run this code before calling the BeautifulSoup constructor:

from bs4 import XMLParsedAsHTMLWarning
import warnings

warnings.filterwarnings("ignore", category=XMLParsedAsHTMLWarning)

soup = BeautifulSoup(result.stdout, 'html.parser')
2025-10-01T16:20:55|[https://civitai-delivery-worker-prod.5ac0637cfd0766c97916cefa3764fbdf.r2.cloudflarestorage.com/modelVersion/2264444/Sketch_style.safetensors?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=e01358d793ad6966166af8b3064953ad/20251001/us-east-1/s3/aws4_request&X-Amz-Date=20251001T162045Z&X-Amz-Expires=86400&X-Amz-Signature=d2f273bcbbc26f5dc60e83f4b83246f55ca9308f6e44547cd9d10440bb6c458a&X-Amz-SignedHeaders=host&response-content-disposition=attachment; filename="Sketch_style.safetensors"]|(No title found)|General|General

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions