Thursday, 5 November 2020

Scraping Gold

 For a future project, I wanted to try and get the history of the price of gold. I did a bit of scouting and landed on the history page of goldprice.org. However, the data was in a chart and I wanted to extract it to a table.

To do this, I wrote a very short web scraping tool which scrapes the data off the chart and formats the data points as a numpy array on python.

The GitHub code can be found here.

1 comment:

  1. Quote timestamps and clear units are useful when turning gold-price data into a calculator. I built Gold Price Per Gram with a current USD reference for 14K jewelry and a visible update time. Readers can enter net weight and adjust the buyer payout percentage to compare an offer with the estimated gold content value.

    ReplyDelete