GithubHelp home page GithubHelp logo

Comments (5)

obiben avatar obiben commented on September 25, 2024

That`s because you have a tab instead of spaces. In your editor of choice, make sure settings use 4 spaces for each tabs instead of "actual tabs" (the \t character).

There'll usually be a ΒΆ button to show special characters. You'll see an arrow instead of dots where you put your tabs in.

from pokemongo-api.

f998601 avatar f998601 commented on September 25, 2024

Can't belive i've missed that, well it is clearly visible that I am new to python, but after inserting spaces I've received:
File "C:\Users\Mstr\Downloads\pokemongo-api-master\pogo\session.py", line 356, in catchPokemon
encounter_id=pokemon.encounter_id,
AttributeError: 'int' object has no attribute 'encounter_id'
As far as I can see I should not pass the pokemon as an Id, but what datatype should I pass it as? and does 'Pokemon Go' have any protection against targeting a pokemon that is not "in your area" or is this not accounted for in their backend?

from pokemongo-api.

obiben avatar obiben commented on September 25, 2024

I don't know whether there's a limit in distance. In any case, you should be passing a pokemon returned by one of the functions made to search for pokemons.

from pokemongo-api.

f998601 avatar f998601 commented on September 25, 2024

I appreciate your help, one thing I do not understand, after going through the code in demo.py, it should clean the inventory and pokemons/transfer, but this function is not running when calling the script?

from pokemongo-api.

obiben avatar obiben commented on September 25, 2024

They're demo functions that you're free to use at your own convenience in a program of your own. This is meant to be an API to build things of your own.

from pokemongo-api.

Related Issues (20)

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.