Skip to content

Instantly share code, notes, and snippets.

@peterstadler
peterstadler / check-gnds.sh
Last active December 10, 2019 07:36
Check Beacon File for outdated IDs
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Script for checking GND IDs.
# 1. Grab all GNDs from the beacon file
# 2. Check every GND by making a HEAD request and see whether the returned status code is 303
import httplib
from urlparse import urlparse