Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template function to fetch remote file #738

Open
timvisee opened this issue Jul 4, 2019 · 0 comments

Comments

@timvisee
Copy link

commented Jul 4, 2019

I'd like to see a function to use in templates which fetches a remote file.

In my case, I would like to fetch remote thumbnails for YouTube videos. But I can imagine that this is useful as well for other cases

Semantics

This function could look like this:

fetch_raw(url="...") -> Url
  • This is similar to load_data, in the sense that it fetches remote data
  • This is similar to resize_image, in the sense that the command returns an URL for the locally stored file (to static/processed_images) in this case.

Modifying the existing resize_image function to support a remote url would be an option for me as well.

What are the thoughts on this? Could this be implemented?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.