GithubHelp home page GithubHelp logo

thosuperman / ptcaccount2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kitryn/ptcaccount2

0.0 2.0 0.0 24 KB

Semi-automatic creation of Pokémon Trainer Club accounts, with prompt for manual CAPTCHA entry.

License: MIT License

Python 100.00%

ptcaccount2's Introduction

Pokemon Trainer Club Account Creator 2

Script heavily based on the original PTCAccount, by jepayne1138.

Description

Semi-automatic creation of PTC accounts, with manual user intervention required for CAPTCHA input. This script is built on Selenium, which utilises a browser for automation rather than pure HTTP requests.

Installation

This script runs on Selenium using ChromeDriver. See the Google documentation for platform specific installation.

OSX Installation: brew install chromedriver

Once ChromeDriver is installed, install PTCAccount2 from Github using pip:

pip install git+https://github.com/Kitryn/PTCAccount2.git

NOTE: Google Chrome (the browser) must be installed for this script to work!

Use

Command line interface:

After installing the package run 'ptc2' from the terminal to create a new account. Optional parameters include --username, --password, and --email. Use --help for more commands and command line interface help.

Example 1 (Create entirely random new account):

> ptc2
Account successfully created.
  Username:  BcZvTnlTMwHsa6v
  Password:  WgZApVU5edTBMCs
  Email   :  [email protected]

Example 2 (Create a new account with specified parameters):

> ptc2 --username=foo --password=bar [email protected]
Account successfully created.
  Username:  foo
  Password:  bar
  Email   :  [email protected]

Extra options:

  • --birthday: Specify a birthday. Must be between 1910 and 2002. Must be in YYYY-MM-DD format.
  • --compact: Compact the output to "username:password"

As package:

import the ptcaccount2 package to create new accounts in your own scripts:

>>> import ptcaccount2
>>> ptcaccount2.random_account()
{"username": "BcZvTnlTMwHsa6v", "password": "WgZApVU5edTBMCs", "email": "[email protected]"}

Specifying your own data:

>>> ptcaccount2.random_account(username=<your data>, password=<your data>, email=<your data>, birthday=<your data>)

Note: birthday must be a string in YYYY-MM-DD format.

Troubleshooting

OSX installation

Some OSX users may run into an issue which points to an error occurring in line: create_account driver = webdriver.Chrome() This may be related to brew install chromedriver installing a 32bit version rather than 64bit version.

To fix, see this issue to make brew install the 64bit version of ChromeDriver.

ptcaccount2's People

Contributors

kitryn avatar

Watchers

James Cloos avatar Tho Nguyen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.