Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

sjinno/shipu

Repository files navigation

食譜(shípǔ) is a program that scrapes data of your favorite recipe(s) from クックパッド and outputs the data you only need to see(no ads & no trackers) into a file.

I am still in the process of its design, but this may be useful because:

  1. You will not have to wait for the recipe to load potentially forever if you are experiencing bad internet connection.

  2. You will not have to worry about any ads or trackers.

  3. You will not have to see all other unnecessary garbage.

  4. You can customize its styles (styles.css) the way you like.

  5. You will be able to access to those recipes offline! :)

Todo:

  • Oraganize code into functions and classes.
  • Add features: recipe-with-photos if available.
  • Create index.html to list all the saved recipes for easy access.

Note

This should work on Linux/Unix systems, though I'm not sure if it's true because I haven't tested it. FYI, this program is developed on Fedora 33.

Usage

  1. If you have pipenv installed on your system, you should be able to pipenv install or alternatively pipenv install -r ./requirements.txt to install the required packages after cloning this repo with:

    git clone https://github.com/sjinno/shipu.git
    

    After that, simply go copy the recipe ID of your favorite recipe from クックパッド and run

    pipenv run python minimize.py your-fav-reciepe-id
    
  2. If you do not have pipenv installed, then you can use virtualenv.

    So, you would virtualenv env, source ./env/bin/activate, pip install -r requirements.txt, and run

    python minimize.py your-fav-reciepe-id
    
    # e.g.
    # Suppose the url of your favorite recipe is `https://cookpad.com/recipe/1847041`,
    # then you run:
    python minimize.py 1847041
    

Update

Since I attempted a different implementation using PyO3, usage is a bit different. You will need Rust installed on your system in order to build page-minimizer with cargo build --release, for I am not including its .so file. For more info, visit PyO3 user guide.

Then, you will have to rename libpage_minimizer.so to page_minimizer.so and move the file to the source directory in which minimize.py resides.

With that being done, you should be able to run it following the Usage section...

If that sounds annoying (It would at least be annoying to me :P), alternatively (could be more stable) you can simply git checkout python and you should be able to ignore these steps and just follow the Usage section.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published