Giter Site home page Giter Site logo

dwbot's Introduction

An experimental bot to automatize actions for the Pokémon Dream World.
This script is licenced under the zlib licence.  See LICENCE for details.

Current usage:
$ python3 dwbot.py username
Please type your password:
Logging in.
Successfully logged in, run the script without arguments now.
$ python3 dwbot.py
Got token!
Sanky - game Pokémon Black Version (Buranky), Pokémon Swampert
Friend request from: Rokocoko, Ruaridh.
Berries: 0 harvestable, 0 unwatered, 9 total
List of friends:
 Tatertot745 (United States of America) - 5 friends, Berries: 4 harvestable, 0 unwatered, 6 total
 Matt21228 (United States of America) - 5 friends, Berries: 1 harvestable, 5 unwatered, 9 total
 tepig1 (United Kingdom ) - 5 friends, Berries: 6 harvestable, 0 unwatered, 6 total
 Pasqui (Belgium) - 5 friends, Berries: 0 harvestable, 0 unwatered, 9 total
 Abumi (Czech Republic) - 5 friends, Berries: 0 harvestable, 1 unwatered, 9 total
Do you want to automatically water berries? y
Remains watering: 17
Remains watering: 16
[...]
Remains watering: 1
Remains watering: 0
Done watering!

Actually, it doesn't quite work.  If you're getting:
RuntimeError: (403, 'Forbidden', {'default': 'Please log in.', 'is_session_timeout': 1})
Try copying the PMDSUSSID cookie for pokemon-gl.com from your browser and pasting it in PMDSUSSID.

If you can't play, you'll get a nice error similar to this:
RuntimeError: (403, 'Forbidden', {'default': 'Your time to play in the Pokémon DW is over for today.\\nYou can play again tomorrow.', 'is_pdw_timeout': 1})
However, you should still get your name and game info.

Planned features:
- Search for a certain player (by name, country, item put up for trade, etc.)
- Make a nice spiderweb diagram of the neighbourhood!
- ???

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.