Category Shell

Download all documents with a given extension in a web page using bash

Table of Contents 1. lynx 2. grep 3. wget I used to have a python script that scrapes a given web page and downloads all the files with a given extension from the page. Today, not being able to find my script anymore, I tried to do a similar thing using bash only and interestingly, I was able to do a similar thing using a one-liner. Here is how it works: 1 lynx Lynx is a hero of dumping web pages: lynx -dump https://hadi.timachi.com/ 2 grep We pipe...