Skip to content

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

Notifications You must be signed in to change notification settings

githubYiheng/ComfyUI_GetFileNameFromURL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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. image

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:

Output:

Dependencies

requests cgi

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages