Skip to content

Commit 1ef2cb2

Browse files
committed
Merge pull request REMitchell#2 from MimiBambino/patch-1
Revise import statements
2 parents c451549 + 769acba commit 1ef2cb2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

chapter2/6-regularExpressions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
from urllib.request
2-
import urlopenfrom bs4
3-
import BeautifulSoupimport re
1+
from urllib.request import urlopen
2+
from bs4 import BeautifulSoup
3+
import re
44

55
html = urlopen("http://www.pythonscraping.com/pages/page3.html")
66
bsObj = BeautifulSoup(html)
77
images = bsObj.findAll("img", {"src":re.compile("\.\.\/img\/gifts/img.*\.jpg")})
88
for image in images:
9-
print(image["src"])
9+
print(image["src"])

0 commit comments

Comments
 (0)