Wszystkie produkty

Bot TCG Cheap

TCG Cheap porównuje ceny produktów Pokémon TCG w polskich sklepach internetowych i w kilku sklepach za granicą. Nasz bot czyta publiczne listy produktów tych sklepów, żeby pokazać ich ceny i dostępność, zawsze z linkiem do strony produktu w sklepie.

  • 275 sklepów
  • 2:30 UTC, raz na dobę
  • 15 s przerwy na Shopify

Jak go rozpoznać

User-Agent
TcgCheap/1.0 (buying guide)
Podpis Web Bot Auth
Signature-Agent: "https://tcg.cheap"
Klucze publiczne
https://tcg.cheap/.well-known/http-message-signatures-directory

Co i jak często czyta

  • Listy produktów czyta raz na dobę, w nocy (od 2:30 UTC), czasem też w dzień, gdy sprawdzamy poprawkę.
  • Czyta tylko publiczne listy produktów (feed produktów, API sklepu albo strony kategorii). Zdjęcia produktów pobiera osobno, po jednym. Nie loguje się, nie dodaje nic do koszyka i nie składa zamówień.

Co robimy z danymi

  • Bierzemy nazwę produktu, cenę, dostępność, kod EAN (gdy sklep go podaje) i adres strony produktu, i pokazujemy je obok tego samego produktu z innych sklepów, z linkiem do Twojego sklepu.
  • Zdjęcia produktów kopiujemy, zmniejszone, na nasz serwer, żeby nasze strony nie pobierały ich z Twojego. Gdy kopia się nie uda, próbujemy ponownie najwyżej raz na godzinę.
  • Nie sprzedajemy tych danych ani nie przekazujemy ich innym firmom.

Bot policy (English)

Operator
Alergeek Ventures, the operator of tcg.cheap. Contact: [email protected].
User-Agent
TcgCheap/1.0 (buying guide), robots.txt token TcgCheap.
Signatures
Every request the bot makes to a shop (product feeds, store APIs, category and product pages), to a wholesaler's price list, to robots.txt itself and for product and card images is signed with Web Bot Auth (HTTP Message Signatures, RFC 9421, Ed25519) and carries Signature-Agent: "https://tcg.cheap". The public key is published at https://tcg.cheap/.well-known/http-message-signatures-directory .

robots.txt

  • Before the bot reads a host it fetches https://<host>/robots.txt (signed, with the same User-Agent) and requests only paths the rules allow. The bot does not read a host or a path robots.txt disallows.
  • The bot uses the group whose user-agent token is TcgCheap (compared case-insensitively) and, only if there is none, the * group. Within the group the longest matching Allow or Disallow pattern wins and Allow wins a tie; * and a final $ in a pattern work as RFC 9309 describes.
  • A Crawl-delay in that group is a minimum pause between requests to the host: the larger of it and the bot's own pause, counted from the last request to that host of any kind. A long Crawl-delay is a pause, not a refusal: the bot waits up to five minutes in place; for a longer one it continues later, after the pause, and gives the read up if the pause would end after the next nightly run.
  • The status of robots.txt follows RFC 9309. A 2xx answer is parsed (the first 512 KiB are read, the rest is ignored). Any 4xx answer other than 429 (404, 410, and also 401 and 403) means there are no rules: everything is allowed. A challenge response in place of robots.txt means the host refuses the bot: it is not read. When robots.txt cannot be read (a 429 or 5xx answer, a timeout, a network error, any other status), the rules fetched earlier are used for up to 24 hours after they were fetched, and the bot asks again after the Retry-After or an hour; without such rules the host is not read, and the read is tried again later that night. Rules are fetched again at most once an hour.

Failures, refusals and pacing

  • After a 401, a 403 or a challenge response (for example Cloudflare's cf-mitigated: challenge) the bot stops reading that shop at once. It does not repeat the request, does not try another host, address or identity, and asks again only at the next regular run. A host that refuses an image is not asked for another image for an hour, and a redirect an image request meets is checked against the robots.txt rules of its target before it is followed.
  • Retry-After on a 429 or 503 is honoured in full. A short one (up to 10 seconds, a minute for Shopify) is waited out and the request is repeated once; with a longer one the bot does not ask the host again before the time has passed, and gives the read up if that time is after the next nightly run. A 429 without Retry-After is repeated once after 10 seconds, then after about 20 and 40 minutes.
  • Requests to one shop are made one at a time, at least one second apart (15 seconds on Shopify, 5 seconds for the wholesaler's price list), counted from the last request to that host of any kind, and a read runs once a day. Images are downloaded one by one, spaced by the host's Crawl-delay where robots.txt names one, and never closer to a shop request than its pause.

What is stored

  • Product titles, prices, availability, barcodes where the shop gives them, product page addresses and product images (resized copies on our storage). The bot does not log in, does not use carts or checkout and does not read personal data.

Blocking the bot

  • Add User-agent: TcgCheap with Disallow: / to robots.txt, or write to [email protected]. The bot checks robots.txt before every run.

Nie chcesz, żebyśmy czytali Twój sklep?

Napisz do nas z nazwą sklepu, a przestaniemy go czytać i usuniemy go z porównania. Pod tym adresem odpowiemy też na pytania o bota.

[email protected]

TCG Cheap prowadzi Alergeek Ventures.