stencila / hub

☸️ Hub for executable documents
https://hub.stenci.la
Apache License 2.0
31 stars 4 forks source link

Fetch http://... addresses #225

Open nokome opened 7 years ago

nokome commented 7 years ago

Fetch a document bundle from a HTTP URL. e.g.

sibyl launch http://publisher.com/some/article.html

This would use wget --recursive --no-parent ... , or similar, to get the contents of a web directory. It would rely on the page at the URL having links to files in that directory e.g. <link rel="requires" href="requirements.txt"> <link rel="data" href="data.csv">

Noting that the Alpine Linux version of wget does not support those options. Different base image for stencila/sibyl-server? Different version of wget?

nokome commented 7 years ago

As a user I would like to be able to past a URL from my browser's address bar, Dropbox shared folder link etc and the correct protocol be used.

HTTP addresses should get parsed and delegated to other protocols if necessary e.g.

https://github.com/stencila/examples -> github://stencila/examples

https://www.dropbox.com/sh/el77xzcpr9uqxb1/AABJIkDNXo_-sKnrUtQvCxC4a?dl=0 -> dropbox.com://el77xzcpr9uqxb1/AABJIkDNXo_-sKnrUtQvCxC4a

nokome commented 5 years ago

Moving from https://github.com/stencila/cli to https://github.com/stencila/hub. Please triage there as necessary.