1ycx / WuxiaWorld

Python Script To Copy Chapters From wuxiaworld.com Into An EPUB File.
Apache License 2.0
14 stars 8 forks source link

Can't run the script #11

Open Trenien opened 2 years ago

Trenien commented 2 years ago

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 ?

astronyu commented 2 years ago
# 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[0]:
    novelURL = sys.argv[0]

Try this, although not sure this is working now since the site implement subscription model.