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()
219
220 return books
221
222# def main():223# start_time = datetime.now()
224# script_name = os.path.basename(__file__)
225#
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
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")())
It is recommended to remove any commented code in your codebase.
for item in sequence:
# print(item)
do_something(item)
# def old_function():
# '''Older implementation that has been replaced'''
# data = get_data()
# api.post(data)
for item in sequence:
do_something(item)