Skip to content

wikisource/ws-search

Repository files navigation

Wikisource Search

A tool to search through book data in Wikidata and Wikisource.

See it in action at http://ws-search.toolforge.org/

CI License

Install

  1. Clone from git:
    git clone https://github.com/wikisource/ws-search.git
  2. Update dependencies: composer update
  3. Edit the .env.local configuration file
  4. Run the upgrade script: ./bin/console upgrade

Upgrade

  1. Update code: git pull origin master
  2. Update dependencies: composer update
  3. Run the upgrade script: ./bin/console upgrade

Administer

  1. Populate the list of Wikisources:
    ./bin/console scrape langs
  2. Populate with all existing data for a given Wikisource:
    ./bin/console scrape --lang=en
  3. Keep up to date with recent changes on that Wikisource:
    ./bin/console rc --lang=en

To automatically keep up to date, run the first two scrape commands above and then add the RecentChanges command as a cronjob:
./bin/console rc

Contributing

Development is managed on GitHub at https://github.com/wikisource/ws-search