Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add initial Israel sources #476

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions feeds/il.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"maintainers": [
{
"github": "yotamN",
"name": "Yotam Nachum"
}
],
"sources": [
{
"name": "busofash",
"type": "http",
"url": "https://opendatasource.tel-aviv.gov.il/opendata_ducaments/gtfs.zip"
},
{
"name": "busofash",
"spec": "gtfs-rt",
"type": "url",
"url": "https://api.busnear.by/external/gtfsrt/export",
"http-options": {
"headers": {
"authorization": "tlv_848e1b42-c0c2"
}
}
},
{
"name": "Israel-MOT",
"type": "http",
"url": "https://gtfs.mot.gov.il/gtfsfiles/israel-public-transportation.zip",
"http-options": {
"headers": {
"user-agent": "Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although the HTTP RFCs state that the header field names should be case-insensitive, is this always true in practice? I think I've mostly seen "User-Agent" being used.
Maybe it could be worth trying to changing to that?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might need to make https://github.com/public-transport/transitous/blob/main/src/fetch.py#L60 case-insensitive as well then.

},
"ignore-tls-errors": true
},
"fix": true,
"skip": true
},
{
"name": "Sababus",
"type": "http",
"url": "https://yotam.net/transport/gtfs/sababus.zip",
"http-options": {
"headers": {
"authorization": "il_4X5R7tClJAK1"
}
},
"fix": true
}
]
}
Loading