Code Monkey home page Code Monkey logo

vuejs-nodejs-google-image-crawling's Introduction

개요

NodeJs와 VueJs를 이용해 웹서버를 띄우고 구글 API와 구글 검색엔진 API KEY를 사용해 입력한 키워드에 대한 이미지를 검색해 크롤링하는 토이 프로젝트입니다.

사용방법

  • 검색하고 싶은 키워드를 입력합니다.
  • 키워드에 대한 이미지를 구글 검색엔진을 통해 받아옵니다.
  • 이미지를 모두 모은 결과값을 압축파일 zip로 받아옵니다.
  • 이미지는 최대 50개 까지 받아올 수 있습니다.
  • cross origin header 이슈 해결을 위해 heroku 서버를 거쳐 blob url을 받아옵니다.

기능 요약

  • 이미지 찾기 기능 이미지 찾기 기능1 이미지 찾기 기능2 압축된 파일 다운기능

배포된 Deploy URL

https://shlee0882.github.io/vuejs-nodejs-google-image-crawling/


설치방법 공유


오픈 API 사용

npm을 사용하여 필요한 오픈API를 설치 및 사용

  • url, request, jquery, axios
  • fs
  • google-images
  • jszip, jszip-utils

실행하기

npm install
npm run serve

GitHub Pages 배포하기

  1. gh-pages 설치하기
npm install --save gh-pages
  1. package.json에 추가하기
"homepage": "https://shlee0882.github.io/vuejs-nodejs-google-image-crawling/"


"scripts": {
    "predeploy": "npm run build",
    "deploy": "gh-pages -d dist"
}
  1. 배포하기
npm run deploy
  1. 배포된 URL 확인하기
https://shlee0882.github.io/vuejs-nodejs-google-image-crawling/

레퍼런스

vuejs-nodejs-google-image-crawling's People

Contributors

shlee0882 avatar

Stargazers

 avatar  avatar  avatar  avatar  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.