コード例 #1
0
def familiaCrista(bookName):
    url = "https://www.livrariasfamiliacrista.com.br/catalogsearch/result/?q=" + bookName
    html = helpers.requestAndParse(url)
    books = list(
        map(mapFamiliaCrista,
            html.select('section.category-products li.item')))
    return books
コード例 #2
0
def santaCruz(bookName):
    url = "https://www.stacruzartigoscatolicos.com.br/loja/busca.php?loja=431290&palavra_busca=" + bookName
    html = helpers.requestAndParse(url)
    books = list(
        map(
            lambda product: Book(image=product.find('img')['src'],
                                 price=helpers.priceFloat(
                                     product.select_one('span.price').text),
                                 url=product.select_one('a')['href']),
            html.findAll('li', {'class': 'produto-item'})))
    return books
コード例 #3
0
def shalom(bookName):
    url = "https://livrariashalom.org/catalogsearch/result/index/?cat=9&q=" + bookName
    html = helpers.requestAndParse(url)
    books = list(
        map(
            lambda product: Book(image=product.find('img')['src'],
                                 price=helpers.priceFloat(
                                     product.select_one('span.price').text),
                                 url=product.select_one('a')['href'],
                                 name=product.find('a', {
                                     'class': 'product-item-link'
                                 }).text,
                                 store='shalom'),
            html.select('ol.products div.product-item-info')))
    return books
コード例 #4
0
def paulus(bookName):
    url = "https://www.paulus.com.br/loja/search.php?q=" + bookName
    html = helpers.requestAndParse(url)
    books = list(
        map(
            lambda product: Book(image=" https://www.paulus.com.br/loja/" +
                                 product.find('img')['src'],
                                 price=helpers.priceFloat(
                                     product.select_one('span.preco').text),
                                 url=product.select_one('a')['href'],
                                 name=product.find('p', {
                                     'class': 'titulo'
                                 }).text,
                                 store='paulus'),
            html.select('ul#produto-lista li')))
    return books