Closed openstates-bot closed 6 years ago
What's the policy on hard coding the legislators data? For a project I had to do so. Wikipedia + newspapers give a pretty solid record on any changes during an administration. Usually the Senate's page will just update the information with the latest composition and break any scrape.
If it is necessary, I'd be OK w/ it in this case. We haven't had to do it elsewhere, but I think the VI scraper will need something similar.
The scraper should probably have a check for the current date and raise an exception if an election would have taken place.
if datetime.datetime.utcnow() > NEXT_ELECTION_DATE:
raise Exception("an election was scheduled for, please update PR data")
turned off PR legislator scraping for now so bill scraping can resume
@Nosferican do you have any idea if there is a source for this?
I would say those two would be the go to source for the lower and upper houses.
I think now we need to re-enable people scraping for PR, is that done by changing https://github.com/openstates/task-definitions/blob/master/tasks/pr.yml#L2?
Looks like first we'll need to disable the committee scraper by commenting out https://github.com/openstates/openstates/blob/master/openstates/pr/__init__.py#L3 -- then we can remove the 'bills' from pr.yml
If you want to pull request that i'll merge, otherwise i'll probably get to it this weekend.
I updated the committee scraper instead in #2459, and created the corresponding change in task-definitions (https://github.com/openstates/task-definitions/pull/2).
I merged the committee patch but don't have admin rights on the tasks repo. @jamesturk can you merge https://github.com/openstates/task-definitions/pull/2/files please?
@jamesturk I think task-definitions might need to be updated after that change, like what was needed in in https://github.com/openstates/openstates/issues/2270.
@jamesturk Any update?
sorry missed this. I'll take a look this evening
On Thu, Sep 6, 2018, 03:09 Chris Nardi notifications@github.com wrote:
@jamesturk https://github.com/jamesturk Any update?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/openstates/openstates/issues/1611#issuecomment-418988945, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAfYkO2a462HnOLiTtWPPfoWt9qcLLMks5uYMpEgaJpZM4Mzuvk .
PR has been failing since 2017-04-01
Based on automated runs it appears that PR has not run successfully in 5 days (2017-04-01).
Visit http://bobsled.openstates.org/ for more info.