コード例 #1
0
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
コード例 #2
0
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
コード例 #3
0
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
コード例 #4
0
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
コード例 #5
0
def get_phones_soups(page):
    phones = Parser.get_soup(page).find('div', 'items productList').find_all(
        'a', "name")
    return phones
コード例 #6
0
def get_phones_soups(page):
    phones = Parser.get_soup(page).find_all('div', "pull-right rel")
    return phones
コード例 #7
0
def check_last_page(page):
    soup = Parser.get_soup(page)
    last_page = soup.find('li', "last")
    return last_page.a.text
コード例 #8
0
def get_phones_soups(page):
    phones = Parser.get_soup(page).find_all('a', "card-text")
    return phones
コード例 #9
0
def get_phones_soups(page):
    phones = Parser.get_soup(page).find_all('a', "product-title")
    return phones
コード例 #10
0
def get_phones_soups(page):
    phones = Parser.get_soup(page).find_all('div', "item-disc")
    return phones
コード例 #11
0
def get_phones_soups(page):
    phones = Parser.get_soup(page).find_all('div', "oneItem")
    return phones
コード例 #12
0
def get_phones_soups(page):
    phones = Parser.get_soup(page).find_all('tr', attrs={"height": 20})[5:]
    return phones
コード例 #13
0
def get_phones_soups(page):
    phones = Parser.get_soup(page).find('div', 'load-container').find_all(
        'div', "product-content clearfix")
    return phones