I have this json file that is available in the link https://raw.githubusercontent.com/Cyral/Bakeoof/master/full_format_recipes.json
and I used Pandas to open the recipes JSON file.
import pandas as pd
df = pd.read_json('full_format_recipes.json', lines=True)
print(df)
and this is the output I get
0 \
0 {'directions': ['1. Place the stock, lentils, ...
1 \
0 {'directions': ['Combine first 9 ingredients i...
2 \
0 {'directions': ['In a large heavy saucepan coo...
3 \
0 {'directions': ['Heat oil in heavy large skill...
4 \
0 {'directions': ['Preheat oven to 350°F. Lightl...
5 \
0 {'directions': ['Mix basil, mayonnaise and but...
6 \
0 {'directions': ['Cook potatoes and carrots in ...
7 \
0 {'directions': ['Stir together sugar and chili...
8 \
0 {'directions': ['Stir together soy sauce, suga...
9 ... \
0 {'directions': ['Chop enough parsley leaves to... ...
20120 \
0 {'directions': ['Bring all ingredients to a si...
20121 \
0 {'directions': ['1. Preheat the oven to 400°F....
20122 \
0 {'directions': ['Mix first 4 ingredients in la...
20123 \
0 {'directions': ['Stir water, sugar and juice i...
20124 \
0 {'directions': ['Wash spareribs. Remove excess...
20125 \
0 {'directions': ['Beat whites in a bowl with an...
20126 \
0 {'directions': ['Bring broth to simmer in sauc...
20127 \
0 {'directions': ['Using a sharp knife, cut a sh...
20128 \
0 {'directions': ['Heat 2 tablespoons oil in hea...
20129
0 {'directions': ['Position rack in bottom third...
[1 rows x 20130 columns]
I want to extract only the directions and the title for each recipe, How can I do that?
lines=True.