A daemon process that will import and keep bills up to date
legiscand.php script provides a daemon process that can use four
different methods, controlled by the
update_type setting, to keep a
local database synchronized via LegiScan Pull API.
This mode will use the
ls_monitor table to keep a specific
list updated. This list can be managed with
bill_id is an exercise for the reader and would
require additional scripting, though a likely source would be through
the search engine.
php legiscan-cli.php --monitor 823882 php legiscan-cli.php --unmonitor 823882
This mode will synchronize the entire master list from one or more
states. To set the state list edit
config.php and add each state
For example to track all legislation in California and US Congress:
states = CA states = US
NOTE: It is HIGHLY recommended pre-loading the current state
to the first run to minimize the on-boarding queries.
This mode will synchronize the results of searches ran against the
national database. To specify the searches edit the
and add each search to the
The searches will also be filtered by the global
setting, which can be overridden on a per search basis by prepending
a different score and the pipe
| character. In addition a
abbreviations can also be prefixed to override either national or
state search. When used with a
relevance override the
should appear first separated by a comma
Also notice that the entire search string should be quoted, and any
internal quotes should be escaped as
searches = "gender AND bathroom" searches = "\"national popular vote\"" searches = "42|hemp OR cannabis OR marijuana" searches = "NY|charter ADJ schools" searches = "CA,60|vaccination AND status:passed"
This mode combines both of the other methods such that the
searches are only ran against the
unless a search specific
state is used.
Copyright: 2010-2020 LegiScan LLC
Author: LegiScan API Team firstname.lastname@example.org
Located at legiscand.php