svcaf / earlyAlertOfLaws

A web service for monitoring new laws in California
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

alternative: search http://leginfo.legislature.ca.gov/ directly #10

Closed liaosvcaf closed 5 years ago

liaosvcaf commented 5 years ago

if open states is too limited. We should try to directly search http://leginfo.legislature.ca.gov/ .

@taivy Please also take a look at this option. Let me know if this is something you are interested in doing. Thanks!

liaosvcaf commented 5 years ago

https://openstates.org/ca/bills/ also offers full text search. We can use python or other language to search for key words.

taivy commented 5 years ago

@liaosvcaf

Comparing openstates.org and leginfo.legislature.ca.gov the last seems best

openstates.org is slower than leginfo.legislature.ca.gov When I search "Education" on Openstate I get 373 bills, on leginfo.legislature.ca.gov I get 755

But OpenState views search results better (there is subject and latest action). On leginfo.legislature.ca.gov we get only bills identifier

https://openstates.org/ca/bills/?query=education&session=&classification=&sponsor=&page=1

http://leginfo.legislature.ca.gov/faces/billSearchClient.xhtml?session_year=20192020&keyword=education&house=Both&author=All&lawCode=All

Fetching all laws from search results might take a lot of time. But we can fetch only first few pages and fetch other only if user goes to next page. Or we can make a database and update

liaosvcaf commented 5 years ago

I think you have the freedom to choose a solution you feel comfortable with, as long as you reach the project goal.

Thanks.

On Tue, Jun 25, 2019, 9:37 AM taivy notifications@github.com wrote:

@liaosvcaf https://github.com/liaosvcaf

Comparing openstates.org and leginfo.legislature.ca.gov the last seems best

openstates.org is slower than leginfo.legislature.ca.gov When I search "Education" on Openstate I get 373 bills, on leginfo.legislature.ca.gov I get 755

But OpenState views search results better (there is subject and latest action). On leginfo.legislature.ca.gov we get only bills identifier

https://openstates.org/ca/bills/?query=education&session=&classification=&sponsor=&page=1

http://leginfo.legislature.ca.gov/faces/billSearchClient.xhtml?session_year=20192020&keyword=education&house=Both&author=All&lawCode=All

Fetching all laws from search results might take a lot of time. But we can fetch only first few pages and fetch other only if user goes to next page. Or we can make a database and update

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/svcaf/earlyAlertOfLaws/issues/10?email_source=notifications&email_token=AMJFRFOHVCJR3DVS3AH3GALP4JCWHA5CNFSM4H2ZNNMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYQ3AWY#issuecomment-505524315, or mute the thread https://github.com/notifications/unsubscribe-auth/AMJFRFNNXEMGMCQFGRZEA5LP4JCWHANCNFSM4H2ZNNMA .

liaosvcaf commented 5 years ago

Looks like this this the solution right now.