lucasboucher / ffbb-alternative

Python scraper in JSON with JS web display for FFBB (Fédération Française de Basket-Ball)

Home Page:http://ffbb.lucasboucher.fr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quickstart

Download all dependencies with pip3 install -r requirements.txt

Launch development mode :

flask run --debug

Launch production mode :

gunicorn app:app --bind 0.0.0.0:8000

🇫🇷 Code's comments and interface only in French for now

Config

  • Set .env file with .env.sample template
  • The scraper will be automatically launched when the project starts, but you can also update the data through the interface

Technologies & Librairies:

Scraper

  • Python
    • BeautifulSoup
    • Flask

Interface

  • Vanilla JavaScript
    • Chart.js

Sources

TODO

  • Time update
    • Sorting charts and all fixtures by date or by matchday (with ./team settings button)
    • Sort automatically next matchday fixtures by date
    • Print 6 last and next fixtures by time (with matchday indicator)
  • Championship and pool management
    • Input to set championship
    • Select to set pool
  • PR on GitHub
  • New server scheduling system, launch automatically at starting the scraper (CRON ?)
  • Sort an array teams by rank (and not by default) for display ranking
  • Beter JS organization (ternary operator, setAttribute(), ...)
  • Light theme
  • Refresh animation with icon
  • Handle proxy error on Scraper
  • Loader

Bugs

  • Pool selection
  • To validate : add penalty compability

About

Python scraper in JSON with JS web display for FFBB (Fédération Française de Basket-Ball)

http://ffbb.lucasboucher.fr

License:GNU General Public License v3.0


Languages

Language:JavaScript 45.9%Language:CSS 22.9%Language:HTML 16.1%Language:Python 15.1%