52. Structured Data Output
Scraped data should be stored in structured formats like JSON or CSV.
Example
import json
data = [{"title": "Example", "url": "http://example.com"}]
with open("output.json", "w") as f:
json.dump(data, f, indent=2)
Wrap-Up
Structured output makes scraped data reusable and easy to analyze.