diff --git a/slack-bot/traffic-scraper/prd/.gitignore b/slack-bot/traffic-scraper/prd/.gitignore new file mode 100644 index 0000000..c18dd8d --- /dev/null +++ b/slack-bot/traffic-scraper/prd/.gitignore @@ -0,0 +1 @@ +__pycache__/ diff --git a/slack-bot/traffic-scraper/prd/12-10-2019_16:13:43.json b/slack-bot/traffic-scraper/prd/12-10-2019_16:13:43.json new file mode 100644 index 0000000..4929ad2 --- /dev/null +++ b/slack-bot/traffic-scraper/prd/12-10-2019_16:13:43.json @@ -0,0 +1 @@ +["START", "Did someone say M62!? \ud83d\ude27 Let's check the latest updates from Highways England as of 16:13:42! \ud83d\ude93\ud83d\udea8", "There are currently no reported congestion incidents on the M62 \ud83e\udd14", "There are currently 1 reported accident incidents reported on the M62 \ud83d\ude31", "Location : The M62 westbound between junctions J22 and J21 . \nLane Closures : The hard shoulder and lane 1 are closed. \nReason : Road traffic collision. \nStatus : Currently Active. \nTime To Clear : The event is expected to clear between 17:00 and 17:15 on 12 October 2019. \nReturn To Normal : Normal traffic conditions are expected between 17:00 and 17:15 on 12 October 2019. \nLanes Closed : There is one of three lanes closed.", "Hey Andy, maybe flying would be quicker? \ud83d\ude81", "END"] \ No newline at end of file diff --git a/slack-bot/traffic-scraper/prd/pullTrafficInfo.py b/slack-bot/traffic-scraper/prd/pullTrafficInfo.py index 21351c1..f44ec19 100644 --- a/slack-bot/traffic-scraper/prd/pullTrafficInfo.py +++ b/slack-bot/traffic-scraper/prd/pullTrafficInfo.py @@ -186,7 +186,7 @@ class getTrafficInfo(object): return self -# inst = getTrafficInfo.getTrafficURL('M62').findIncidents() \ -# .getIncidentInformation().generateOutput() -# for i in inst.output: -# print(i) +inst = getTrafficInfo.getTrafficURL('M62').findIncidents() \ + .getIncidentInformation().generateOutput() +for i in inst.output: + print(i)