bolha.us is one of the many independent Mastodon servers you can use to participate in the fediverse.
We're a Brazilian IT Community. We love IT/DevOps/Cloud, but we also love to talk about life, the universe, and more. | Nós somos uma comunidade de TI Brasileira, gostamos de Dev/DevOps/Cloud e mais!

Server stats:

255
active users

#wget

3 posts3 participants0 posts today
Free Software Foundation<p>Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Rongzhao Yan, Paolo De Santis, and Maximilian Küffner for assigning their copyright to the FSF! More at: <a href="https://u.fsf.org/463" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">u.fsf.org/463</span><span class="invisible"></span></a> <a href="https://hostux.social/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a> \<a href="https://hostux.social/tags/Wget" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Wget</span></a> <a href="https://hostux.social/tags/CopyrightAssignments" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CopyrightAssignments</span></a></p>
Free Software Foundation<p>Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Rongzhao Yan, Paolo De Santis, and Maximilian Küffner for assigning their copyright to the FSF! More at: <a href="https://u.fsf.org/463" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">u.fsf.org/463</span><span class="invisible"></span></a> <a href="https://hostux.social/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a> \<a href="https://hostux.social/tags/Wget" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Wget</span></a> <a href="https://hostux.social/tags/CopyrightAssignments" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CopyrightAssignments</span></a></p>
Free Software Foundation<p>Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Rongzhao Yan, Paolo De Santis, and Maximilian Küffner for assigning their copyright to the FSF! More at: <a href="https://u.fsf.org/463" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">u.fsf.org/463</span><span class="invisible"></span></a> <a href="https://hostux.social/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a> \<a href="https://hostux.social/tags/Wget" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Wget</span></a> <a href="https://hostux.social/tags/CopyrightAssignments" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CopyrightAssignments</span></a></p>
Free Software Foundation<p>Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Rongzhao Yan, Paolo De Santis, and Maximilian Küffner for assigning their copyright to the FSF! More at: <a href="https://u.fsf.org/463" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">u.fsf.org/463</span><span class="invisible"></span></a> <a href="https://hostux.social/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a> \<a href="https://hostux.social/tags/Wget" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Wget</span></a> <a href="https://hostux.social/tags/CopyrightAssignments" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CopyrightAssignments</span></a></p>
Free Software Foundation<p>Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Rongzhao Yan, Paolo De Santis, and Maximilian Küffner for assigning their copyright to the FSF! More at: <a href="https://u.fsf.org/463" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">u.fsf.org/463</span><span class="invisible"></span></a> <a href="https://hostux.social/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a> \<a href="https://hostux.social/tags/Wget" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Wget</span></a> <a href="https://hostux.social/tags/CopyrightAssignments" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CopyrightAssignments</span></a></p>
ajaxStardust<p>New and Improved! <br>Choose your flavour, cURL or wget!</p><p><a href="https://social.vivaldi.net/tags/curl" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>curl</span></a><br>```<br>curl -o- <a href="https://social.vivaldi.net/tags/https" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>https</span></a>://gist.githubusercontent.com/ajaxStardust/674b5d86f1f4386e72937a607e263608/raw/install.sh | bash<br>```<br>(Octothorpe placed, in hopes that st nick soon would eliminate any unwanted html anchors as hyperlink. i.e. remove it) <br>**Note:** it will place the app in your file system, at the location (if able without sudo):<br>/var/www/html/mydocs/11011101/</p><p><a href="https://social.vivaldi.net/tags/wget" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>wget</span></a> <br>```<br>wget -qO- <a href="https://social.vivaldi.net/tags/https" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>https</span></a>://gist.githubusercontent.com/ajaxStardust/674b5d86f1f4386e72937a607e263608/raw/install.sh | bash<br>```<br>Seriously. Anyone. please do check it out. I'm curious if it's working on anyone's system other than mine. It's as easy as running that curl command, just like you were installing <a href="https://social.vivaldi.net/tags/nvm" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>nvm</span></a> for example. Nothing is easier than that. Except getting pregnant.</p><p><a href="https://github.com/ajaxStardust/AnnieDeBrowsa#description" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/ajaxStardust/AnnieD</span><span class="invisible">eBrowsa#description</span></a></p>
Free Software Foundation<p>Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Rongzhao Yan, Paolo De Santis, and Maximilian Küffner for assigning their copyright to the FSF! More at: <a href="https://u.fsf.org/463" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">u.fsf.org/463</span><span class="invisible"></span></a> <a href="https://hostux.social/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a> \<a href="https://hostux.social/tags/Wget" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Wget</span></a> <a href="https://hostux.social/tags/CopyrightAssignments" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CopyrightAssignments</span></a></p>
Alex<p>How weird, <a href="https://mastodon.org.uk/tags/wget" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>wget</span></a> is failing to fetch files on my <a href="https://mastodon.org.uk/tags/gentoo" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>gentoo</span></a> system due to <a href="https://mastodon.org.uk/tags/DNS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DNS</span></a> (why is it always DNS). <a href="https://mastodon.org.uk/tags/dig" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>dig</span></a> resolves everything fine. Oh well I guess I can switch to <a href="https://mastodon.org.uk/tags/curl" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>curl</span></a></p>
GNU/Linux.ch<p>HTTrack - Der Website Downloader</p><p>In diesem Tutorial zeige ich dir, wie du ganze Websites mit HTTrack für den Offline-Zugriff speichern kannst. Egal, ob für die eigene Sicherung oder einfach zum Stöbern ohne Internet – ich zeige dir Schritt für Schritt, wie es funktioniert. </p><p><a href="https://social.anoxinon.de/tags/httrack" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>httrack</span></a> <a href="https://social.anoxinon.de/tags/Curl" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Curl</span></a> <a href="https://social.anoxinon.de/tags/wget" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>wget</span></a> <a href="https://social.anoxinon.de/tags/Website" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Website</span></a> <a href="https://social.anoxinon.de/tags/Linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Linux</span></a></p><p><a href="https://gnulinux.ch/httrack-der-website-downloader" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">gnulinux.ch/httrack-der-websit</span><span class="invisible">e-downloader</span></a></p>

@bagder Problem with that is (besides occasional bugfixes), most people including myself would see #curl to be functionally complete and anything "nice to have" would be considered not worth the balooning in #complexity and #size.

  • I mean, does curl need to be able to do #BitTorrent (magnet:), #IPFS (ipfs://) or god forbid #blockchain (i.e. #EVM) support?

  • Do you really want to integrate @torproject / #Tor support natively into curl when using #HTTP (localhost:8118) and #SOCKS5 (localhost:9050) #proxy allows for the same and doesn't necessitate having to handle and ingest Tor arguments as well??

In fact if #toybox didn't have a #wget implementation that I could use for OS/1337 I would've merely chosen tiny-curl -o as a global alias or if #tinycurl wasn't an option, curl -o instead.

  • Maybe someone who wants to have said functionality like tor support built-in will go and IDK make i.e. #neocurl or sth. along those lines or build something like #ethcurl or #torcurlor #ipfscurl or whatever...

That being said I am glad curl isn't solely maintained by you but has other contributors (give them a shoutout!) but I also am glad you maintain that vital software that most "#TechIlliterate #Normies" most likely never heard of but propably use on a daily basis as part of all the #tech they use to #consume media with...

  • I consider curl to be "the #vim of downloaders" (tho that's kinda insulting and limiting since curl is more than just a downloader and more intuitive than vim) with wget being "the #vi of downloaders" (tho wget is even simpler to use than vi)...

Either way, curl is awesome...

curl.securl

Hacer una copia o espejo de un sitio usando wget

A veces uno necesita hacer una copia completa de un sitio web para acceso fuera de línea, o también para convertir un sitio dinámico a estático, especialmente cuando un cliente tiene un sitio web en una versión obsoleta de un manejador de contenido como WordPress o Joomla en una versión muy vieja y corriendo una versión de PHP vulnerable. Esto es especialmente útil cuando el sitio web no requiere ser modificado. Esto trae como beneficio un sitio más veloz y más seguro, ya que un sitio estático HTML se envía tal cual al navegador de las personas usuarias, sin tener que ejecutar código PHP potencialmente vulnerable.

Con la herramienta de línea de comandos wget es posible de forma muy sencilla descargar un sitio web entero:

wget --mirror --convert-links --adjust-extension --page-requisites --no-parent http://example.org

Explicación de algunos de los argumentos:

  • --mirror – Descarga recursivamente y hace otros ajustes relacionados, implica: -r -N -l inf --no-remove-listing.
  • --convert-links – convierte enlaces y referencias en HTML como CSS, para poder ser vistas fuera de línea.
  • --adjust-extension – Ajusta la extensión de los objetos html o css según el tipo de datos
  • --page-requisites – Descarga objetos enlazados como hojas de estilo CSS e imágenes requeridos para ver el sitio fuera de línea.
  • --no-parent – No subir a directorios superiores en el URL, útil cuando se está haciendo espejo de un URL específico como example.org/sub-directorio/

Ejemplo de conversión de sitio WordPress en un sistema cPanel:

# Entrar como usuario a shell, para no ejecutar comandos como rootsu - user -s /bin/bash# Crear directorio de descargasmkdir download && cd downloadwget --mirror --convert-links --adjust-extension --page-requisites --no-parent http://example.org# Hacer un respaldo del directorio raíz del sitio webcd ..mv public_html public_html~# Colocar la copia descargada en líneamv download/example.org public_html# Probar sitio, ajustar detalles y opcionalmente borrar base de datos luego de hacer respaldo# Con esto el sitio dinámico ha sido convertido a estático.

Referencias: