From web pages to generated text with Trafilatura and Markovify
A few commands to gather texts from a website with Trafilatura, count frequent word sequences and generate new sentences with a Markov chain.
more ...A few commands to gather texts from a website with Trafilatura, count frequent word sequences and generate new sentences with a Markov chain.
more ...Detect file encodings with file -i, parse the output with grep and convert every file in a directory to UTF-8 with iconv in a short shell script.
more ...Outline of the Microblog Explorer, which collects URLs from FriendFeed, identi.ca and Reddit to use as seeds for web crawling.
more ...A bash snippet with find that locates and deletes temporary pdflatex files such as aux, bbl, log and toc across directories.
more ...A bash pipe for the TreeTagger POS tagger that converts text to ISO-8859-1 with iconv and cleans it with sed to feed one word per line.
more ...