This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TStrV AllSourceLocationUriV; | |
for (const TStr& LocUri : SourceLocationUriV) { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from eventregistryadmin.MongoER import MongoER | |
self._mongoClient, erDataDb = MongoER.getERDatabase(MongoER.getMongoSettings("mongoSettings-er.json")) | |
sett = MongoER.getMongoSettings("mongoSettings-babaji-er-data.json") | |
self._mongoClient, ERdb = MongoER.getERDatabase(sett) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
currPath = os.path.split(__file__)[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# er = EventRegistry(host="http://beta.eventregistry.org", logging = False) | |
# er = EventRegistry(host="http://eventregistry.org", logging = False) | |
# er = EventRegistry(host="http://research.eventregistry.org", logging = False) | |
# er = EventRegistry(host="http://localhost:8090", logging = False) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
# specify cmd-line args | |
from optparse import OptionParser | |
parser = OptionParser(usage="Usage: %prog mode [options]") | |
# params for downlading links | |
parser.add_option("-f", "--source-file", dest="sourceFile", action="store", type="string", default = None, help = "file with list of sources to analyze") | |
parser.add_option("-t", "--threads", dest="threads", action="store", type="int", default=30, help="number of threads used to process queue") | |
parser.add_option("-d", action="store_true", dest="download", help = "Download concept stats") |