Git Product home page Git Product logo

naverpy's Introduction

NaverPy

Naver Open API Package

Naver의 Open API를 응용한 패키지 입니다 현재 Datalab 트렌드 검색, 검색, 단축 URL 기능을 지원합니다


Example Code

Constructor

from NaverPy import API, Auth
auth = Auth(Client_ID. Client_Secret)
api = API(auth)

Search API

api.search('blog', 'Test', 'json', {'sort' : 'date'})

API.search(target, query, ext, arg)

target

검색 API의 종류 선택 Argument 자세한 내용은 Naver Open API 참조

'blog' : https://developers.naver.com/docs/serviceapi/search/blog/blog.md 'news' : https://developers.naver.com/docs/serviceapi/search/news/news.md 'book' : https://developers.naver.com/docs/serviceapi/search/book/book.md 'encyc' : https://developers.naver.com/docs/serviceapi/search/encyc/encyc.md 'movie' : https://developers.naver.com/docs/serviceapi/search/movie/movie.md 'cafearticle' : https://developers.naver.com/docs/serviceapi/search/cafearticle/cafearticle.md 'kin' : https://developers.naver.com/docs/serviceapi/search/kin/kin.md

query

각 검색 API의 필수 변수

ext

API의 파일 형식 선택(삭제예정)

arg

각 검색 API별 추가 옵션 설정

ShortUrl

API.ShortUrl('http://d2.naver.com/helloworld/4874130')

ShortUrl(url)

API resonse를 json(python dict)형태로 return

{
    "message":"ok",
    "result": {
        "hash":"GyvykVAu",
        "url":"https://me2.do/GyvykVAu",
        "orgUrl":"http://d2.naver.com/helloworld/4874130"
    }
    ,"code":"200"
}

naverpy's People

Contributors

tsfo1489 avatar

Watchers

 avatar  avatar

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.