Code Monkey home page Code Monkey logo

Comments (3)

bstoilov avatar bstoilov commented on September 26, 2024

This happens if the board id is wrong. I just tested locally and it seems to be working

from py3-pinterest.

benx13 avatar benx13 commented on September 26, 2024

@KristyAnon did you fix it I'm getting the same issue

from py3-pinterest.

Humenuik avatar Humenuik commented on September 26, 2024

Saw that there wasn't an answer as to getting the board_id correct. To get the correct board_id:

import pprint

pprint.pprint(pin.boards(username=username))

This will print out the JSON in an easily readable format. Look for id: value for the board with name: board you want. Use the id value for the id.

If you are trying to make this scale, you can probably just make a function to loop through all current boards looking for the one you want to add to, if it finds the name, it stores the id value to upload the pin to. If it doesn't find the name, it creates the board and stores the id to upload the PIN. Hope this helps anyone who gets stuck.

quick edit: Don't use the ID under owner. That is your JSON ID value, not the board.

from py3-pinterest.

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.