README is empty
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import json | |
import dataset | |
import unicodecsv | |
from datetime import datetime | |
engine = dataset.connect('postgresql://localhost/opennames.org') | |
account_tbl = engine['account'] | |
accounts = {a.get('id'): a for a in account_tbl} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
import os | |
import shutil | |
import requests | |
import tempfile | |
from urllib import urlretrieve | |
from urlparse import urljoin | |
from lxml import html | |
AUTH = (os.environ.get('DOCCLOUD_USER'), |
README is empty
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commodity | |
id | |
label | |
concession_type | |
id | |
label |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!DOCTYPE rdf:RDF [ | |
<!ENTITY owl "http://www.w3.org/2002/07/owl#" > | |
<!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" > | |
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" > | |
<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" > | |
]> | |
<rdf:RDF xmlns="http://pudo.org/celestial-emporium#" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
from pprint import pprint | |
#from cubes.model import Cell | |
from openspending.core import create_app | |
from openspending.model import Dataset | |
app = create_app() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from cubes.providers import ModelProvider | |
from cubes.model import Cube, Measure, MeasureAggregate, create_dimension | |
from cubes.backends.sql.store import SQLStore | |
from cubes.errors import NoSuchCubeError, NoSuchDimensionError | |
from cubes import Workspace | |
from openspending.core import create_app, db | |
from openspending.model import Dataset | |
from openspending.model.dimension import AttributeDimension | |
from openspending.model.dimension import DateDimension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am pudo on github. | |
* I am pudo (https://keybase.io/pudo) on keybase. | |
* I have a public key whose fingerprint is FF97 B5A1 FBA1 C7D1 4926 ABFF 6B33 881D 2DA6 741F | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from lxml import html | |
URL = 'http://neas.environment.gov.za/portal/ApplicationsPerEAP_Report.aspx' | |
sess = requests.Session() | |
r = sess.get(URL) | |
doc = html.fromstring(r.content) | |
form = {} |