예제 #1
0
파일: run.py 프로젝트: alxgav/pforwp
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
파일: run.py 프로젝트: alxgav/pforwp
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
파일: run.py 프로젝트: alxgav/pforwp
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
파일: run.py 프로젝트: alxgav/pforwp
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
파일: run.py 프로젝트: alxgav/pforwp
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
파일: run.py 프로젝트: alxgav/pforwp
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