hafas-client: PKP endpoint applies IP-based geoblocking
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 44 (24 by maintainers)
Commits related to this issue
- skip PKP E2E/integration tests, fix Nah.sh & SVV tests see #184 [ci skip] — committed to public-transport/hafas-client by derhuerst 6 years ago
- skip PKP E2E/integration tests, fix Nah.sh & SVV tests see #184 [ci skip] — committed to public-transport/hafas-client by derhuerst 6 years ago
- adapt E2E/integration tests to endpoint changes - skip PKP tests (#184) - Nah.sh, ÖBB, SVV: adapt tests to endpoint changes - Nah.sh, RSAG, VBN: skip tests due to endpoint changes - remove dead code ... — committed to public-transport/hafas-client by derhuerst 6 years ago
- adapt E2E/integration tests to endpoint changes - skip PKP tests (#184) - Nah.sh, ÖBB, SVV: adapt tests to endpoint changes - Nah.sh, RSAG, VBN: skip tests due to endpoint changes - remove dead code ... — committed to public-transport/hafas-client by derhuerst 6 years ago
- PKP: fix by randomizing the User-Agent 🐛 [todo:fix e2e] fixes https://github.com/public-transport/hafas-client/issues/184#issuecomment-2730174844 — committed to public-transport/hafas-client by derhuerst 2 years ago
- PKP: fix by randomizing the User-Agent 🐛 fixes https://github.com/public-transport/hafas-client/issues/184#issuecomment-2730174844 see also https://github.com/public-transport/hafas-client/pull/336 — committed to bergmannjg/hafas-client by derhuerst 2 years ago
Witam . Wszystcy bioracy udzial w watku i zostawiający reakcje już są namierzani.
To PKP informatyka łamie polskie prawo utrudniając dostęp do informacji sektora publicznego. Regulamin strony NIGDY nie będzie powyżej polskiego prawa 😉
Nie mylmy łamania regulaminu strony/aplikacji/ToS, z łamaniem prawa. Nawet jeśli niektóre podmioty by chciały by ich regulamin był prawem. 😉
Bardzo ładnie, ale dla czego Pan nie pisze że ma relacje biznesowe z PKP informatyka? https://heckin.how/notes/9y8lbh3ckpzbia5c
“Nie jestem prawnikiem, ale nie ma tu żadnej wzmianki o serwisie mobil.rozklad-pkp.pl”
Teraz już jest.
Pozdrawiam
@takenek całą tą konwersację mam na mailu, nie wiem po co usunąłeś te wpisy
Żadnych zakazów, tylko jeśli ktoś ma konflikt interesów, to się o tym otwarcie mówi, a nie „ja tylko umiem czytać regulamin”.
@takenek ale to jest chore. Nie ma legalnego źródła na dostęp do rozkładów. Z portalu pasażera też nie można pobierać rozkładów według waszego głupiego regulaminu. Ile kosztuje dostęp do legalnego źródła danych?
PKP HAFAS now needs () after the UA, eg
Dalvik/2.1.0 ()I think it would be a good idea to include some real device in parenthesis, so that banning using UAs would also ban real devices. Even better if we could pick a random UA from a list of devices, so they have to switch to a different method.
@derhuerst could you reopen?
#336 has been merged, so I’ll close this. All parties that are legally allowed to do so can now access the HAFAS endpoint using
hafas-client. We cannot (and will not) do anything about the IP blocking unfortunately.przypominam, że pan Marek to czyta xD
@takenek ja nie widze zadnych reklam, a strona jest publiczna:
to po co ten cyrk?
Pozdrawiam MaKiNdOtCc
Prośba o podstawę prawną
Usunąłem co napisałem, bo nie ma sensu Wam tłumaczyć, bo znacie się lepiej. Dla mnie temat już zamknięty, chciałem pomóc. Milego!
@takenek
dobra, fajnie, dzięki za info, frytki do tego?
Hi, the solution actually is to use a specific UA –
Dalvik/2.1.0To clarify, the comment below is an answer to another user’s comment which has been deleted since then.
Do you legally represent PKP Informatyka, and believe this repository infringes your copyright? If so, please name yourself here, and then the repo owners can work on solving the issue. If you are not a copyright owner (or owner’s authorized representative), then you cannot demand removing a part of code on behalf of third party.
p.s.: FYI, I’m fluent in Polish so there’s no need for translation.
Nie jestem prawnikiem, ale nie ma tu żadnej wzmianki o serwisie mobil.rozklad-pkp.pl
@takenek co ci tak zależy? serio xD
from https://github.com/public-transport/hafas-client/pull/336#issuecomment-2659678869:
@takenek a za to to nieironicznie dziękuję
rozkład jazdy
@fwam I’m having trouble getting it to work (from a German landline connection). Can you post a working command here, e.g. a
curlcall or short Python script, that demonstrates that it works?I’d kindly ask you to refrain from using terms like “illegal” unless you can back it up by the reference to the corresponding law paragraph. There’s a huge difference in breaking app/site Terms of Service and breaking the law.
If you haven’t noticed the README contains the following statement:
In that sense Rozklad PKP endpoint is not different to any other HAFAS mobile endpoint, and there’s absolutely no reason to remove it from the repo. Before using any of those endpoints to get the data one should obtain a permission from the corresponding data provider, otherwise an access might be restricted/banned. So, there are two solutions of the issue: either to delete this repository completely, or to notify the users of the library about the need of requesting permission from a data provider (which has been done already in the README file).