def check_page(page): soup = Parser.get_soup(page) try: next_page = soup.find('li', "bx-pag-next") return next_page.a['href'] except Exception: return None
def check_page(page): soup = Parser.get_soup(page) try: next_page = soup.find('a', "pagination__item_next") return URL_CORE + next_page['href'] except Exception: return None
def check_page(page): soup = Parser.get_soup(page) try: next_page = soup.find_all('li', "bx-pax")[1] return next_page.parent['href'] except Exception: return None
def check_page(page): soup = Parser.get_soup(page) try: next_page = soup.find('a', "next page-numbers") return next_page['href'] except Exception: return None
def get_phones_soups(page): phones = Parser.get_soup(page).find('div', 'items productList').find_all( 'a', "name") return phones
def get_phones_soups(page): phones = Parser.get_soup(page).find_all('div', "pull-right rel") return phones
def check_last_page(page): soup = Parser.get_soup(page) last_page = soup.find('li', "last") return last_page.a.text
def get_phones_soups(page): phones = Parser.get_soup(page).find_all('a', "card-text") return phones
def get_phones_soups(page): phones = Parser.get_soup(page).find_all('a', "product-title") return phones
def get_phones_soups(page): phones = Parser.get_soup(page).find_all('div', "item-disc") return phones
def get_phones_soups(page): phones = Parser.get_soup(page).find_all('div', "oneItem") return phones
def get_phones_soups(page): phones = Parser.get_soup(page).find_all('tr', attrs={"height": 20})[5:] return phones
def get_phones_soups(page): phones = Parser.get_soup(page).find('div', 'load-container').find_all( 'div', "product-content clearfix") return phones