fork download
  1. def get_chapter(url):
  2. scraper = cloudscraper.create_scraper()
  3. r = scraper.get(url)
  4. soups = BeautifulSoup(r.content, 'html.parser').find_all('div', class_='bbWrapper')
  5. res = ''
  6. for soup in soups:
  7. res += soup.text
  8. return res
  9. def get_all_chapters():
  10. return get_chapter('https://v...content-available-to-author-only...z.vn/t/hoa-vang-thuo-ay.20087/post-498857')
  11.  
Success #stdin #stdout 0.02s 7104KB
stdin
Standard input is empty
stdout
Standard output is empty