6ebe3d62062caae0cb689da2ac2ad9b80287709a
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/your-username/your-repository.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:
- filename: file.jpg
- url: https://example.com/path/to/file.jpg
Dependencies
requests cgi
Languages
Python
100%