public
Last active

Pigeons config files

  • Download Gist
dw.json
JSON
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
{
"code": "dw",
"stops": ["jakdojade", "fQ"],
"server": "http://www.um.wroc.pl",
"home": "/rozklady/linie/index.html",
"get": {
"lines": [".sz a[href$=html]"],
"timetables": ["a[href*=_]"],
"line": "[class^=linia_]",
"stop": [".wariant > thead td[colspan]", ":(.+)»"],
"destination": [".wariant > thead td[colspan]", "»(.+)(null|Słupek)"],
"context": ".wariant table tr *",
"days": "td[colspan]",
"hours": "th",
"minutes": "td:not(:contains('&nbsp'))"
}
}
kr.json
JSON
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
{
"code": "kr",
"stops": ["jakdojade", "BOI"],
"server": "http://rozklady.mpk.krakow.pl",
"home": "/linie.aspx",
"encoding": "ISO-8859-2",
"get": {
"lines" : [ "a[href$=htm]", ["rw", "w0"] ],
"timetables": [ "a[href][target='R']" ],
"opposite" : "a[target='_parent']:not(:contains(*))",
"valid_from": [ "table[border=1] tr:last-child b:first", "(\\d{2}.\\d{2}.\\d{4})" ],
"line" : "table tr:first-child table tr:first-child td:first-child font b",
"stop" : "table tr:first-child table tr:first-child td:first-child+td font:first-child b",
"route" : ["table tr:first-child table tr:first-child td:first-child+td font:last", "TRASA: (.+)"],
"context" : "table[border=1] td",
"days" : "td[colspan=2]:has(b > font)",
"hours" : "td[align]",
"minutes" : "td[nowrap]"
}
}
po.json
JSON
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
{
"code": "po",
"stops": ["jakdojade", "Po"],
"server": "http://www.mpk.poznan.pl",
"home": "/rozklad-jazdy",
"get": {
"lines": ["#content *:not(strong) > a"],
"timetables": ["#content ul:nth-child(2) > li > a"],
"valid_from": ["#MpkUp2Date", "od:(\\d{4}-\\d{2}-\\d{2})"],
"line": ".MpkLineNum > a",
"stop": ".MpkBoardStop strong:first-child",
"destination": ".MpkBoardStop strong:not(:first-child)",
"context": "#MpkBoard > table:nth-child(2) tr > *",
"days": "th[colspan=2]",
"hours": ".MpkHours",
"minutes": ".MpkMinutes"
}
}
sk.json
JSON
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
{
"code": "sk",
"stops": "kzkgop",
"server": "http://rozklady.kzkgop.pl",
"home": "/index.php?co=rozklady",
"get": {
"lines" : ["#wszystkie_linie a"],
"timetables" : [".td_przystanek a", ["&", "&"]],
"valid_from" : "#lenegnda_data b",
"line" : "#tabliczka_topinfo a:first",
"stop" : "#tabliczka_topinfo h2 a:first",
"context" : "#tabliczka_przystankowo tr *:not(span, td)",
"destination": ["#tabliczka_topinfo h3", "Kierunek: (.+)"],
"days" : "th",
"hours" : "b",
"minutes" : "a"
}
}
zs.json
JSON
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
{
"code": "zs",
"stops": ["jakdojade", "\\$g"],
"server": "http://www.zditm.szczecin.pl",
"home": "/rozklady/listalinii.html",
"encoding": "ISO-8859-2",
"get": {
"lines" : ["a[class^=lista]"],
"timetables" : ["table table a"],
"valid_from" : ["table table table tr[valign=top] > td > b:last-child:not(:has(b))", "(\\d{2}\\.\\d{2}\\.\\d{4})"],
"line" : "[class^=numer]",
"stop" : ".przystanek b",
"destination" : "table:last td:last",
"context" : "table[border=1] td",
"days" : ".tytul",
"hours" : "td:not([class]), td.godz_noc",
"minutes" : ".min, .min_noc"
}
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.