{"action":"created","issue":{"url":"https://api.github.com/repos/opsdisk/metagoofil/issues/2","repository_url":"https://api.github.com/repos/opsdisk/metagoofil","labels_url":"https://api.github.com/repos/opsdisk/metagoofil/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/opsdisk/metagoofil/issues/2/comments","events_url":"https://api.github.com/repos/opsdisk/metagoofil/issues/2/events","html_url":"https://github.com/opsdisk/metagoofil/issues/2","id":164586902,"number":2,"title":"Add User-Agent option?","user":{"login":"theabraxas","id":6147260,"avatar_url":"https://avatars.githubusercontent.com/u/6147260?v=3","gravatar_id":"","url":"https://api.github.com/users/theabraxas","html_url":"https://github.com/theabraxas","followers_url":"https://api.github.com/users/theabraxas/followers","following_url":"https://api.github.com/users/theabraxas/following{/other_user}","gists_url":"https://api.github.com/users/theabraxas/gists{/gist_id}","starred_url":"https://api.github.com/users/theabraxas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theabraxas/subscriptions","organizations_url":"https://api.github.com/users/theabraxas/orgs","repos_url":"https://api.github.com/users/theabraxas/repos","events_url":"https://api.github.com/users/theabraxas/events{/privacy}","received_events_url":"https://api.github.com/users/theabraxas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-08T18:17:38Z","updated_at":"2016-07-16T17:14:17Z","closed_at":null,"body":"Might it be possible to add a user-agent impersonation option for accessing sites? I've run across things like this a few times: https://stackoverflow.com/questions/25936072/python-urllib2-httperror-http-error-503-service-unavailable-on-valid-website and having a way to set a user agent with a flag would be phenomenal"},"comment":{"url":"https://api.github.com/repos/opsdisk/metagoofil/issues/comments/233140679","html_url":"https://github.com/opsdisk/metagoofil/issues/2#issuecomment-233140679","issue_url":"https://api.github.com/repos/opsdisk/metagoofil/issues/2","id":233140679,"user":{"login":"opsdisk","id":8660252,"avatar_url":"https://avatars.githubusercontent.com/u/8660252?v=3","gravatar_id":"","url":"https://api.github.com/users/opsdisk","html_url":"https://github.com/opsdisk","followers_url":"https://api.github.com/users/opsdisk/followers","following_url":"https://api.github.com/users/opsdisk/following{/other_user}","gists_url":"https://api.github.com/users/opsdisk/gists{/gist_id}","starred_url":"https://api.github.com/users/opsdisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opsdisk/subscriptions","organizations_url":"https://api.github.com/users/opsdisk/orgs","repos_url":"https://api.github.com/users/opsdisk/repos","events_url":"https://api.github.com/users/opsdisk/events{/privacy}","received_events_url":"https://api.github.com/users/opsdisk/received_events","type":"User","site_admin":false},"created_at":"2016-07-16T17:14:17Z","updated_at":"2016-07-16T17:14:17Z","body":"Just updated the code and documentation...let me know if that works!\r\n\r\nAdded the -u user agent switch to customize the User-Agent used to retrieve files. If no -u is provided, then the User-Agent for every file download is 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'. If only -u is provided, a random User-Agent from user_agents.txt will be picked for each file request. Lastly, a custom User-Agent can be added by providing a string after the -u...for example -u \"My custom user agent 2.0\"."}}
{"actor":{"display_login":"opsdisk"}}