android - HTML parser to create GTFS formatted data -
there transit agency, doesn't provide gtfs formatted transit schedule data. make android application, can search in it, format useful. transit schedule data has website, seems hard separate useful things.
<td class="b stoppoint p0" background="nline.gif"><a href="line.cgi?id=1&dir=back&zero=15901&city=so&term=20141214"><img src="coming.gif" class="stoppoint" alt="a megállóhoz tartozó indulási időpontok megjelenítéséhez kérem, kattintson ide!" /></a></td> <td class="b stoptime p0">2</td> <td class="b stoppeaktime p0">2</td> <td class="b stopname p0" colspan="1">frankenburg úti aluljáró</td> <td class="b stoptransfer p0"><img src="transfer.gif" class="icontransfer" alt="Átszállási lehetőség felsorolt autóbuszvonalakra" /> <a href="line.cgi?id=10&dir=to&zero=1590&city=so&term=20141214">10</a>, <a href="line.cgi?id=10y&dir=to&zero=1590&city=so&term=20141214">10y</a></td>
maybe existing parser purpose helpful. there working ones?
ask transit agency if there way can provide schedule data in more meaningful format. might have other data format better have.
otherwise, you'll have write custom scraper/parser this. parsing html using python's beautifulsoup library, there number of ways this.
Comments
Post a Comment