List Directories Only
If you ever need to list only directories that are within a directory, you can use ls -d */ – very simple and very efficient… just like we like it 😉
If you ever need to list only directories that are within a directory, you can use ls -d */ – very simple and very efficient… just like we like it 😉
Writing a web scraper with python is easy, if you allow yourself a little help by two beautiful libraries BeautifulSoup Requests import sys, requests from BeautifulSoup import BeautifulSoup # we want UTF8 reload(sys) sys.setdefaultencoding(‘utf8’) #lets define the URLs we will use to scrape url = ‘https://www.somepageortheother.nl/bladeren’ # let’s scrape the first URL and get all […]
Do you need to install pip on macOS? Easy, simply do the following sudo easy_install pip
Did you know that Dutch uses the following list of special (diacritic) characters? áéíóúàèëïöüÁÉÍÓÚÀÈËÏÖÜ While I was working on a python script, I figured I could simply use python’s translate function to “translate” them to their base character. It probably is the worst idea ever, but hey, it is what it is. According to tutorialspoint.com you […]