aboutsummaryrefslogtreecommitdiffstats
path: root/Aggrofile
blob: afd6bb7a4c26c7cf1ca513a79dffd4863d2460fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
    "db_path": "db.json",
    "server": {
        "host": "0.0.0.0",
        "port": 8080
    },
    "email_alerter": {
        "api_url": "${AGGRO_EMAIL_ALERT_API_URL}",
        "api_headers": {
            "Authorization": "${AGGRO_EMAIL_ALERT_API_AUTH}",
            "Content-Type": "application/json"
        },
        "email_from": "${AGGRO_EMAIL_ALERT_FROM}",
        "email_to": [
            "${AGGRO_EMAIL_ALERT_TO}"
        ]
    },
    "plugins": {
        "aaniwalli_scraper": {
            "plugin": "ScraperSourcePlugin",
            "schedule_expr": "schedule.every(10).seconds",
            "url": "https://www.ääniwalli.fi/",
            "selector_post": "page.select('article')",
            "selector_title": "post.select('h1')",
            "selector_date": "post.select('.date')",
            "selector_link": "post.select('a.event-link')",
            "selector_description": "detail_page.select('.right-pane')",
            "selector_image": "post.select('.event-link > .image')"
        },
        "aaniwalli_feed": {
            "plugin": "FeedSinkPlugin",
            "feed_id": "aaniwalli",
            "feed_title": "Ääniwalli",
            "feed_link": "https://www.ääniwalli.fi/",
            "feed_description": "Ääniwalli events"
        },
        "barloose_scraper": {
            "plugin": "JsonApiSourcePlugin",
            "schedule_expr": "schedule.every(10).seconds",
            "url": "https://barloose.com/wp-json/tribe/events/v1/events",
            "selector_post": "data['events']",
            "selector_title": "post['title']",
            "selector_link": "post['url']",
            "selector_date": "post['start_date']",
            "selector_description": "post['description']",
            "selector_image": "post['image']['url']",
            "show_image_in_description": true
        }
    },
    "graph": {
        "aaniwalli_scraper": [
            "aaniwalli_feed"
        ]
    }
}