)
parser.set_defaults(command=commands.fetch_instances)
parser.add_argument("--domain", help="Instance name (aka. domain) to fetch further instances from. Start with a large instance, e.g. mastodon.social .")
- parser.add_argument("--software", help="Name of software, e.g. 'lemmy'")
+ parser.add_argument("--force", action="store_true", help="Include also already existing instances, otherwise only new are checked")
parser.add_argument("--single", action="store_true", help="Only fetch given instance.")
+ parser.add_argument("--software", help="Name of software, e.g. 'lemmy'")
### Fetch blocks from static text file(s) ###
parser = subparser_command.add_parser(
elif instances.is_registered(row["domain"]) and software_helper.is_relay(row["software"]):
logger.warning("row[domain]='%s' is of software type '%s' which is not supported by this command. Please invoke fetch_relays instead - SKIPPED!", row["domain"], row["software"])
continue
- elif instances.is_recent(row["domain"]):
+ elif not args.force and not args.software in [None, ""]and instances.is_recent(row["domain"]):
logger.debug("row[domain]='%s' has been recently crawled - SKIPPED!", row["domain"])
continue