Skip to content

Commit d28c993

Browse files
author
Junjie Tao
committed
Update 5-storeWikiLinks.py
import re was missed
1 parent 38040ef commit d28c993

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

chapter5/5-storeWikiLinks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from urllib.request import urlopen
22
from bs4 import BeautifulSoup
3+
import re
34
import datetime
45
import random
56
import pymysql
@@ -30,4 +31,4 @@ def getLinks(articleUrl):
3031
links = getLinks(newArticle)
3132
finally:
3233
cur.close()
33-
conn.close()
34+
conn.close()

0 commit comments

Comments
 (0)