Skip to content

thanhqtran/gso-macro-monitor

Repository files navigation

Vietnam Macroeconomic Monitor

  • (2025/06/06): Data archived until 20250601 was released.
  • (2024/11/20): Data archived until 2023q2 was released.
  • (2024/11/22): New data until 2024q3 are available now.

Purposes

This project aims to provide the most accurate and up-to-date data on the Vietnamese economy.

Data retrieving procedure:

  • I scraped data from GSO (stored in .xml format). In total, there are 15 databases.
  • I then extracted the information from these databases and stored it in a single .json file.
  • To download, see Release on the right panel.

The comprehensive data can be found in e-DSBB at the Excel sheets provided by GSO.

Usage

To install all dependencies, run

pip install -r requirements.txt
  • To scrape all data at once, run scrape_all.py
  • After scraping all the data, filter out variables of your interest by running make_df.py
  • Data description can be found in dsbb_indicator_desc.csv
  • All databases are found in dsbb_database.csv

Tiếng Việt

Để tiện cho mục tiêu nghiên cứu, mình viết một số script trên Python để cho máy đọc dữ liệu chính thức từ Tổng cục thống kê GSO.

Với CSDL này, chúng ta có thể vẽ các biểu đồ cơ bản hoặc ước lượng các mô hình vĩ mô.

Hiện nay GSO có 15 CSDL kinh tế, chủ yếu quan tâm đến các dữ liệu vĩ mô theo quý.

Những ai cần dùng có thể tải về toàn bộ data ở mục Release.

Do link SDMX của GSO không ổn định, nhiều khi không truy cập được nên mình chỉ sử dụng các đường link sao lưu trên Internet Archive ở thời điểm gần nhất (2023/12/31). Riêng dữ liệu về Tài khoản quốc gia có từ 2010q1 đến 2023q2. Dữ liệu từ 2023q2 trở đi có thể truy cập thủ công ở các bảng tính Excel cung cấp bởi GSO.

Trong tương lai, khi đường link chính ổn định hơn, mình sẽ update Release mới.

Phần link gốc không có mô tả ý nghĩa @INDICATOR. Ai quan tâm có thể tham khảo ở file dsbb_indicator_desc.csv.


Data sources

ASEAN:

Code Reference:

To visualize data structure

Deployed at Macro Monitor