Advertisement
dereksir

Untitled

Nov 22nd, 2023
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. async def main():
  2.     url = "https://scrapeme.live/shop/"
  3.  
  4.     # Time Tracking: Start Time
  5.     start_time = time.time()
  6.  
  7.     # Fetching content asynchronously
  8.     content = await fetch(url)
  9.  
  10.     # Printing content
  11.     print(content)
  12.  
  13.     # Time Tracking: End Time
  14.     end_time = time.time()
  15.  
  16.     # Calculating and printing the time taken
  17.     print(f"Time taken: {end_time - start_time} seconds")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement