Finding all HTML tags from a web page and recording these to a dictionary is magically easy task with Python (if you compare it with #VBA), when Beautiful Soup 4 is used. soup.find_all(True) loops through the tags and a simple …

Find all HTML tags in a web page and print them from a sorted dictionary Read more »

Writing to a file in Python is usually a simple 2-liner, which is easy to be written: with io.open(“soup.txt”, “w”) as file:     file.write(soup_written) However, problems with the encoding may cause some research needed. Concerning the encoding this is …

Writing to a text file in Python from a variable, ignoring encoding problems Read more »

Showing all links from a website with Python and BeautifulSoup is actually 6 lines of code – 2 to define the used libraries and 4 to do the job: import urllib.request from bs4 import BeautifulSoup resp = urllib.request.urlopen(“https://www.vitoshacademy.com”) soup = …

Show all links from a website with Python and BeautifulSoup – Video Read more »

Writing code in the local language is actually taught by about 100% of the German VBA books, which I have read. Which is “kind of ok”, if the VBA code only works on German computers. However, if this is not …

VBA – How to avoid naming variables with non-latin alphabet characters (special letters) Read more »