KaylaCrush / advocacy-maps

The good governance project (GGP) is a non-partisan democracy reform group.
https://mapletestimony.org
MIT License
0 stars 1 forks source link

implement dot notation for page.tables? #49

Closed KaylaCrush closed 1 year ago

KaylaCrush commented 1 year ago

https://stackoverflow.com/questions/16279212/how-to-use-dot-notation-for-dict-in-python

cut Would this be useful??? I would love to be able to refer to these tables with dot notation like page.tables.headers instead of page.tables['Headers'] class TableCollection: def init(self): self.headers = None self.lobbying_activities = None self.campaign_contributions = None self.client_compensation = None

KaylaCrush commented 1 year ago

simplenamespace is the answer.

KaylaCrush commented 1 year ago

done in beautiful soup refactor