import of oai sources from a list using a command line interface:

if you have a list of oai servers you can import them all using the linux command:
bin/importOAIList.sh <name-of-oai-list-file>


git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7141 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 15 years ago
parent 64860dc1bb
commit fc924f024e

@ -0,0 +1,9 @@
#!/bin/sh
cd "`dirname $0`"
for N in `cat $1`; do
echo import of $N:
./apicall.sh /IndexImportOAIPMH_p.html?urlstart=$N > /dev/null
C=$(($C+1))
done

@ -36,6 +36,7 @@ import net.yacy.document.importer.ResumptionToken;
import net.yacy.kelondro.data.meta.DigestURI;
import net.yacy.kelondro.logging.Log;
import de.anomic.data.WorkTables;
import de.anomic.search.Switchboard;
import de.anomic.server.serverObjects;
import de.anomic.server.serverSwitch;
@ -89,6 +90,7 @@ public class IndexImportOAIPMH_p {
if (post.get("urlstart", "").length() > 0) {
String oaipmhurl = post.get("urlstart", "");
sb.tables.recordAPICall(post, "IndexImportOAIPMH_p.html", WorkTables.TABLE_API_TYPE_CRAWLER, "OAI-PMH import for " + oaipmhurl);
DigestURI url = null;
try {
url = new DigestURI(oaipmhurl, null);

Loading…
Cancel
Save