public class RequestedLinkGetter extends Object
Constructor and Description |
---|
RequestedLinkGetter(org.wikibrain.core.lang.Language lang,
List<org.wikibrain.core.cmd.FileMatcher> matchers,
Date requestDate) |
Modifier and Type | Method and Description |
---|---|
protected List<String> |
availableDumpDatesSorted(List<Date> dateList)
Return a sorted list of dump dates before the date requested.
|
protected List<Date> |
getAllDates()
Return all dates on the dump index page of a particular language.
|
protected Map<String,com.google.common.collect.Multimap<org.wikibrain.core.cmd.FileMatcher,DumpLinkInfo>> |
getDumps()
Get dump file links of the most recent available before the requestDate.
|
List<String> |
getLangLinks() |
static void |
main(String[] args)
Parse command line and generate .tsv file containing language code, date of dump, name of file type and link url.
|
protected List<Date> getAllDates() throws IOException, ParseException
IOException
ParseException
protected List<String> availableDumpDatesSorted(List<Date> dateList) throws org.wikibrain.core.WikiBrainException
dateList
- list of Date objectorg.wikibrain.core.WikiBrainException
protected Map<String,com.google.common.collect.Multimap<org.wikibrain.core.cmd.FileMatcher,DumpLinkInfo>> getDumps() throws ParseException, IOException, org.wikibrain.core.WikiBrainException
ParseException
IOException
org.wikibrain.core.WikiBrainException
public List<String> getLangLinks() throws org.wikibrain.core.WikiBrainException, IOException, ParseException
org.wikibrain.core.WikiBrainException
IOException
ParseException
public static void main(String[] args) throws IOException, org.wikibrain.core.WikiBrainException, ParseException, org.wikibrain.conf.ConfigurationException
args
- command line promptIOException
org.wikibrain.core.WikiBrainException
ParseException
org.wikibrain.conf.ConfigurationException
Copyright © 2014. All rights reserved.