1ycx / wuxiaworld Goto Github PK
View Code? Open in Web Editor NEWPython Script To Copy Chapters From wuxiaworld.com Into An EPUB File.
License: Apache License 2.0
Python Script To Copy Chapters From wuxiaworld.com Into An EPUB File.
License: Apache License 2.0
Hi,
I've tried pretty much everything I could think of, but I keep getting this error :
Traceback (most recent call last):
File "code.py", line 17, in <module>
if sys.argv[1]:
IndexError: list index out of range
According to instructions, I've changed the script as follows:
# Enter The Novel URL Here
# Link format : https://www.wuxiaworld.com/novel/ancient-strengthening-technique/
novelURL = 'https://www.wuxiaworld.com/novel/keyboard-immortal/'
if sys.argv[1]:
novelURL = sys.argv[1]
I just don't get what else I can do. Any hint ?
Hello devs,
@yaamas
If you can still update your script, please improve the script to support the latest site from www.wuxiaworld.com.
HI my terminal runs this error
COuld not identify it
Traceback (most recent call last):
File "/Users/me/Library/Preferences/PyCharmCE2018.1/scratches/scratch.py", line 26, in
synopsis = soup.select('div[class="fr-view"]')[1]
IndexError: list index out of range
what do i have to change?
Line 49: c1.content = div.encode('ascii')
.epub files should be encoded in "utf-8" or "utf-16" as non-ascii characters may appear in html files and wuxiaworld.com
When i try to download chapters i get this error.
Traceback (most recent call last):
File "code.py", line 26, in <module>
synopsis = soup.select('div[class="fr-view"]')[1]
IndexError: list index out of range
From this line of code:
synopsis = soup.select('div[class="fr-view"]')[1]
And if i change the index number to 0 the scripts works fine and lets me chose the range of chapters to download but when its all finished and all the only thing thats saved its the image of the novel.
The novel that i tried to download was Overgeared, i am using Windows 10 and everything is updated according to the guide.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.