Extract contents from a webpage