ComfyUI_GetFileNameFromURL

ComfyUI_GetFileNameFromURL
★ 1

文件名提取URL解析重定向处理ComfyUI节点
ComfyUI_GetFileNameFromURL节点从给定URL提取文件名并返回原始URL,支持303等重定向,便于自动命名与批量下载。
💡 从URL自动获取文件名用于保存或批量处理。
🍴 2 Forks💻 Python🔄 2024-05-23
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/8b0992d318c3
📄 README

Introduction

GetFileNameFromURL is a ComfyUI custom node that extracts the filename from a URL. It can handle various URLs and is capable of handling redirects.

Features

Extracts filename from a URL

Handles 303 redirects

Usage

In your terminal, navigate to the custom_nodes directory of your ComfyUI installation.

Clone this repository using the git clone command:

git clone https://github.com/githubYiheng/ComfyUI_GetFileNameFromURL.git

Restart ComfyUI.

In ComfyUI, locate the “Get FileName From URL” node.

Input the desired URL into the node’s url field.

Run the node, and it will output both the extracted filename and the original URL.

Inputs

  • url (STRING): The URL from which to extract the filename.
  • Outputs

  • filename (STRING): The extracted filename.
  • url (STRING): The input URL.
  • Example

    Input:

  • https://example.com/path/to/file.jpg
  • Output:

  • filename: file.jpg
  • url: https://example.com/path/to/file.jpg
  • Dependencies

    requests

    cgi