This project is no longer actively maintained.
Feel free to fork it if you'd like to continue its development.
Java package to scrap recipes from websites which follow Schema.org recipe schema.
This project is a port of corresponding python package but don't guarantee to be in sync.
import com.prashantchaubey.recipescrappers.RecipeScrapper;
import com.prashantchaubey.recipescrappers.RecipeScrapperFactory;
class ExampleApp {
public static void main(String[] args) {
RecipeScrapper scrapper = RecipeScrapperFactory.get("your url");
System.out.println(scrapper.getTitle());
//If you want to suppress any exception during scrapping and get default values
scrapper = RecipeScrapperFactory.get("your url", true);
System.out.println(scrapper.getTotalTime());
}
}
If you need help feel free to create an issue, and I will reach out ASAP
Read this.