Added pagination. Switched from requests to httplib and urllib.