art_of_war module¶
Class meant to be used to interface with suntzusaid.com.
-
class
art_of_war.ArtOfWar(url=None)¶ Bases:
scraping.website_scraper.WebsiteScraperA class intended to be used as an API for suntzusaid.com.
-
parse_book(book_route)¶ Takes in a route for a book route (e.g. book/6/33/) and returns the text of the webpage.
- Args:
- book_route: string that denotes a book passage route
- Returns:
- Raw text, perhaps separated into a list?
-
search_word(word)¶ Gets the contents of the /search.php?q={word} endpoint.
- Args:
- word: keyword to investigate.
- Returns:
- List of tuples of (passage quote, relevant passage URL route).
-