Created
March 25, 2011 20:43
-
-
Save Stanley/887597 to your computer and use it in GitHub Desktop.
Pigeons config files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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(' '))" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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]" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment