Modied code using requests liabrary
Modified doc