add extract function for downloaed html