# wget

Published articles for wget.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Automating Image Downloads from a GitHub Repository with Ruby and Rails

DevFeed: [Automating Image Downloads from a GitHub Repository with Ruby and Rails](<https://devfeed.tech/articles/programming-rule-number-0-never-ever-work-too-hard-28314.md>)

Original publisher: [Read original article](<http://fuzzyblog.io/blog/ruby/2020/06/08/programming-rule-number-0-never-ever-work-too-hard.html>)

Author: Fuzzygroup

Published: 2020-06-08T00:00:00Z

Content type: tutorial

Language: en

Sources: [Scott Johnson](<https://devfeed.tech/sources/scott-johnson.md>)

Topics: [Programming](<https://devfeed.tech/topics/programming.md>), [Code](<https://devfeed.tech/topics/code.md>), [Rails](<https://devfeed.tech/topics/rails.md>), [GitHub](<https://devfeed.tech/topics/github.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [coding](<https://devfeed.tech/tags/coding.md>), [github](<https://devfeed.tech/tags/github.md>), [programming](<https://devfeed.tech/tags/programming.md>), [rails](<https://devfeed.tech/tags/rails.md>), [ruby](<https://devfeed.tech/tags/ruby.md>), [wget](<https://devfeed.tech/tags/wget.md>)

### AI overview

The article explains how to automate downloading a set of images from a GitHub repository using Ruby code, a list of filenames, wget, and the Rails console. It argues that automating repetitive manual work can save time.

### Source excerpt

One of the better lessons that you learn as a programmer is that you never want to work too large, in short, that laziness can be a virtue. I'm speaking, of course, of doing things manually that you can automate. I recently wanted to download a set of images from github that represented anonymous animals. Here's the repo: [https://github.com/wayou/anonymous-animals/tree/master/icons](https://github.com/wayou/anonymous-animals/tree/master/icons) What I needed to automate downloading these was two things: A set of filenames A means to iterate them and fetch the data The set of filenames I got just by copying text from the github page and using a text editor macro to reduce it to a set of filenames that %w could easily make into an array. Here's the code for that: def self.animals anims = %w( Alligator.png Anteater.png Armadillo.png Auroch.png Axolotl.png Badger.png) end My routine to download these looks like this: def self.wgets AnonAnimalCommon.animals.each do |animal| `cd /Users/sjohnson/Sync/coding/rails/wipmarks/app/assets/images && wget wget https://raw.githubusercontent.com/wayou/anonymous-animals/master/icons/#{animal}` end end My final step was to call this routine from the Rails console (the entire class is called AnonAnimal): AnonAnimal.wgets Downloading all of these manually would have been likely about a half hour. Writing this code took maybe 10 minutes. Laziness for the win!

## Checking for broken links on Your Website

DevFeed: [Checking for broken links on Your Website](<https://devfeed.tech/articles/checking-for-broken-links-on-your-website-27536.md>)

Original publisher: [Read original article](<https://gagor.pro/2012/09/checking-for-broken-links-on-your-website/>)

Author: Tom

Published: 2012-09-18T00:00:00Z

Content type: tutorial

Language: en

Sources: [Tomasz Gągor](<https://devfeed.tech/sources/tomasz-gagor.md>)

Topics: [Website](<https://devfeed.tech/topics/website.md>), [Tool](<https://devfeed.tech/topics/tool.md>), [legacy](<https://devfeed.tech/topics/legacy.md>)

Tags: [bash](<https://devfeed.tech/tags/bash.md>), [broken-links](<https://devfeed.tech/tags/broken-links.md>), [hugo](<https://devfeed.tech/tags/hugo.md>), [linkchecker](<https://devfeed.tech/tags/linkchecker.md>), [linklint](<https://devfeed.tech/tags/linklint.md>), [linux](<https://devfeed.tech/tags/linux.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tools](<https://devfeed.tech/tags/tools.md>), [website](<https://devfeed.tech/tags/website.md>), [website-maintenance](<https://devfeed.tech/tags/website-maintenance.md>), [wget](<https://devfeed.tech/tags/wget.md>), [wordpress](<https://devfeed.tech/tags/wordpress.md>)

### AI overview

The article reviews wget, linkchecker, and linklint for checking broken links on websites. It compares their ease of use, speed, syntax, features, and reporting, noting that wget is readily available, linkchecker is slow, and linklint provides useful reports despite unusual syntax.

### Source excerpt

Explore tools like wget, linkchecker, and linklint to efficiently find and fix broken links on your website, from small personal pages to large legacy platforms.