Парсинг картинок на Python
Хочу спарсить нужные мне "мемы", вот код все работает но получает только 30 картинок, как это исправить?
import requests
from urllib import request, parse
from json import loads
from bs4 import BeautifulSoup
s = requests.session()
s.headers.update({'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:69.0) Gecko/20100101
Firefox/69.0'})
r = s.get('https://yandex.ru/images/search?text=floppa&from=tabbar&source-
serpid=y_5FcX5ld3Qq6YXCeyOKIQ&noreask=1&nomisspell=1')
soup = BeautifulSoup(r.text, "html.parser")
count = 0
for text in soup.findAll(attrs={'class': 'serp-item__thumb justifier__thumb'}):
url = "http:"+text.get('src')
print(url)
count += 1
request.urlretrieve(url,"./floppa/floppa"+str(count)+".png")