Although there are plenty of other tools for extracting data from a website (take a look at Beautiful Soup), VBA is somehow good, because … well, because it is somehow challenging to do it every time. Yesterday, I answered a …

VBA – Extracting financial data from a website in table format Read more »

Some 4 years ago I wrote an article for calculating magic square with python. What the article did was actually checking whether the square is magic, and not calculating a new one. This one is going to show how these …

Excel – How to build magic square with VBA, following Python Mod Mathematics Read more »

Working with Pandas is like working with Excel on steroids – it can really do a lot of things fast, but somehow doing the easy things get complicated. In this video and article tutorial I am presenting loading data to …

Python – Plotting DataFrame and Working with Pandas – Video Read more »

Codeforces has introduced a third division in their competitions. Initially I though this is the place to go for “easy” stuff, as far as some of the 2nd division problems require some advanced algorithms, like combinations of graphs and months …

Python – Binary String Minimizing Problem – CodeForces Read more »

So, my idea was to obtain all the elements, tagged with “li” from here – vitoshacademy.com/all, using BeautifulSoup4 and Python. Initially, I thought about running a simple soup.findAll(“li”) , but it also added the text from the menus, which were …

Find all list (li) elements in a special position of a web site Read more »

Dropdown lists in Excel usually are built from a range or from a variable list. Dropdown list from Excel Range Thus, building a dynamic dropdown list may include building a dynamic range, with undeclared end. Thus, let’s imagine that the …

Dynamic dropdown list in Excel VBA with variables Read more »

About 4 years ago, I wrote an article about prime numbers in Excel and their visualisation with VBA – vba-function-in-excel-to-check-prime-numbers. Pretty much, it displays the prime numbers in a 10 x N matrix, starting from 1 and finishing at N: …

Prime numbers matrix and coloring with Python and xlsxwriter Read more »

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 »

Exactly 1 month and 5 days after the first video tutorial for the ASP.NET MVC with EF Core series, the last 10th video tutorial, following the Microsoft ones, is published. It is about advanced scenarios, and I have mentioned the …

C# – Learn about advanced scenarios – ASP.NET MVC with EF Core Read more »

Slowly, after handling concurrency in the ASP.NET MVC application, we are approaching the end of the video tutorial series. Implementing inheritance is the prelast one and it is actually pretty an important one as well. In the video, the following …

C# – Implementing Inheritance – ASP.NET MVC with EF Core Read more »