Jump to content

Search the Community

Showing results for tags 'realtime'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General Discussion
    • Website Management and Coding
    • Technology and the Internet
    • Philosophy, Politics, and Science
    • Art and Entertainment
    • Other Discussion
  • HelioHost
    • Questions
    • Customer Service
    • How You Can Help
  • HelioNet
    • News
    • Contact HelioNet

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. For my master thesis I need realtime GTFS data which can be retrieved and parsed with python. I have this script working locally. When executed here i get a 500 error. (Exec format error: exec of '***/cgi-bin/gtfsrealtime.py' failed: ***/cgi-bin/gtfsrealtime.py) Could it be that the modules from the google packages I'm importing are missing? (I've read on the forum that the requests package should be installed) Would it be possible to have them installed if so? (I am on Johnny using python 2.7) Thanks in advance! from google.transit import gtfs_realtime_pb2 from google.protobuf import json_format import requests feed = gtfs_realtime_pb2.FeedMessage() response = requests.get('https://***') feed.ParseFromString(response.content) json = json_format.MessageToJson(feed) f = open("test.json", "w") f.write(json) for entity in feed.entity: if entity.HasField('trip_update'): print entity.trip_update f.close()
×
×
  • Create New...