Coder Social home page Coder Social logo

scraping_new_brew_license's Introduction

new_brew_license

概要

  • 新規開業する酒蔵・ブルワリーなどを見つけたいという試み
  • 国税庁 より新規酒造免許取得者の名簿をスクレイピングする
  • スクレイピング結果のうち、「新規開業」のデータをDB保存&LINE通知
  • お気持ち程度のAPI

setup

  1. composer install
  2. Line Notify からtokenを取得し、.env に記載
  3. php artisan migrate --seed
  4. cronエントリを追加 ※Laravelと同一の手順

.env

  • LINE_NOTIFICATION_KEY string Line Notifyトークン
  • CAN_SEND_NOTIFICATION bool Lineに通知を送信するかどうか
  • API_PAGINATION int 1回のAPIリクエストで取得できる最大件数

API

Licenses

  • GET /licenses
  • GET /licenses/id
  • GET /licenses/search
    • drink_type_id integer
    • prefecture integer
    • name string LIKE検索
    • address string LIKE検索
    • start date
    • end date 許可日start~end期間

DrinkTypes

  • GET /drinkTypes

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.