We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c451549 + 769acba commit 1ef2cb2Copy full SHA for 1ef2cb2
chapter2/6-regularExpressions.py
@@ -1,9 +1,9 @@
1
-from urllib.request
2
-import urlopenfrom bs4
3
-import BeautifulSoupimport re
+from urllib.request import urlopen
+from bs4 import BeautifulSoup
+import re
4
5
html = urlopen("http://www.pythonscraping.com/pages/page3.html")
6
bsObj = BeautifulSoup(html)
7
images = bsObj.findAll("img", {"src":re.compile("\.\.\/img\/gifts/img.*\.jpg")})
8
for image in images:
9
- print(image["src"])
+ print(image["src"])
0 commit comments