Skip to content

Instantly share code, notes, and snippets.

View pjcunningham's full-sized avatar

Paul Cunningham pjcunningham

  • Oxfordshire, United Kingdom
View GitHub Profile
@pjcunningham
pjcunningham / extract_country.py
Last active December 24, 2020 18:07
Extract a specify country's locations from openweathermap city list. Very fast.
# coding: utf-8
__author__ = 'Paul Cunningham'
__copyright = 'Copyright 2020, Paul Cunningham'
from jsonstreams import Stream
from jsonstreams import Type
import json
import ijson
from decimal import Decimal