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
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
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')
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
def scrape(): response = requests.get(eel.giveLink()()) soup = BeautifulSoup(response.text, 'html.parser') posts = soup.find(class_='truyen-title').get_text() return posts
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')