thank you for your support, but i am still struggling how to get number of pages
then function above would return me number + one random character (like slash or something like this)
would work something like:
page1 = soup.find('ul', {'class': 'pagination'}) pages = str(page1.find('li', {'class': 'last'})) print(pages[-16:-14])by using this, theoretically i get what i want.. but let's assume that it is <10 page
then function above would return me number + one random character (like slash or something like this)
would work something like:
print(pages[-16:-14]) if < 10 then print(pages[-15:-14])?