Month: August 2018

python Webscraping

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 […]

Python, Diacritics and translate function

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 […]

Scroll to top