Last analyzed 6f3c973 3 months ago
Default analysis branch is
Currently analyzing run
Consider removing the commented out code block PY-W0069
Anti-pattern
5 months ago โ€” 5 months old
Consider removing the commented out code block
261#     print(str(datetime.now()) + ' ' + script_name + f':\n\n๐ŸŽ‰ Success! All book metadata scraped. ๐ŸŽ‰\n\nMetadata files have been output to /{args.output_directory_path}\nGoodreads scraping run time = โฐ ' + str(datetime.now() - start_time) + ' โฐ')
262
263
264# if __name__ == '__main__':265#     main()
Consider removing the commented out code block
219
220    return books
221
222# def main():223#     start_time = datetime.now()
224#     script_name = os.path.basename(__file__)
225#
Consider removing the commented out code block
 34
 35        # Format lists text.
 36        for _list in lists:
 37            # _list_name = ' '.join(_list.split()[:-8]) 38            # _list_rank = int(_list.split()[-8][:-2]) 
 39            # _num_books_on_list = int(_list.split()[-5].replace(',', ''))
 40            # list_count_dict[_list_name] = _list_rank / float(_num_books_on_list)     # TODO: switch this back to raw counts
Consider removing the commented out code block
199    br1 = """Book name: Chaso Kathalu
200"""
201    br2 = br1 + r"\n Author Name: Niall Kishtainy \n Goodreads url : https://www.goodreads.com/book/show/32622193-a-little-history-of-economics \n Genres: Economics, History, Non-fiction \n Synopsis: What causes poverty? Are economic crises inevitable under capitalism? Is government intervention in an economy a helpful approach or a disastrous idea? The answers to such basic economic questions matter to everyone, yet the unfamiliar jargon and math of economics can seem daunting. This clear, accessible, and even humorous book is ideal for young readers new to economics and for all readers who seek a better understanding of the full sweep of economic history and ideas."
202    # print(BuddyRead(br2, "Bippity Boppity")())203    print(BuddyRead(br1, "Bobbity Boppity")())