Пример #1
0
def parcerRotelaterne(url, post_author, x_coord, y_coord, location, phone,
                      gen_url, className, nikname, city):
    soup = parcers.getContent(url)
    id = 1
    data = {}
    for link in soup.select(className):
        link = f"{gen_url}{link.get('href')}"
        print(link, id)
        data = parcers.getDataRotelaterne(link)
        insertToBase(data, post_author, x_coord, y_coord, location, phone,
                     nikname, city)
        id += 1
Пример #2
0
def parcerRoyal(url, post_author, x_coord, y_coord, location, phone, nikname,
                city):
    soup = parcers.getContent(url)
    id = 1

    for link in soup.select('div.imgDiv'):
        data = {}
        images = f"{link.select_one('img').get('src')}"
        data.update({'images': [images]})
        data.update({'description': ''})
        data.update(
            {'title': link.select_one('figcaption').text.split(',')[0]})

        insertToBase(data, post_author, x_coord, y_coord, location, phone,
                     nikname, city)
        id += 1
Пример #3
0
def parcerLeierkasten(url, post_author, x_coord, y_coord, location, phone,
                      className, nikname, city):
    soup = parcers.getContent(url)
    id = 1
    data = {}
    for link in soup.select(className):
        link = f"{link.get('href')}"

        data = parcers.parsingData(
            url=link,
            name='span.display-inline-block.text-gradient',
            descr='div.text-left.gap-bottom-big',
            serv='div#Service',
            imgs='div.flex-image img')
        insertToBase(data, post_author, x_coord, y_coord, location, phone,
                     nikname, city)
        id += 1
Пример #4
0
def parcerLadyDiscreet(url, post_author, x_coord, y_coord, location, phone,
                       className, nikname, city):
    soup = parcers.getContent(url)
    id = 1
    data = {}
    for link in soup.select(className):
        link = f"{link.get('href')}"
        print(link)
        data = parcers.parsingData(url=link,
                                   name='h1.h2.up.mb-0',
                                   descr='div.single_model-desc',
                                   serv='div#single-tab1',
                                   imgs='div.item a')
        insertToBase(data, post_author, x_coord, y_coord, location, phone,
                     nikname, city)

        id += 1
Пример #5
0
def parcerLustmolche(url, post_author, x_coord, y_coord, location, phone,
                     className, nikname, city):
    soup = parcers.getContent(url)
    id = 1
    data = {}
    for link in soup.select(className):
        link = f"{link.get('href')}"
        print(link)
        data = parcers.parsingData(
            url=link,
            name='div.lustmolche-lustratorin-text-left h1',
            descr='div.lustmolche-lustratorin-text p',
            serv='div.lustmolche-lustratorin-text ul',
            imgs='div.lustmolche-lustratorin-bilder a')
        insertToBase(data, post_author, x_coord, y_coord, location, phone,
                     nikname, city)
        id += 1
Пример #6
0
def parcerPearl24(url, post_author, x_coord, y_coord, location, phone, nikname,
                  city):
    soup = parcers.getContent(url)
    id = 1
    # print (soup)
    for link in soup.select('article.grid-item.one-third.girl.sizeify'):
        if 'https://model' in link.select_one('a').get('href'):
            # print (link)
            data = {}
            images = f"{link.select_one('div.image').get('style').replace('background-image: url(','').replace(');','')}"
            data.update({'images': [images]})
            data.update({'description': ''})
            data.update({'title': link.select_one('div.inside').text.strip()})

            insertToBase(data, post_author, x_coord, y_coord, location, phone,
                         nikname, city)
            # pprint.pprint (data)
            id += 1