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 79f5032 + e3e7e29 commit 326a4fbCopy full SHA for 326a4fb
spiderFile/one_img.py
@@ -6,7 +6,7 @@
6
for i in range(14, 1580):
7
url = temp + str(i)
8
page = requests.get(url).text
9
- reg = re.compile('src="(http://.*?\.jpg)"')
+ reg = re.compile('<img src="(http://.*?)" alt="" />')
10
img_url = re.findall(reg, page)
11
if img_url != []:
12
with open('./{}.jpg'.format(count), 'wb') as file:
0 commit comments