Skip to content

Commit

Permalink
- adds RISM demo crawler
Browse files Browse the repository at this point in the history
  • Loading branch information
greimers committed Sep 23, 2016
1 parent 117a31f commit f49e587
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
40 changes: 40 additions & 0 deletions command_line_scripts/indexRISM.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?php
namespace ADWLM\IncipitSearch;

require 'vendor/autoload.php';


/**
* This is to be called from command line to index the Gluck Gesamtausgabe catalog.
* ATTENTION: this must be called from the same directory as index.php
* or paths will be wrong
*
*
* Copyright notice
*
* (c) 2016
* Anna Neovesky [email protected]
* Gabriel Reimers [email protected]
*
* Digital Academy www.digitale-akademie.de
* Academy of Sciences and Literatur | Mainz www.adwmainz.de
*
* Licensed under The MIT License (MIT)
*
* @package ADWLM\IncipitSearch
*/


/*
*
* ATTENTION:
* This only crawls a small sample of RISM and is only for demo purposes
*
*/

echo "====================\nATTENTION\n=======================\nThe RISM crawler is only for demo purposes and only crawls a small subset of RISM.\nThis is not fit for production\n\n";

$crawler = new RISMIncipitCrawler();

$crawler->createIndex();
$crawler->crawlCatalog();
2 changes: 1 addition & 1 deletion src/RISMIncipitCrawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function crawlCatalog()
{

$startID = 400110660;
$endID = 400110862;
$endID = 400110999;

for ($i = $startID; $i < $endID; $i++) {
$url = "https://opac.rism.info/id/rismid/" . $i . "?format=marc";
Expand Down

0 comments on commit f49e587

Please sign in to comment.