Scraping sovereign credit ratings data This script downloads all historical sovereign credit data from Trading Economics. It is working as of 2/14/2022. To run it, install the required packages dplyr, rvest, and data.table and set your working directory.