1
$\begingroup$

I am trying to do a correlation study about personality traits as described in Hofstede's :https://www.hofstede-insights.com/product/compare-countries/ . I would like to have the values described in the bar charts numerically into, say an Excel or pandas file. Is there a way of scraping or using an API that would turn the bar chart values into number values associated to each country? I looked at similar questions but the closest I found was transforming categorical data given in a file format and did not involve scraping/APIs to change categorical into numerical. Thanks.

$\endgroup$

1 Answer 1

1
$\begingroup$

The data is available in json format through this link, which contains the data for all countries that can be selected from the list. I found this link by going to the link you provided, opening the Network tab in the Chrome developer tools and reloading the page to see all the resources that are loaded by the webpage.

$\endgroup$
1
  • $\begingroup$ Excelent man, worked perfectly with Pandas. $\endgroup$
    – MSIS
    Oct 29, 2019 at 2:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.