public class RequestedLinkGetter extends Object
Constructor and Description |
---|
RequestedLinkGetter(Language lang,
List<FileMatcher> matchers,
Date requestDate) |
Modifier and Type | Method and Description |
---|---|
protected List<String> |
getAllDates()
Return a sorted list of dump dates before the date requested.
|
protected Map<String,com.google.common.collect.Multimap<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.
|
public RequestedLinkGetter(Language lang, List<FileMatcher> matchers, Date requestDate)
protected List<String> getAllDates() throws IOException, ParseException, WikiBrainException
IOException
ParseException
WikiBrainException
protected Map<String,com.google.common.collect.Multimap<FileMatcher,DumpLinkInfo>> getDumps() throws ParseException, IOException, WikiBrainException
ParseException
IOException
WikiBrainException
public List<String> getLangLinks() throws WikiBrainException, IOException, ParseException
public static void main(String[] args) throws IOException, WikiBrainException, ParseException, org.wikibrain.conf.ConfigurationException
args
- command line promptIOException
WikiBrainException
ParseException
org.wikibrain.conf.ConfigurationException
Copyright © 2016. All rights reserved.