Coder Social home page Coder Social logo

hkbus / hk-bus-crawling Goto Github PK

View Code? Open in Web Editor NEW
52.0 4.0 21.0 164.19 MB

Daily update the bus route, fare, stop information across KMB, CTB and NWFB in HK. The data information is ready to work with the ETA APIs provided by data.gov.hk

License: GNU General Public License v2.0

Python 99.09% Batchfile 0.91%
hkbus bus-eta eta bus-schedule bus-route hong-kong kmb ctb nlb nwfb

hk-bus-crawling's People

Contributors

amostungyanlai avatar chengkeith avatar chunlaw avatar loohp avatar rtau avatar rtau-cca avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

hk-bus-crawling's Issues

出現這個錯誤 error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1

=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.10 -c c/_cffi_backend.c -o build/temp.linux-x86_64-3.10/c/_cffi_backend.o
    c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
       15 | #include <ffi.h>
          |          ^~~~~~~
    compilation terminated.
    error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-l0sebslv/cffi_60c4ece9675c4ab2a237bb3b33dc14a5/setup.py'"'"'; __file__='"'"'/tmp/pip-install-l0sebslv/cffi_60c4ece9675c4ab2a237bb3b33dc14a5/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-3fnu84cm/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.10/cffi Check the logs for full command output.

Adding (some) actual route path waypoints data

I wonder whether this crawler is interested in adding support for actual route paths (waypoints data) into the crawling.

So far I've been able to scrap the waypoints of KMB routes via https://m4.kmb.hk:8012/api, with this data we'll be able to draw more beautiful routes on the map. (At least for routes that have waypoint data scrapable)

With that hkbus.app can gain another pretty feature as well, instead of only connecting all the stops with straight lines.

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.