download html files and .pdf files based on the url given