Code Monkey home page Code Monkey logo

Comments (7)

MrCrap avatar MrCrap commented on May 27, 2024 1

ok thanks..
I hope you provide a function for the upload image by path feature, like new_pin_upload.

from py3-pinterest.

bstoilov avatar bstoilov commented on May 27, 2024 1

That is already there, even before the change, probably you have some local change, or some branch is not merged.
f5cbcc3#diff-7725233d73b703633c5f4f0a2109ccc7L248

or am I missing something, it seems to work on my side.

from py3-pinterest.

MrCrap avatar MrCrap commented on May 27, 2024 1

yes, that was my mistake.
now it works well.
You can continue now.

Thanks

from py3-pinterest.

bstoilov avatar bstoilov commented on May 27, 2024

Hi, the image url should be web url to image not to local file.
The json error is there because the method returns response.json() and in this case it is probably something like "not found error".
The second issue will be fixed with my pr

from py3-pinterest.

bstoilov avatar bstoilov commented on May 27, 2024

I will mark this as 'feature request', since pinterest supports this but it still not integrated in the script.

from py3-pinterest.

bstoilov avatar bstoilov commented on May 27, 2024

Hi, this PR #25
enables pin local file, feel free to test it, I will probably merge this in 3 days if everything is ok

from py3-pinterest.

MrCrap avatar MrCrap commented on May 27, 2024

Hi, this PR #25
enables pin local file, feel free to test it, I will probably merge this in 3 days if everything is ok

Great work,
I've tried, there is still an error.
please add section_id=None to the pin() function:

def pin(self, board_id, image_url, description='', link='', title='', section_id=None):

after I add section_id=None to pin(), and it works.
Hope that helps.

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.