{"action":"created","issue":{"url":"https://api.github.com/repos/brenden/node-webshot/issues/122","labels_url":"https://api.github.com/repos/brenden/node-webshot/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/brenden/node-webshot/issues/122/comments","events_url":"https://api.github.com/repos/brenden/node-webshot/issues/122/events","html_url":"https://github.com/brenden/node-webshot/pull/122","id":111296756,"number":122,"title":"New Option - captureSelector","user":{"login":"nicholasblexrud","id":5520610,"avatar_url":"https://avatars.githubusercontent.com/u/5520610?v=3","gravatar_id":"","url":"https://api.github.com/users/nicholasblexrud","html_url":"https://github.com/nicholasblexrud","followers_url":"https://api.github.com/users/nicholasblexrud/followers","following_url":"https://api.github.com/users/nicholasblexrud/following{/other_user}","gists_url":"https://api.github.com/users/nicholasblexrud/gists{/gist_id}","starred_url":"https://api.github.com/users/nicholasblexrud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicholasblexrud/subscriptions","organizations_url":"https://api.github.com/users/nicholasblexrud/orgs","repos_url":"https://api.github.com/users/nicholasblexrud/repos","events_url":"https://api.github.com/users/nicholasblexrud/events{/privacy}","received_events_url":"https://api.github.com/users/nicholasblexrud/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-14T00:09:46Z","updated_at":"2015-10-16T18:29:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/brenden/node-webshot/pulls/122","html_url":"https://github.com/brenden/node-webshot/pull/122","diff_url":"https://github.com/brenden/node-webshot/pull/122.diff","patch_url":"https://github.com/brenden/node-webshot/pull/122.patch"},"body":"This PR adds a new ```captureSelector``` option that allows a user to pass in a selector that will capture the page area containing the provided selector.\r\n\r\n**Example**\r\n\r\n```javascript\r\nwebshot('google.com', 'googleLogo.png', {\r\n    captureSelector: '#hplogo'\r\n}, function(err) {\r\n\r\n});\r\n```\r\n\r\nThis functionality currently exists in casperjs: http://casperjs.readthedocs.org/en/latest/modules/casper.html#captureselector\r\n\r\n**Note:** This is my first stab at a pull request and contributing to project, so any feedback is greatly appreciated. Also, you'll notice some edits to the fixture paths in the test. I was running the test on a PC and it was having issues with the `file://` (I believe it was the trailing slashes), so I removed them. I'm new to writing tests too.\r\n\r\nThis node module has been crucial in a project my team and I have been working on for the past six months. Thanks for the awesome work!"},"comment":{"url":"https://api.github.com/repos/brenden/node-webshot/issues/comments/148795474","html_url":"https://github.com/brenden/node-webshot/pull/122#issuecomment-148795474","issue_url":"https://api.github.com/repos/brenden/node-webshot/issues/122","id":148795474,"user":{"login":"thoughtpalette","id":690624,"avatar_url":"https://avatars.githubusercontent.com/u/690624?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtpalette","html_url":"https://github.com/thoughtpalette","followers_url":"https://api.github.com/users/thoughtpalette/followers","following_url":"https://api.github.com/users/thoughtpalette/following{/other_user}","gists_url":"https://api.github.com/users/thoughtpalette/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtpalette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtpalette/subscriptions","organizations_url":"https://api.github.com/users/thoughtpalette/orgs","repos_url":"https://api.github.com/users/thoughtpalette/repos","events_url":"https://api.github.com/users/thoughtpalette/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtpalette/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T18:29:01Z","updated_at":"2015-10-16T18:29:01Z","body":":+1: \r\n"}}