nekromoff / eia-scraper Goto Github PK
View Code? Open in Web Editor NEWEIA Scraper - European Union Environmental Impact Assessment project scraper, processor and notifier for Slovakia.
License: GNU General Public License v3.0
EIA Scraper - European Union Environmental Impact Assessment project scraper, processor and notifier for Slovakia.
License: GNU General Public License v3.0
Go through past projects up to certain date (e.g. -10 days).
toto suvisi so #40, ale zatial to nemam premyslene, davam to sem ako zaklad, neskor rozsirim
81101 = Bratislava I
etc.
https://documentation.mailgun.com/en/latest/user_manual.html#webhooks
watchers
(any existing record with that email).Use signed webhook to verify Mailgun: https://documentation.mailgun.com/en/latest/user_manual.html#webhooks
Currently, one email notification is sent per project
to allow preset payments for the service
+implement Mailgun API to send emails, if configured
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.
some users enter quotes around locality, remove them
to automatically create template documents
Notification email is currently sent out as many times as watcher searches match project region/district/locality.
OSM + location point per each EIA project
zrusme u opakujucu sa sekciu: "Tento email dostavate...." pri linku na odhlasenie zo vsetkeho.
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:
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.
When sending the notification email, add date or name of the EIA project to subject (to prevent Gmail / email client from grouping all EIA notifications).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.