innint
This commit is contained in:
parent
e6fd7a33c1
commit
d20c08a8f1
|
@ -0,0 +1 @@
|
|||
.venv
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,11 @@
|
|||
from google.transit import gtfs_realtime_pb2
|
||||
import requests
|
||||
from protobuf_to_dict import protobuf_to_dict
|
||||
feed = gtfs_realtime_pb2.FeedMessage()
|
||||
response = requests.get(
|
||||
'https://svc.metrotransit.org/mtgtfs/vehiclepositions.pb', allow_redirects=True)
|
||||
feed.ParseFromString(response.content)
|
||||
|
||||
zet_dict = protobuf_to_dict(feed)
|
||||
|
||||
print(zet_dict)
|
Loading…
Reference in New Issue