Skip to content

Instantly share code, notes, and snippets.

View brucebolt's full-sized avatar

Bruce Bolt brucebolt

View GitHub Profile
@brucebolt
brucebolt / cop26.atom
Created June 29, 2022 12:26
Example atom feed rendered by Collections
<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-GB" xmlns="http://www.w3.org/2005/Atom">
<id>tag:collections.dev.gov.uk,2005:/government/topical-events/cop26</id>
<link rel="alternate" type="text/html" href="https://www.gov.uk/government/topical-events/cop26"/>
<link rel="self" type="application/atom+xml" href="http://collections.dev.gov.uk/government/topical-events/cop26.atom"/>
<title>COP26 - Activity on GOV.UK</title>
<author>
<name>HM Government</name>
</author>
<updated>2022-06-28T12:15:01Z</updated>
@brucebolt
brucebolt / compare-top-5000.py
Last active March 28, 2019 15:46
Compare top 5000 GOV.UK search results between ES2 and ES5
import requests
import sys
import urllib
print "Keyword\tPosition\tMatch\tES2 Result (rummager)\tES5 Result (search-api)"
counter = 1
f = open('top_5000_search_terms.csv', 'r')
for keyword in f: