Latest 0.1.0
Homepage https://github.com/kraj011/captcha-harvester-ios
License MIT
Platforms ios 8.0
Frameworks Webkit
Authors

CI Status
Version
License
Platform

Example

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

Installation

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

pod 'captcha-harvester-ios'

Usage

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:

Tokens.tokens

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)!

Author

David Krajewski, [email protected]

License

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

Thanks

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": "https://github.com/kraj011/captcha-harvester-ios",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "David Krajewski": "[email protected]"
    },
    "source": {
        "git": "https://github.com/kraj011/captcha-harvester-ios.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