Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 1.27 KB

README.md

File metadata and controls

41 lines (27 loc) · 1.27 KB

🚨 Unmaintained 🚨

This project is no longer actively maintained.
Feel free to fork it if you'd like to continue its development.

Recipe Scrappers

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.

Warning! This package is still in Beta and not yet published to Maven Central.

Show me the code

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());
    }
}

Scrappers available for

Support

If you need help feel free to create an issue, and I will reach out ASAP

Want to contribute

Read this.