Skip to content

cagataycali/university-news-notifier

Repository files navigation

📚 University News Notifier

Bot API @UniversityNewsNotifierBot @cagataycali @emrfs

When any announcement at your university, notifier will notify you via telegram.

Node.js module to interact with official Telegram Bot API. A bot token is needed, to obtain one, talk to @botfather and create a new bot.

👍 Usage

Start conversation with your bot

init

Bot will notify you when any announcement at your university

news

✨ Contribution Guideline

This guide will show you how to build and contribute to the project.

Clone and install dependencies

git clone https://github.com/cagataycali/university-news-notifier.git
cd university-news-notifier
npm install

Add your parser in sites directory

Example parser json file,

{
    "university": "Pamukkale Üniversitesi",
    "faculity": "Computer Engineering",
    "home":"http://www.pamukkale.edu.tr",
    "url": "http://www.pamukkale.edu.tr/bilgisayar/tr/haberler",
    "scrape": {
        "news": {
            "listItem": "tr",
            "name": "announcement",
            "data": {
                "url": {
                    "selector": "a.tumunuGorLink",
                    "attr": "href"
                },
                "title": "div.tumunuGorBaslik",
                "publishedAt": "div.tumunuGorTarih"
            }
        }
    }
}

Even you can add your rss listener,

{
    "university": "Yildiz Teknik Üniversitesi",
    "faculity": "Computer Engineering",
    "rss": "https://ytuce.maliayas.com/?type=rss"
}

Also you can add your university parser with native javascript,

Check out:

sites/kou.js

Update university list

Check out here

Test your parser

Check out here

Run end to end test for results

npm run test

☁️ Deploy on your own notifier

Deploy

⚡ Status

University Crawling Site Status
Anadolu Universitesi https://www.anadolu.edu.tr/duyurular OK
Boğaziçi Universitesi http://bogazici.edu.tr/tr-TR/Content/Duyurular/Duyurular OK
Dokuz Eylül http://www.eng.deu.edu.tr OK
Ege Üniversitesi http://bilmuh.ege.edu.tr/ OK
Eskişehir Osmangazi Üniversitesi https://www.ogu.edu.tr OK
İstanbul Teknik Universitesi http://www.itu.edu.tr/duyuru OK
Ondokuz Mayıs Universitesi http://www.omu.edu.tr/tr/tum-haberler OK
Pamukkale http://www.pamukkale.edu.tr/bilgisayar OK
Yildiz Technical https://ytuce.maliayas.com/ OK

Lets parse your university feeds 😈

Or maybe help us for rss parsing feature.

Even you can support with your server, we don't want run on heroku.

:octocat: Contributors

Hosting backed by PlusClouds

Thanks for sponsorships 👍

Backed by PlusClouds