hafas-client: PKP endpoint applies IP-based geoblocking

FetchError: request to https://mobil.rozklad-pkp.pl:8019/bin/mgate.exe? failed, reason: connect ETIMEDOUT 78.133.168.217:8019

Does anyone know if the endpoint just moved, or if it has been shut off? @juliuste @marudor

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 44 (24 by maintainers)

Commits related to this issue

Most upvoted comments

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. 😉

Ja nikogo nie reprezentuje tylko umiem czytać regulamin a jak nie jestem pewny interpretacji regulaminu to się pytam właściciela strony co autor miał na myśli i aby poprawił regulamin aby był jasny i przejrzysty.

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

A to jest jakiś zakaz?

Ż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

@derhuerst mobil.rozklad-pkp.pl is a comercial endpoint same like rozklad-pkp.pl is a comercial webpage etc… look there is ads and other - this is not PUBLIC webpage information! Official public Polish railroad information webpage is: https://www.portalpasazera.pl

Best Regards TaKeN

@takenek ja nie widze zadnych reklam, a strona jest publiczna:

Image

Image

to po co ten cyrk?

Pozdrawiam MaKiNdOtCc

@takenek

Dziele się grzecznie informacją, że łamiecie prawo polskie i jeszcze macie do mnie pretensje?

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

Dziele się grzecznie informacją, że łamiecie prawo polskie i jeszcze macie do mnie pretensje?

dobra, fajnie, dzięki za info, frytki do tego?

Hi, the solution actually is to use a specific UA – Dalvik/2.1.0

To 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.

PKP Informatyka zastrzega, iż zawarte w serwisie rozklad-pkp.pl oraz old.rozklad-pkp.pl informacje stanowią utwór w rozumieniu ustawy.

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:

(Responding in English because I don’t speak Polish.)

I think we can agree that hafas-client by itself is merely a tool, used to access many different HAFAS endpoints. What is considered in line with or in violation of the terms of service of a particular HAFAS endpoint depends on who uses it and what for.

The current state of access to Polish static (and realtime!) transport data is irrelevant for this PR, just like the question if mobil.rozklad-pkp.pl’s terms of service are in line with EU regulations, and just like the question what constitutes mass data retrieval. These are important discussions to have, but please have them somewhere else (e.g. in #opentransport:matrix.org, or in public-transport/ideas).

@takenek a za to to nieironicznie dziękuję

@derhuerst I’m repeating this because it looks like you didn’t see what I wrote. mobil.rozklad-pkp.pl is a commercial endpoint, just like rozklad-pkp.pl is a commercial webpage. You can see ads and other commercial content there – this is not public railway information!

The official public Polish railroad information webpage is: https://www.portalpasazera.pl/

Since mobil.rozklad-pkp.pl is not an official public API but rather a commercial service, I kindly ask you to consider removing support for this endpoint from the GitHub project to avoid potential issues related to unauthorized usage.

Let me know if you need more details.

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 curl call or short Python script, that demonstrates that it works?

because this is illegal and braking law

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:

Strictly speaking, permission is necessary to use this library with a HAFAS “mobile” endpoint.

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).