EricDiao / Project-ShanghaiTech-CS181-18Fall

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API entry point of FlightRadar24 for realtime flight data

EricDiao opened this issue · comments

The API entry point of Fr24 is at https://data-live.flightradar24.com/zones/fcgi/feed.js?bounds=31.13,29.51,102.28,106.22&faa=1&mlat=1&flarm=1&adsb=1&gnd=1&air=1&vehicles=1&estimated=1&maxage=14400&gliders=1&stats=1 .

It seems to have no auth or User-Agent limit. So use requests to crawl it in real time.

Example JSON data is as below. What we concerns is the entries with hash labels, the relationship between those data and our models is clear.

{"full_count":12712,"version":4,"1efe2f5b":["7809EE",30.8096,102.5471,265,32100,342,"2245","T-F6M","A319","B-6442",1545872077,"CKG","LXA","3U8633",0,0,"CSC8633",0,"CSC"]
,"1efe44cb":["780068",30.7039,102.5828,270,30100,357,"2137","T-F6M","A319","B-6046",1545872077,"CTU","BPX","CA4409",0,0,"CCA4409",0,"CCA"]
,"1efe4b4d":["7803F2",30.6800,103.6421,308,16825,321,"1513","T-F6M","A319","B-6175",1545872080,"CTU","LXA","3U8697",0,1792,"CSC8697",0,"CSC"]
,"1efe1da2":["780C9C",30.5557,103.9431,337,0,20,"7063","T-F6M","A320","B-1853",1545872046,"INC","CTU","CA403",1,0,"CCA403",0,"CCA"]
,"1efe4d7b":["781319",30.6136,103.9631,22,3400,160,"0000","T-F6M","A332","B-1046",1545872082,"CTU","LXA","TV9853",0,2304,"TBA9853",0,"TBA"]
,"1efe47b4":["78112B",30.5615,103.9864,104,3625,193,"0000","T-F6M","A321","B-8960",1545872082,"CTU","HAK","3U8751",0,1024,"CSC8751",0,"CSC"]
,"1efe4cd1":["7811E1",30.6971,104.0036,24,6250,233,"7454","T-F6M","A20N","B-8680",1545872085,"CTU","HDG","3U8425",0,3008,"CSC8425",0,"CSC"]
,"1efe4c32":["7810AC",30.7251,104.0756,63,7500,247,"7450","T-F6M","A320","B-8843",1545872057,"CTU","TEN","TV9901",0,2944,"TBA9901",0,"TBA"]
,"1efe0832":["78119A",30.0092,104.3110,2,34100,483,"4266","T-F6M","A320","B-8565",1545872083,"SYX","LHW","MU2190",0,64,"CES2190",0,"CES"]
,"1efe385f":["780DE7",30.2423,104.3901,13,31100,473,"3515","T-F6M","B738","B-1507",1545872083,"KMG","YCU","KY8239",0,0,"KNA8239",0,"KNA"]
,"1efe2bc6":["79A022",31.0781,104.5298,194,33075,406,"2520","F-EST","A320","B-2375",1545872081,"INC","KMG","MU2205",0,0,"CES2205",0,"CES"]
,"1efe1836":["781543",31.1209,104.7730,233,28025,345,"0052","F-EST","B738","B-206S",1545871813,"TYN","CTU","MU5233",0,0,"CES5233",0,"CES"]
,"1efe4442":["781247",29.7951,104.8031,161,26450,430,"7442","T-F6M","A20N","B-8890",1545872083,"CTU","CAN","CA4361",0,1728,"CCA4361",0,"CCA"]
,"1efe337b":["780B02",30.7337,104.8539,188,25600,393,"4022","F-EST","A319","B-6445",1545872077,"XIY","YBP","3U8537",0,0,"CSC8537",0,"CSC"]
,"1efe2c15":["7809D2",30.7134,105.0639,271,27600,369,"2246","T-F6M","A319","B-6441",1545872077,"CKG","BPX","TV9908",0,0,"TBA9908",0,"TBA"]
,"1efe4711":["7800CE",30.9540,105.4924,82,24275,484,"7455","T-F6M","A320","B-8498",1545872085,"CTU","NKG","MU2826",0,0,"CES2826",0,"CES"]
,"stats":{"total":{"ads-b":9787,"mlat":1091,"faa":812,"flarm":19,"estimated":967},"visible":{"ads-b":13,"mlat":0,"faa":0,"flarm":0,"estimated":3}}}

The FlightRadar24 realtime flight data crawler has been finished at /data_sourses/flightradar24Crawer.py.