25
CIVIC TECH, OPEN DATA AND PYTHON GREG KEMPE @longhotsummer [email protected]

Civic Tech, Open Data and Python

Embed Size (px)

Citation preview

Page 1: Civic Tech, Open Data and Python

CIVIC TECH, OPEN DATAAND PYTHON

GREG KEMPE — @longhotsummer [email protected]

Page 2: Civic Tech, Open Data and Python
Page 3: Civic Tech, Open Data and Python

CIVICrelating to the duties or activities of people inrelation to their town, city, or local area.

— Google

CIVIC TECHtechnology that aids civic engagement,education, empowerment, transparency andaccountability.

— @longhotsummer

Page 4: Civic Tech, Open Data and Python

DEXTERAND THE 2014 NATIONAL ELECTIONS

elections2014.mediamonitoringafrica.org

Page 5: Civic Tech, Open Data and Python

WAS THE COVERAGE... BALANCED & FAIR?COMPREHENSIVE?PEOPLE-CENTERED?

Page 6: Civic Tech, Open Data and Python

PARTY MEDIA COVERAGE

62.15 %

22.23 %

6.53 %

38.20 %

25.30 %

13.40 %

Votes received Media coverage

ANC

DA

EFF

0 5 10 15 20 25 30 35 40 45 50 55 60 65 70

Page 7: Civic Tech, Open Data and Python

PARTY MEDIA COVERAGE

0.67 %

0.28 %

4.00 %

3.00 %

Votes received Media coverage

COPE

AGANG

Page 8: Civic Tech, Open Data and Python

WHO'S QUOTED?Jacob Zuma: 8.2 %

Helen Zille: 7.5 %

Julius Malema: 6.6 %

Mmusi Maimane: 4.6 %

Other people: 73.1 %

Page 9: Civic Tech, Open Data and Python

WHO'S QUOTED?

Male: 74.8 %

Female: 25.2 %

Page 10: Civic Tech, Open Data and Python

DEXTER7461 ARTICLES

55 media outlets

28 print

11 radio

13 TV

3 online

Page 11: Civic Tech, Open Data and Python
Page 12: Civic Tech, Open Data and Python

LET'S TALK CODEFLASKMYSQL

OPENCALAIS + ALCHEMYAPI HUMANS

Page 13: Civic Tech, Open Data and Python

SOURCES: WHO'S QUOTED?NAME, GENDER, RACE, AFFILIATION, FUNCTION

For the first time in Ronnie Kasrils's life, he can'tunequivocally tell people to vote for the ANC. "I

have been a person who was so involved inmobilisation for ANC votes," he says.

Page 14: Civic Tech, Open Data and Python

SOURCES: WHO'S QUOTED?NAME, GENDER, RACE, AFFILIATION, FUNCTION

For the first time in Ronnie Kasrils's life, he can'tunequivocally tell people to vote for the ANC. "I

have been a person who was so involved inmobilisation for ANC votes," he says.

=

Page 15: Civic Tech, Open Data and Python

In an interview, Jim said the ANC only wants touse Vavi to gain support before the elections.

"They are doing it for elections," he said.

=

"Independent Electoral Commission of South Africa""Black Consciousness Movement""fearless prosecutor""theft"

+ =

Page 16: Civic Tech, Open Data and Python

SOME EXTRA Mamphela Ramphela, Mamphela Ramphele, Mamphele

Ramphele, Mamphela Pamphele

Mandela, Nelson Mandela, Madiba, Tata

Page 17: Civic Tech, Open Data and Python

SOURCES + =

TOPIC, ISSUES, BIAS =

Page 18: Civic Tech, Open Data and Python
Page 19: Civic Tech, Open Data and Python

DEXTERHUMAN-AUGMENTED MACHINE LEARNING

FOR MEDIA ANALYSIS GITHUB.COM/CODE4SA/MMA-DEXTER

ELECTIONS2014.MEDIAMONITORINGAFRICA.ORG

Page 20: Civic Tech, Open Data and Python

WAZIWAZIMAP.CO.ZA

Page 21: Civic Tech, Open Data and Python

UNDERSTAND YOUR COUNTRY, PROVINCE,CITY AND NEIGHBOURHOOD THROUGH THE

EYES OF CENSUS 2011

CENSUS 2011 DATA FROM STATS SAELECTIONS DATA FROM IEC

BOUNDARY DATA FROM DEMARCATIONS BOARD

FORK OF CENSUSREPORTER.ORG

Page 22: Civic Tech, Open Data and Python

DEMO!

Page 23: Civic Tech, Open Data and Python

DJANGOPOSTGRESQL, POSTGISNODE.JS + TOPOJSON

OPEN STREET MAPGOOGLE MAPS APIMOBILE-FRIENDLY

Page 24: Civic Tech, Open Data and Python

1 COUNTRY9 PROVINCES52 DISTRICTS

234 MUNICIPALITIES14 030 MAINPLACES22 196 SUBPLACES

4277 WARDS

2 078 825 STATS ROWS

Page 25: Civic Tech, Open Data and Python

THANKS!@[email protected]

THANKS TOPetrus Janse van RensburgRizmari Versfeld

CREDITSCape Town City Hall photo by Children photo by

flickr.com/photos/martie1swartflickr.com/photos/mariya_umama_wethemba_monastery