Spaces:
Running
Running
| import asyncio | |
| import json | |
| from app.services.book_url_scraper import scrape_book_url | |
| async def main(): | |
| url = "https://www.barnesandnoble.com/w/judge-stone-james-patterson/1148464105?ean=9780316601696" | |
| res = await scrape_book_url(url) | |
| print(json.dumps(res, indent=2)) | |
| if __name__ == "__main__": | |
| asyncio.run(main()) | |