public async Task SpcaTest() { // ctrl r+t SpcaCrawler spca = new SpcaCrawler(petHandler, petRepository, unitOfWork, traitRepository, cityRepository, animalTypeRepository, userRepository, traitOptionRepository, new SpcaParser(_azureBlobHelper)); await spca.Load(@"https://spca.co.il/%d7%90%d7%99%d7%9e%d7%95%d7%a6%d7%99%d7%9d/", null); var pets = spca.Parse(); Debugger.Break(); }
public async Task Execute() { Console.WriteLine($"{nameof(SpcaJob)} Job starting run"); await _spcaCrawler.Load(); var result = await _spcaCrawler.Parse(); await _spcaCrawler.InsertPets(result); Console.WriteLine($"{nameof(SpcaJob)} Job Ending run"); }