Coder Social home page Coder Social logo

pypin's Introduction

Post Pin on Pinterest

Get the script:

git clone https://github.com/ezag/pypin.git
cd pypin

(or, if you don't want to use git, download it from https://raw.githubusercontent.com/ezag/pypin/master/pypin.py)

Run from command line:

python pypin.py \
        'eugenzagorodniy/test'      \  # board
        'Take a look, it is GitHub' \  # note
        'https://github.com/'       \  # link
        # image url:
        'https://assets-cdn.github.com/images/modules/open_graph/github-mark.png'

First run:

- Go to following URL in your browser: 

https://api.pinterest.com/oauth/?scope=read_public%2Cwrite_public&redirect_uri=https%3A%2F%2Fdevelopers.pinterest.com%2Ftools%2Fapi-explorer%2F&response_type=token&client_id=4779055074072594921

- Confirm permissions
- You'll be redirected to another page - put its URL below:

>

After you provide redirect URL, a .pypin-access-token file will be created in working directory, and will be used for all subsequent requests until access token expires.

Script output example is case of success:

{
  "data": {
    "url": "https://www.pinterest.com/pin/687643436823691338/", 
    "note": "Take a look, it is GitHub", 
    "link": "https://www.pinterest.com/r/pin/687643436823691338/4779055074072594921/3cdbba8c79c29eba41db0a63e1b7ea42ff8a705745fc44e54f86ec42ecd50874", 
    "id": "687643436823691338"
  }
}

pypin's People

Contributors

ezag avatar

Stargazers

 avatar Philippe Rigovanov avatar

Watchers

 avatar James Cloos avatar

Forkers

a1ip prakasharul

pypin's Issues

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.