Can Beautiful Soup process JSONL files, or do I need another tool? Alternatively, for a more direct approach

22 Replies, 1452 Views

Hey! Short answer: no, can beautiful soup process jsonl files? Nope.

But jsonl is just JSON lines, so Python’s `json` module is perfect. Here’s a quick snippet:

```python
import json
with open('file.jsonl') as f:
for line in f:
data = json.loads(line)
```

Easy peasy.

Messages In This Thread



Users browsing this thread: 1 Guest(s)