Skip to content

Commit ae0e547

Browse files
committed
Merge pull request REMitchell#4 from muxuezi/patch-1
Update 5-storeWikiLinks.py
2 parents 38040ef + d28c993 commit ae0e547

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)