예제 #1
0
파일: main.py 프로젝트: xingseol/kevinator
def scrape():
    link = eel.giveLink()()
    response = requests.get(eel.giveLink()())
    soup = BeautifulSoup(response.text, 'html.parser')
    posts = None
    if 'wuxiaworld.site' in link:
        posts = soup.find(class_='breadcrumb').findAll('li')[1].get_text()
    else:
        posts = soup.find(class_='truyen-title').get_text()
    return posts
예제 #2
0
def scrape2():
    response = requests.get(eel.giveLink()())
    soup = BeautifulSoup(response.text, 'html.parser')
    posts = soup.findAll('p')
    post = ''
    for p in posts:
        post += (str(p))
    post = post.replace("'", "\\'")
    post = post.replace('"', '\\"')
    return post
예제 #3
0
파일: main.py 프로젝트: xingseol/kevinator
def scrapeNext():
    link = eel.giveLink()()
    response = requests.get(link)
    soup = BeautifulSoup(response.text, 'html.parser')
    button = None
    if 'wuxiaworld.site' in link:
        button = soup.find(class_='btn prev_page')
    else:
        button = soup.findAll(class_="btn btn-success")[1]
    return button.get('href')
예제 #4
0
파일: main.py 프로젝트: xingseol/kevinator
def scrape2():
    link = eel.giveLink()()
    response = requests.get(link)
    soup = BeautifulSoup(response.text, 'html.parser')
    posts = None
    if 'wuxiaworld.site' in link:
        posts = soup.find(class_='text-left').findAll('p')
    else:
        posts = soup.findAll('p')
    post = ''
    for p in posts:
        post += (str(p))
    post = post.replace("'", "\\'")
    post = post.replace('"', '\\"')
    return post
예제 #5
0
def scrape():
    response = requests.get(eel.giveLink()())
    soup = BeautifulSoup(response.text, 'html.parser')
    posts = soup.find(class_='truyen-title').get_text()
    return posts
예제 #6
0
def scrapeNext():
    response = requests.get(eel.giveLink()())
    soup = BeautifulSoup(response.text, 'html.parser')
    button = soup.findAll(class_="btn btn-success")[1]
    return button.get('href')