Giter VIP home page Giter VIP logo

nekromoff / eia-scraper Goto Github PK

View Code? Open in Web Editor NEW
5.0 7.0 0.0 11.54 MB

EIA Scraper - European Union Environmental Impact Assessment project scraper, processor and notifier for Slovakia.

License: GNU General Public License v3.0

PHP 84.63% JavaScript 0.76% Vue 0.38% SCSS 0.84% Blade 13.40%
eia environmental-impact-assessment eu european-union scraper slovakia watchdog politics environment open-government

eia-scraper's Introduction

Environmental Impact Assessment Scraper and Notifier

EIA project scraper, processor and notifier for Slovakia.

Features

  • Scrapes latest EIA projects and keeps their advanced info
  • Sends notifications with the custom filtered results to an email

Future plans

  • Generate prefilled documents and uploads them to Google Drive on-the-fly
  • Automatic sending of the generated documents (from template), if no action taken until deadline by email and snail mail.

Dependencies

Laravel 5.4

eia-scraper's People

Contributors

dependabot[bot] avatar nekromoff avatar pato1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

eia-scraper's Issues

nova funkcionalita: typ pouzivatela + pocet notifikacii

novy stlpec type do watchers

Tento vyuzijeme na odlisenie rozne typy sledovatelov - nekomercnych, komercnych, s limitom na pocet notifikacii mesacne, bez a pod. Zaroven potrebujeme evidovat pocet odoslanych notifikacii na jednotlivych watchers za urcite obdobie - nateraz dajme 3 mesiace (90 dni) retention, starsie sa mozu zmazat - tu stacia timestamps a pocet poslanych EIA notifikacii (pri viacerych spojenych do jedneho emailu sa rata kazdy EIA zaznam zvlast, napr 2 EIA projekty = pocet 2 v tabulke o odoslanych emailoch).

Nova tabulka watchers_log (?) moze mat takuto strukturu:

primary_id watcher_id count timestamps
1 326 2 2021-01-20 15:45:12

Typy uzivatelov nateraz:

  • 9999: unlimited (db migracia na zaciatku prideli kazdemu tento typ)
  • 1: basic/trial (5 notifikacii mesacne, nasledne sa uz emaily neposielaju)
  • 10: commercial, 10 notifikacii mesacne
  • ...dalsie urovne, zatial nedefinovane...
  • 100: commercial, bez obmedzenia poctu zaznamov

Pred kazdym rozoslanim notifikacii sa najprv skontroluje type vo watchers pre danu emailovu adresu a overi sa v novej tabulke so zaznamom pocet odoslanych notifikacii za poslednych 30 dni.

  • Ak je pocet mensi, ako limituje typ, posle sa notifikacia standardne
  • Ak je pocet mensi, ale zaroven je sucasnym zaslanim dosiahnuty (presiahnuty, ak dochadza k spojeniu viacerych), posle sa notifikacia standardne + upozornenie, ze pre dostavanie dalsich notifikacii si je potrebne zmenit program na vyssi
  • Ak je pocet vacsi ako limituje typ, notifikacia sa neposle

Unsubscribe all linka

Na koniec mailu pridat linku "unsubscribe all", ktora danu mailovu adresu unsubscribne zo vsetkych jej subscriptions/locations. Aj z tych, ktore v danom maile neboli obsiahnute.

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.