13 mar 2025
Dumping a Whole Webpage to Edit It
An easy way to extract and edit contents from a webpage
- Instead of copying and pasting portions of a webpage that interests you, through mouse selecting them, just use a simple command in Linux to dump a whole webpage into a file and use, say Emacs or (n)Vim, to edit the page and extract the information that you are after…
- For this, just install a cli-webbrowser (elinks and/or w3m) and issue a simple command to dump the website you want to get some information. Likoe so:
- sudo apt install w3m elinks vim neovim neovim-qt emacs
- Then, head to the webpage you want, copy its URL address and issue this command:
- elinks -dump $URL > $fileName
- Where $URL is the https address and $fileName is any name you can give to it
- Then, open the $fileName with Emacs or (n)Vim and edit it as you like
- It is that simple!