Added basic recipe web import functionality to the RecipeEditView
This commit is contained in:
@@ -20,11 +20,12 @@ class RecipeScraper {
|
||||
|
||||
} else {
|
||||
print("ERROR: Bad url.")
|
||||
return nil
|
||||
}
|
||||
|
||||
guard let html = contents else {
|
||||
print("ERROR: no contents")
|
||||
exit(1)
|
||||
return nil
|
||||
}
|
||||
let doc = try SwiftSoup.parse(html)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user