Latest 0.1.0
License MIT
Platforms ios 8.0
Frameworks Webkit

CI Status


To run the example project, clone the repo, and run pod install from the Example directory first.


captcha-harvester-ios is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'captcha-harvester-ios'


To begin, import captcha_harvester_ios and WebKit and create a WebKit View inside your view controller file. In your code where you would like to display the captcha harvester (Leave in view did load function if you are testing) place the following code:

self.webView.displayCaptcha(sitekey: "YourSitekey", baseUrl: "Base URL For the Captcha", googleLogin: false)

This will display captcha and keep on harvesting. If googleLogin is set to true, the user will be prompted to login to google before solving. The WebKit View stores cookies, so when you login once, it will remain auto logged in even if the app is terminated.

Once solve, the tokens are stored in an array within a struct and can be accessed as followed:


the tokens array can be modified to your needs from anywhere in your code.

If you have any questions, feel free to email me ([email protected]) or DM me on twitter (@DynxSZN)!


David Krajewski, [email protected]


captcha-harvester-ios is available under the MIT license. See the LICENSE file for more info.


Thanks to Peter Soboyejo (@pxtvr) for allowing me to use a snippet of his code while creating this project!

Latest podspec

    "name": "captcha-harvester-ios",
    "version": "0.1.0",
    "summary": "ReCaptcha harvester for iOS.",
    "description": "captcha-harvester-ios is a reCaptcha harvester for iOS allowing you to harvest recaptcha tokens for a specific domain and sitekey. You can access these tokens and use them in your own project.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "David Krajewski": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.1.0"
    "platforms": {
        "ios": "8.0"
    "swift_version": "3.2",
    "source_files": "captcha-harvester-ios/Classes/**/*",
    "frameworks": "Webkit"

Pin It on Pinterest

Share This