{"action":"created","issue":{"url":"https://api.github.com/repos/scrapy/scrapy/issues/1051","labels_url":"https://api.github.com/repos/scrapy/scrapy/issues/1051/labels{/name}","comments_url":"https://api.github.com/repos/scrapy/scrapy/issues/1051/comments","events_url":"https://api.github.com/repos/scrapy/scrapy/issues/1051/events","html_url":"https://github.com/scrapy/scrapy/pull/1051","id":58306060,"number":1051,"title":"Shortcut for idle","user":{"login":"ChienliMa","id":6784535,"avatar_url":"https://avatars.githubusercontent.com/u/6784535?v=3","gravatar_id":"","url":"https://api.github.com/users/ChienliMa","html_url":"https://github.com/ChienliMa","followers_url":"https://api.github.com/users/ChienliMa/followers","following_url":"https://api.github.com/users/ChienliMa/following{/other_user}","gists_url":"https://api.github.com/users/ChienliMa/gists{/gist_id}","starred_url":"https://api.github.com/users/ChienliMa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChienliMa/subscriptions","organizations_url":"https://api.github.com/users/ChienliMa/orgs","repos_url":"https://api.github.com/users/ChienliMa/repos","events_url":"https://api.github.com/users/ChienliMa/events{/privacy}","received_events_url":"https://api.github.com/users/ChienliMa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-02-20T03:24:33Z","updated_at":"2015-04-25T16:25:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/scrapy/scrapy/pulls/1051","html_url":"https://github.com/scrapy/scrapy/pull/1051","diff_url":"https://github.com/scrapy/scrapy/pull/1051.diff","patch_url":"https://github.com/scrapy/scrapy/pull/1051.patch"},"body":"related to issue #740"},"comment":{"url":"https://api.github.com/repos/scrapy/scrapy/issues/comments/96233853","html_url":"https://github.com/scrapy/scrapy/pull/1051#issuecomment-96233853","issue_url":"https://api.github.com/repos/scrapy/scrapy/issues/1051","id":96233853,"user":{"login":"ChienliMa","id":6784535,"avatar_url":"https://avatars.githubusercontent.com/u/6784535?v=3","gravatar_id":"","url":"https://api.github.com/users/ChienliMa","html_url":"https://github.com/ChienliMa","followers_url":"https://api.github.com/users/ChienliMa/followers","following_url":"https://api.github.com/users/ChienliMa/following{/other_user}","gists_url":"https://api.github.com/users/ChienliMa/gists{/gist_id}","starred_url":"https://api.github.com/users/ChienliMa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChienliMa/subscriptions","organizations_url":"https://api.github.com/users/ChienliMa/orgs","repos_url":"https://api.github.com/users/ChienliMa/repos","events_url":"https://api.github.com/users/ChienliMa/events{/privacy}","received_events_url":"https://api.github.com/users/ChienliMa/received_events","type":"User","site_admin":false},"created_at":"2015-04-25T16:25:01Z","updated_at":"2015-04-25T16:25:01Z","body":"Sorry for my disappearance.\r\n\r\n@kmike  for you opinions:\r\n##### what happens if idled returned nothing?\r\nIf users implement the idled() and return nothing, or something other than a generator, nothing will happen.\r\n\r\n##### it should be documented how to stop the spider from idled signal; usage example in docs would be good;\r\nI added a ```try..except....``` block. Now if users can raise ```CloseSpider``` in idled() method if they want to close spider. Do you think this is ok?\r\n\r\n##### there should be more tests, at least for request handling.\r\nI add some tests in the test case. But the test failed because the engine of the crawler did not exist. How can I fix this?\r\n\r\n##### Another API\r\nI am not sure which one is better. I think this should let core developers to decide.  "}}