Switch from external wget to request