Giter Club home page Giter Club logo

pycampmap's Introduction

Python Boot Camp 開催県を可視化する

Python Boot Campの開催地一覧( https://www.pycon.jp/support/bootcamp.html#id8 )を元に開催県を塗りつぶした白地図を描きます。

Python Boot Campについて

Python Boot Campは一般社団法人PyConJPが開催している初心者向けのPythonチュートリアルイベントです。 https://www.pycon.jp/support/bootcamp.html

日本各地でPythonが盛り上がることを目的のひとつに掲げ,東京を覗く46道府県での開催を目指しています。

このアプリを作った背景

46道府県のうち,どこで開催済みで,どこが開催予定で,どこがまだなのか,一目でわかる地図があったら便利だな〜と思い,勉強を兼ねて作成することにしました。

仕組み

Python Boot Campのページにある開催地リストからConnpassページへのリンクを取得 ↓ Connpassページの情報をもとに会場の県名と開催済みかどうかを取得 ↓ 開催済み,開催予定,未開催に塗り分けた白地図を描画(https://takemaru-hirai.github.io/japan-map/ をちょっと改造して利用)

工夫

  • 会場の住所に県名が入っているとは限らないので郵便番号を使って県名を取得しています
  • 情報の取得を毎回やると処理が重いので,取得処理と表示処理を分けています
  • 取得処理(/update)は個人サーバーからcronで毎日1回叩いています
  • このままでIBM Bluemix上で動くようにしてあります

License

This app is released under the MIT License.

history

  • 2018/02/17 個人サーバー上で動くバージョンを公開
  • 2018/02/18 IBM Bluemix上で動くようにProcfile,runtime.txtを書きました
  • 2018/03/25 Python Boot Campの開催ページのテンプレート変更に対応しました
  • 2018/03/25 cf pushで"The app upload is invalid: Symlink(s) point outside of root folder"というエラーが出るのに対処
  • 2018/04/25 県名の抽出に失敗したり開催ページの解析に失敗したときに管理者にメールするようにしました
  • 2018/04/25 千葉柏の葉会場の終了判定がうまくいかないのを修正しました
  • 2018/04/26 郵便番号APIで見つからなかった時の処理を修正
  • 2018/09/23 郵便番号部分に半角スペースが含まれていた場合の処理を追加
  • 2018/09/29 PythonBootCampのサイトに開催県一覧が追加されたのでそちらを見るように変更
  • 2018/09/29 開催中止でも開催済みになるバグを修正&開催予定県の色をピンクから緑に変更
  • 2018/10/13 郵便番号も都道府県名も入っていなかった場合にGoogle検索を使って郵便番号を取得するように変更

pycampmap's People

Contributors

soogie avatar

Stargazers

 avatar

Watchers

 avatar

pycampmap's Issues

Error handling

email to administrator when update fails

更新に失敗したときに管理者にメールでお知らせしたい

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.