Advertisement
Guest User

Untitled

a guest
Jan 28th, 2018
450
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.90 KB | None | 0 0
  1. import functions
  2.  
  3. info = {"link": "http://www.wuxiaworld.com/emperor-index/emperor-chapter-",
  4.     "ChapterName": "emperor-chapter-",
  5.     "NovelName": "Emperor's Dominaion",
  6.     "author": "Yan Bi Xiao Sheng, Bao"}
  7.  
  8. starting_chapter = input("What chapter do you want to start at?: ")
  9. ending_chapter = input("Till what chapter do you want to read?: ")
  10.  
  11. link_list = []
  12. for s in range(int(starting_chapter), int(ending_chapter) + 1):
  13.     link_list.append(info["link"] + str(s))
  14.  
  15. name_counter = int(starting_chapter)
  16. file_list = []
  17. for x in range(len(link_list)):
  18.     functions.download(link_list[x], str(x) + ".html")
  19.     functions.clean(str(x) + ".html", info["ChapterName"] + str(name_counter) + ".xhtml")
  20.     file_list.append(info["ChapterName"] + str(name_counter) + ".xhtml")
  21.     name_counter += 1
  22.  
  23. functions.generate(file_list, info["NovelName"], info["author"], starting_chapter, ending_chapter)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement