Python | BeautifulSoup(Bs4) | Pickle your soup

Опубликовано: 24 Май 2026
на канале: Marvel202
106
0

#廣東話 CIA's World Factbook and WikiTables are easy to use and handy resources to make some macro based analysis. One needs only a few lines of code to scrape all the data needed. To improve the efficiency, I have written it into an #OOP(object-oriented based) function so that I only need to define the dataset in the terminal. Viola... a quick soup is prepared in a few minutes. They are "pickled" for future use. Python programming is real fun!

Two coding files using Google Colab:
https://drive.google.com/file/d/1OSLl...
https://drive.google.com/file/d/1PeMT...