mirror of
https://github.com/saurabhan/Wallhaven-dl.git
synced 2026-01-06 18:08:01 +00:00
Added Total wallpapers to be downloaded
This commit is contained in:
@@ -21,6 +21,7 @@ soup = bs4.BeautifulSoup(urlreq.text, 'lxml')
|
|||||||
soupid = soup.findAll('a', {'class': 'preview'})
|
soupid = soup.findAll('a', {'class': 'preview'})
|
||||||
res = re.compile(r'\d+')
|
res = re.compile(r'\d+')
|
||||||
imgid = res.findall(str(soupid))
|
imgid = res.findall(str(soupid))
|
||||||
|
print('Number of Wallpapers to Download: ' + str(len(imgid)))
|
||||||
imgext = ['jpg', 'png', 'bmp']
|
imgext = ['jpg', 'png', 'bmp']
|
||||||
for i in range(len(imgid)):
|
for i in range(len(imgid)):
|
||||||
url = 'http://wallpapers.wallhaven.cc/wallpapers/full/wallhaven-%s.' % imgid[
|
url = 'http://wallpapers.wallhaven.cc/wallpapers/full/wallhaven-%s.' % imgid[
|
||||||
|
|||||||
Reference in New Issue
Block a user