raunak / android-marketplace-crawler

Automatically exported from code.google.com/p/android-marketplace-crawler
0 stars 0 forks source link

Error message: CAPTCHA is required #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When running crawler.jar, an error response says "A CAPTCHA is required. (A 
response with this error code will also contain an image URL and a CAPTCHA 
token.)

What steps will reproduce the problem?
1. build using ant
2. run java -jar crawler.jar birds

This was done using Ubuntu 10.10, Ruby 1.9. Also tested on another ubuntu based 
box. 

Original issue reported on code.google.com by antitree on 12 Jun 2011 at 9:02

GoogleCodeExporter commented 9 years ago
This error occurs when one logs in using the google credentials multiple times 
in a short span of time. i.e. run the crawler, stop it, make a little change, 
and run it again, and stop, and make some change. Your credentials will start 
working automatically after 10 ~ 15 minutes or so. As for the re-captcha, You 
cannot see it because the API this crawler makes use of does not have this 
feature implemented. 

Original comment by raunakgu...@gmail.com on 26 Jun 2011 at 4:41

GoogleCodeExporter commented 9 years ago
Any idea what might cause this problem if I have never run the crawler before? 
I get this CAPTCHA error as well. Might have something to do with the 
credentials I put into secure.java? Hmmm. 

Mind telling me exactly what needs to be put in these fields?

        public Secure() {
                preferences.put("username_key", "username@gmail.com");
                // preferences.put("more username", "username1@gmail.com");
                // preferences.put("more username 2", "username2@gmail.com");
                preferences.put("password_key", "password");
        }

        public String getUsername() {
                return preferences.get("username_key", null);
        }

        public String getPassword() {
                return preferences.get("password_key", null);

public User[] getUsers() {
                /*
                 * Ideally, one would want 11+ username. 1 username per Android version,
                 * and the other username for crawling images and comments. For Testing
                 * purposes, one can add the same username to different index array.
                 */
                User[] users = new User[17];
                users[0] = new User(getUsername(), getPassword());
                users[1] = new User(getUsername(), getPassword());
                users[2] = new User(getUsername(), getPassword());
                users[3] = new User(getUsername(), getPassword());
                users[4] = new User(getUsername(), getPassword());
                users[5] = new User(getUsername(), getPassword());
                users[6] = new User(getUsername(), getPassword());
                users[7] = new User(getUsername(), getPassword());
                users[8] = new User(getUsername(), getPassword());
                users[9] = new User(getUsername(), getPassword());
                users[10] = new User(getUsername(), getPassword());
                users[11] = new User(getUsername(), getPassword());
                users[12] = new User(getUsername(), getPassword());
                users[13] = new User(getUsername(), getPassword());
                users[14] = new User(getUsername(), getPassword());
                users[15] = new User(getUsername(), getPassword());
                users[16] = new User(getUsername(), getPassword());

                return users;
        }

Sounds straightforward enough, but you never can be too sure...

Original comment by ryan.cao...@gmail.com on 9 Jun 2012 at 7:13

GoogleCodeExporter commented 9 years ago
Does the Google Account you input into secure.java need to be associated with 
an Android phone?

Original comment by ryan.cao...@gmail.com on 9 Jun 2012 at 7:15