Taking a quick (heavily adblocked) look, they're relying on the JSON exposed on the petitions site.
It breaks down the number of signatures by country. For example, it's claiming 250 sigs from Finland
But, what Guido happily ignores is that British Citizens live across the world, or may be out of country on business.
But, ignoring that:
#!/usr/bin/env python# -*- coding: UTF-8
import json
import urllib2
url='https://petition.parliament.uk/petitions/241584.json'
response = urllib2.urlopen(url)
s=response.read()
p=json.loads(s)
print(p["data"]["attributes"]["signature_count"])
x=0
y={}
for country in p["data"]["attributes"]["signatures_by_country"]:
if country["code"] <> "GB":
x=x+country["signature_count"]
y[country["name"]] = country["signature_count"]
print x
Currently gives:
848031
34333
So that's 34,000 out of nearly 850,000. Ignoring the fact some of those probably are citizens, as well as the fact I've only factored in GB so may well have missed out some British Dependancies (like Gibraltar) who will be just as affected.