{"action":"created","issue":{"url":"https://api.github.com/repos/ckreibich/scholar.py/issues/35","labels_url":"https://api.github.com/repos/ckreibich/scholar.py/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/ckreibich/scholar.py/issues/35/comments","events_url":"https://api.github.com/repos/ckreibich/scholar.py/issues/35/events","html_url":"https://github.com/ckreibich/scholar.py/issues/35","id":54033678,"number":35,"title":"Doesn't handle CAPTCHAs from Google","user":{"login":"fazzertron","id":3471597,"avatar_url":"https://avatars.githubusercontent.com/u/3471597?v=3","gravatar_id":"","url":"https://api.github.com/users/fazzertron","html_url":"https://github.com/fazzertron","followers_url":"https://api.github.com/users/fazzertron/followers","following_url":"https://api.github.com/users/fazzertron/following{/other_user}","gists_url":"https://api.github.com/users/fazzertron/gists{/gist_id}","starred_url":"https://api.github.com/users/fazzertron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fazzertron/subscriptions","organizations_url":"https://api.github.com/users/fazzertron/orgs","repos_url":"https://api.github.com/users/fazzertron/repos","events_url":"https://api.github.com/users/fazzertron/events{/privacy}","received_events_url":"https://api.github.com/users/fazzertron/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-12T09:28:54Z","updated_at":"2015-02-02T17:29:20Z","closed_at":null,"body":"Currently, scholar.py just returns blank if a captcha is displayed by google. Could a method for displaying the captcha be added so it can be solved?"},"comment":{"url":"https://api.github.com/repos/ckreibich/scholar.py/issues/comments/72498843","html_url":"https://github.com/ckreibich/scholar.py/issues/35#issuecomment-72498843","issue_url":"https://api.github.com/repos/ckreibich/scholar.py/issues/35","id":72498843,"user":{"login":"dbassendine","id":555718,"avatar_url":"https://avatars.githubusercontent.com/u/555718?v=3","gravatar_id":"","url":"https://api.github.com/users/dbassendine","html_url":"https://github.com/dbassendine","followers_url":"https://api.github.com/users/dbassendine/followers","following_url":"https://api.github.com/users/dbassendine/following{/other_user}","gists_url":"https://api.github.com/users/dbassendine/gists{/gist_id}","starred_url":"https://api.github.com/users/dbassendine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbassendine/subscriptions","organizations_url":"https://api.github.com/users/dbassendine/orgs","repos_url":"https://api.github.com/users/dbassendine/repos","events_url":"https://api.github.com/users/dbassendine/events{/privacy}","received_events_url":"https://api.github.com/users/dbassendine/received_events","type":"User","site_admin":false},"created_at":"2015-02-02T17:29:20Z","updated_at":"2015-02-02T17:29:20Z","body":"We've also struggled with this. Although our automated script runs at very low query rates, we've yet to find a level where it's not blocked eventually. Our latest attempt was at 1 query every 15 minutes, but this was blocked after a few days. We're now trying 1 query per hour.\r\n\r\nIt would help to improve how the script handles block detection, when the page returned contains a CAPTCHA. Right now, scholar.py returns a successful exit code, but nothing else, and nothing is logged - just the same as a successful query with no results. We've had to resort to testing whether a known successful query (eg. \"quantum\") is returning results - if not, we know we're blocked. This works, but it also boosts our query count, and given the limits it would be better to use that query to retrieve actual data.\r\n\r\nCan we at least catch the block, return an error exit code on the command line, and log the error?\r\n\r\nThanks!"}}