Skip to content

Commit 390e143

Browse files
author
Archit Agarwal
committed
Bug Fixes - Lesson 04
1 parent 3441a66 commit 390e143

4 files changed

Lines changed: 17 additions & 7 deletions

File tree

Lesson04/Activity7.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@
294294
"cell_type": "markdown",
295295
"metadata": {},
296296
"source": [
297-
"# Extrcat phone/fax numbers and email address from terms and conditions page of Packt"
297+
"# Extract phone/fax numbers and email address from terms and conditions page of Packt"
298298
]
299299
},
300300
{
@@ -393,7 +393,7 @@
393393
"name": "python",
394394
"nbconvert_exporter": "python",
395395
"pygments_lexer": "ipython3",
396-
"version": "3.7.1"
396+
"version": "3.7.3"
397397
}
398398
},
399399
"nbformat": 4,

Lesson04/Activity9.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"metadata": {},
2424
"outputs": [],
2525
"source": [
26-
"#!pip install tweepy"
26+
"pip install tweepy"
2727
]
2828
},
2929
{
@@ -1000,7 +1000,7 @@
10001000
"name": "python",
10011001
"nbconvert_exporter": "python",
10021002
"pygments_lexer": "ipython3",
1003-
"version": "3.7.1"
1003+
"version": "3.7.3"
10041004
}
10051005
},
10061006
"nbformat": 4,

Lesson04/Exercise40.ipynb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@
1414
"Extract addresses, quotes, texts written in bold words and table present in sample_doc.html."
1515
]
1616
},
17+
{
18+
"cell_type": "code",
19+
"execution_count": null,
20+
"metadata": {},
21+
"outputs": [],
22+
"source": [
23+
"pip install bs4"
24+
]
25+
},
1726
{
1827
"cell_type": "code",
1928
"execution_count": 1,
@@ -343,7 +352,7 @@
343352
"name": "python",
344353
"nbconvert_exporter": "python",
345354
"pygments_lexer": "ipython3",
346-
"version": "3.7.1"
355+
"version": "3.7.3"
347356
}
348357
},
349358
"nbformat": 4,

Lesson04/Exercise41.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@
9090
}
9191
],
9292
"source": [
93-
"open(\"data_ch4/David_Copperfield.txt\", 'w').write(r.text)"
93+
"with open (\"data_ch4/David_Copperfield.txt\", \"w\", encoding=\"utf-8\") as f:\n",
94+
" f.write(r.text)"
9495
]
9596
},
9697
{
@@ -188,7 +189,7 @@
188189
"name": "python",
189190
"nbconvert_exporter": "python",
190191
"pygments_lexer": "ipython3",
191-
"version": "3.7.1"
192+
"version": "3.7.3"
192193
}
193194
},
194195
"nbformat": 4,

0 commit comments

Comments
 (0)