File tree 1 file changed +6
-10
lines changed
1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change 22
22
},
23
23
{
24
24
"cell_type" : " code" ,
25
- "execution_count" : 1 ,
25
+ "execution_count" : 8 ,
26
26
"metadata" : {},
27
27
"outputs" : [],
28
28
"source" : [
44
44
},
45
45
{
46
46
"cell_type" : " code" ,
47
- "execution_count" : 2 ,
47
+ "execution_count" : 9 ,
48
48
"metadata" : {},
49
49
"outputs" : [],
50
50
"source" : [
51
51
" def getHTMLContent(link):\n " ,
52
- " try:\n " ,
53
- " html = urlopen(link)\n " ,
54
- " soup = BeautifulSoup(html, 'html.parser')\n " ,
55
- " return soup\n " ,
56
- " except URLError as e:\n " ,
57
- " print(\" Could not load the url: {}\\ nError: {}\" . format(link, e))\n " ,
58
- " return false"
52
+ " html = urlopen(link)\n " ,
53
+ " soup = BeautifulSoup(html, 'html.parser')\n " ,
54
+ " return soup"
59
55
]
60
56
},
61
57
{
69
65
},
70
66
{
71
67
"cell_type" : " code" ,
72
- "execution_count" : 3 ,
68
+ "execution_count" : 10 ,
73
69
"metadata" : {},
74
70
"outputs" : [
75
71
{
You can’t perform that action at this time.
0 commit comments