Code Monkey home page Code Monkey logo

Comments (10)

flygohr avatar flygohr commented on May 26, 2024 1

from py3-pinterest.

bstoilov avatar bstoilov commented on May 26, 2024

Hello, I noticed this problem once or twice but eventually it went away, probably it is some corner case, can you give me the piece of code you are using to pin?

from py3-pinterest.

flygohr avatar flygohr commented on May 26, 2024

It actually did it on 500+ pins with no exception. The title-grabbing function is ok, tested multiple times.

It's strange it did it only once or twice on your end, as I noticed this on lines 10-18 of RequestBuilder.py:

def buildPost(self, options, source_url, context={}):
        return self.url_encode({
            'source_url': source_url,
            'data': json.dumps({
                'options': options,
                "context": context
            }).replace(' ', ''),
            '_': '%s' % int(time.time() * 1000)
        })

I changed the replace with a full whitespace. I just run the script on 1000+ pins and it worked without a single error, adding all the necessary spaces to ALL pins.

from py3-pinterest.

bstoilov avatar bstoilov commented on May 26, 2024

Great! Nice catch, I haven't set up collaborators on the repo yet, so I will apply your fix and push the new version :)

from py3-pinterest.

flygohr avatar flygohr commented on May 26, 2024

from py3-pinterest.

bstoilov avatar bstoilov commented on May 26, 2024

I will test it on my end, there was some reason for this for sure.

from py3-pinterest.

flygohr avatar flygohr commented on May 26, 2024

from py3-pinterest.

bstoilov avatar bstoilov commented on May 26, 2024

It appears that the whole replace was a left over from other issue. I have removed it entirely and all the f unctions are working as expected.

The new version 0.2.3 is published let me know if you still have the issue.

from py3-pinterest.

flygohr avatar flygohr commented on May 26, 2024

Yep, it's working out of the box! Just tried the pin function tho, no need for others atm

from py3-pinterest.

bstoilov avatar bstoilov commented on May 26, 2024

Great closing the issue

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.