def scrape_index(url): """Takes a URL like http://www.htmlbible.com/sacrednamebiblecom/index.htm. Returns a list of dictionaries, each dictionary has a 'book' (like 'Genesis'), and a 'urls', a list of URLs suitable for passing to scrape_chapter.""" return u.scrapeWith(url, _scrape_index)
def scrape_chapter(url): """Takes a URL like http://www.htmlbible.com/sacrednamebiblecom/B01C001.htm Returns a list of strings, each a verse.""" return u.scrapeWith(url, _scrape_chapter)
def scrape_chapter(url): '''Takes a url like http://www.sacred-texts.com/hin/rigveda/rv05055.htm. Returns a list of strings, each a verse-ish''' return u.scrapeWith(url, _scrape_chapter)
def scrape_book(url): '''Takes a url like http://www.sacred-texts.com/hin/rigveda/rvi01.htm. Returns a list of dictionaries, each with a 'name' and 'url' (url is for scrape_hymn)''' return u.scrapeWith(url, _scrape_book)
def scrape_index(url): '''Takes a url like http://www.sacred-texts.com/bud/btg/index.htm. Returns a list of dictionaries, each with 'name' and 'url' keys (url for scrape_book)''' return u.scrapeWith(url, _scrape_index)
def scrape_book(url): '''Takes a url like http://www.sacred-texts.com/bud/btg/btg56.htm Returns a list of strings, each verse-ish.''' return u.scrapeWith(url, _scrape_book)