食譜(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:
-
You will not have to wait for the recipe to load potentially forever if you are experiencing bad internet connection.
-
You will not have to worry about any ads or trackers.
-
You will not have to see all other unnecessary garbage.
-
You can customize its styles (
styles.css
) the way you like. -
You will be able to access to those recipes offline! :)
- 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.
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.
-
If you have
pipenv
installed on your system, you should be able topipenv install
or alternativelypipenv 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
-
If you do not have
pipenv
installed, then you can usevirtualenv
.So, you would
virtualenv env
,source ./env/bin/activate
,pip install -r requirements.txt
, and runpython 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
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.