scrape_roms.py 475 B

1234567891011121314
  1. from django.core.management.base import BaseCommand, CommandError
  2. from games.utils import skyscrape_console
  3. class Command(BaseCommand):
  4. help = "Scrape all games found in a given gamelist XML file"
  5. def add_arguments(self, parser):
  6. parser.add_argument("system", type=str)
  7. def handle(self, *args, **options):
  8. scrape_out, load_out = skyscrape_console(options["system"])
  9. self.stdout.write(self.style.SUCCESS(f"Successfully scraped roms"))