The LAB #117: Scraping club data and results from Fussball.de The Web Scraping Club's newsletter The LAB #117 published a guide to scraping club data and match results from fussball.de, the German Football Association (DFB) portal, with code in the `117.fussball_de_scraper` directory of the TheWebScrapingClub/thelab GitHub repository. The club directory has no anti-bot protection — pages carry `x-varnish` and `x-azure-ref` headers from a Varnish cache behind Azure Front Door and send no `Set-Cookie` headers — and a scraper using a Chrome user agent and German `Accept-Language` header ran at 48 requests per second without a block. Match dates, kick-off times, scores and referee names are obfuscated behind a custom web font, which the guide decodes first with a shortcut and then with a method that survives removal of that shortcut. Having a look at The Scraping Club's Google Search Console, I’ve seen hundreds of searches for how to scrape club data from fussball.de. Of course, given the name of this newsletter, it was ranking pretty high in the results, even if not particularly relatable, but this number of requests made me curious, and I want to dig deeper into this website. Give your AI a web data layer – Decodo’s Web Data API https://visit.decodo.com/B5JPeJ turns any site into clean, structured data your models can actually use. To be honest, when I started, I expected a hard target. If everyone in Germany is looking for a solution to scrape it, it should be difficult to do. Well, it wasn’t, at least for the club directory: there’s no anti-bot at all, and the data is available in plain HTML from endpoints anyone can call. But the interesting part is somewhere else, on match dates and scores. They are hidden behind a custom web font, and the HTML you download contains characters that don’t have any meaning until the browser draws them. So the article has two parts: in the first one, we’ll scrape the club directory, which is what people search for. In the second one, we’ll see how to get the results, where we decode the font, first the easy way and then in a way that keeps working if the site removes the shortcut we use today. All the code is in The Lab repository https://github.com/TheWebScrapingClub/thelab , in the 117.fussball de scraper directory. How fussball.de is built If you want data about German amateur football, there’s basically one place where you can find it: fussball.de, the portal of the German Football Association DFB . Every registered club, from the Bundesliga down to the last Kreisliga team, has a profile there, and every league has its fixtures and results there. So, before writing any code, I mapped the layers between my client and the data. The first layer is the delivery. Every response carries x-varnish and x-azure-ref headers, so pages come from a Varnish cache behind Azure Front Door. I looked for the usual signs of an anti-bot challenge scripts in the HTML, a 403 on the first request, cookies set by the server and found none. The homepage, a club profile and the search endpoint don’t send a single Set-Cookie header. Even Wappalizer said there was nothing installed so I tried a basic test: I fetched a club page with python-requests and its default user agent python-requests/2.33.0 , no custom headers : 200, full content. The scraper we’ll create later uses a Chrome user agent and a German Accept-Language header see http client.py , and with those it ran at 48 requests per second without a block. Tired of getting blocked while scraping the web? ScrapingBee https://www.scrapingbee.com/?utm source=sponsored newsletter&utm medium=email&utm campaign=the web scraping club handles proxies, browsers, anti-bot systems, and retries so you can focus on your data. Get clean Markdown, JSON, or HTML from the web with up to a 99.9% success rate. ScrapingBee is SOC 2 Type II and GDPR compliant, and trusted by 4,000+ developers. The second layer is how the data is delivered. The front end is an AngularJS application all those data-ng- attributes , but almost everything is rendered on the server. League tables, club profiles and matchday pages arrive as complete HTML. A few blocks are loaded later from endpoints with an ajax. prefix ajax.club.prev.games , ajax.actual.table , ajax.search.club.loadmore , and they return HTML fragments, sometimes wrapped in JSON. The third layer is the obfuscation, and it’s the only real obstacle; it covers dates, kick-off times, scores, and referee names in fixtures. Part 1: the club directory Finding the search endpoint There’s no public list of clubs, but there’s a club search at /suche.verein , with two fields: club name and postal code PLZ or city. My first try was the obvious one, /suche.verein?plz=84428 , and it returned “Keine Ergebnisse gefunden” no results . The form has a data-rest-form attribute, so I opened the site’s JavaScript bundle script.js , 2.3 MB and found the directive behind it: function onFormSubmit event { // Don't submit the form event.preventDefault ; // Get prepared URL with REST data var url = AjaxDataService.getDataUrl attributes.action, collectFormData , true ; // Do the actual request requestGET url ; } The form fields become path segments, the same /-/key/value style that every fussball.de URL uses. So the URL the site really sends is /suche.verein/-/plz/84428 , and it returned two clubs. Side note: later in the day the query string version returned the same two clubs too, and I can’t say why it didn’t work the first time. I stick with the path form, because it’s what the site’s own form sends. With a city it’s more interesting: /suche.verein/-/plz/München says “167 Treffer” 167 results but shows only 20, with a “Mehr laden” load more button. The button is a form, and its attributes contain the real endpoint: