emacs/var/elfeed/db/data/10/1071f8f37ff38c2f08000d26c1beba533bf4b599
2022-01-03 12:49:32 -06:00

38 lines
3.5 KiB
Plaintext

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<meta name="author" content="By André A. Gomes" />
<title>Superuser batch downloading</title>
<style type="text/css">
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
</style>
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
<![endif]-->
</head>
<body>
<header>
<h1 class="title">Superuser batch downloading</h1>
<p class="author">By André A. Gomes</p>
</header>
<p>Ever felt frustrated when repeatedly clicking on individual download links from web interfaces? Galleries of pictures from cloud storage services might come to mind. Today we'll be walking you through an illustrative scenario of batch downloading, where Nyxt proves to scale to your needs!</p>
<p>Say you invite a friend to your place and you want to share some books. More generally, think about exchanging data among machines in the same network.</p>
<p>This is easily achieved by starting an HTTP server. Please keep in mind that this protocol has no security layer, so don't use it to share any private information. Simply populate a folder with the desired contents and issue <code>python -m http.server</code> from there.</p>
<p>Those contents are now available to you, from a web browser, at <a href="http://localhost:8000/" class="uri">http://localhost:8000/</a>.</p>
<p>Your friend can access it too at <a href="http://YOUR-IP:8000/" class="uri">http://YOUR-IP:8000/</a>, so they will be asking for your IP. You can find it with <code>ifconfig</code>.</p>
<p><img src="../static/image/article/sharing-http.png" /></p>
<p>If this can be achieved with any browser, why are we telling you about it? Nyxt shines in the way you can easily select all of the files you wish to download. In most browsers you'd have to move your mouse around and issue the download one by one. By the time your friend did this, say 10 times (if they <em>really</em> like you), they had already lost interest in the things you wanted to share.</p>
<p>But not when you have Nyxt's prompt buffer at your disposal, which allows you to fuzzy filter, narrow or select multiple items interactively. Your friend may say you have really bad taste, and be very picky about what they're going to download!</p>
<p>The command that does the magic is <code>download-hint-url</code>. Notice that the functionality depicted below is as general as you can imagine. Indeed, it can be used in the aforementioned cloud service example, or any other use case requiring batch downloading links.</p>
<p><img src="../static/image/article/sharing-download.png" /></p>
<p>We have to be honest and say that Nyxt's download manager still needs some fine-tuning. It might happen that it will try to download those hundreds of files at the same time and fail, since you're requesting it all from the server at once! Nyxt should handle a download queue for queries than come from the same domain. Perhaps you could give us a hand with that, <a href="https://nyxt.atlas.engineer/article/the-thin-line-between-users-and-collaborators.org">if it starts to itch you</a>.</p>
<p>We hope you'll keep sharing interesting things with your friends, and hopefully taking advantage of this feature from Nyxt.</p>
</body>
</html>