Skip to content

Python script to web-scrape Wattpad Books and prepare a HTML file of the book

Notifications You must be signed in to change notification settings

rvndbalaji/WattpadToEbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python script to web-scrape Wattpad Books and prepare a HTML file of the book The HTML file itself is the entire eBook It can later be converted to EPUB or MOBI formats using eBook Generators such as KindleGen which is included in this repository

Libraries/Imports used : 1. Urllib 2. Requests 3. BeautifulSoup 4. Codecs OUTPUT: A HTML file containing the entire eBook with all chapters. This can later be converted to any eBook using third-party tools such as KindleGen (included in this repo) or Calibre

TO RUN:

python watty_ebook.py

ID is the 9 digit number that is present in the address bar [link of the Book] after visiting any of the chapters

alt tag

The name that is entered is given as the filename later

alt tag

You may use the resulting .HTML file any way you want


DISCLAIMER: Please DO NOT use this (or any script) to illegally distribute the eBooks you find on Wattpad. I'm in no way responsible for any copyrighted material you may obtain. This script is for PERSONAL and EDUCATIONAL purposes ONLY

And yes, you're welcome to make any changes you wish to or add to it's features

Happy Reading Enjoy :)