Skip to content

Instantly share code, notes, and snippets.

@umutbasal
umutbasal / article-saver.sh
Created September 12, 2021 13:22
Download links as readable texts
files=$(ls | grep "txt")
for file in $files;
do
links=$(cat ${file})
for link in $links;
do
folder=${file//\.txt/}
saveName=$(echo $link | sed -e 's/http.*\///g')
readable $link | w3m -T text/html -dump > "$folder/$saveName.txt"
echo "$folder/$saveName"
const http = require('http')
const port = 80
const fs = require('fs')
const requests = {data:[]};
const requestHandler = (request, response) => {
let data = []
request.on('data', chunk => {
data.push(chunk)
onabort
onafterprint
onbeforeprint
onbeforeunload
onblur
onchange
onclick
ondblclick
onclose
oncontextmenu

Keybase proof

I hereby claim:

  • I am umutbasal on github.
  • I am umutbasal (https://keybase.io/umutbasal) on keybase.
  • I have a public key whose fingerprint is 4276 22EE 3828 33D9 3BD7 A632 8C5B A3BB C7B6 E0ED

To claim this, I am signing this object: