Python Wrapper to Automate Making a StrawPoll
Requirements: Built on Python 2.7
Uses built-in modules, requests and re (regex)
#####Create new poll
from strawpoll import StrawPoll
s = StrawPoll.new("new poll", ["Option 1", "Option 2"])#####Get old poll by id
t = StrawPoll.fromID(142857)#####Get old poll by url
v = StrawPoll.fromURL("http://strawpoll.me/314159")#####Access results
s = StrawPoll.new("new poll", ["Option 1", "Option 2"])
print s.url
print s.title
print s.results
print s.totalVotes#####Update results Call this to update values. Note: The poll is updated upon initialization.
s.updateResults()