File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ iterator = jsonl.load("file.jsonl")
5858print (tuple (iterator))
5959
6060# Load data from a URL
61- iterator = jsonl.load(" https://example.com" )
61+ iterator = jsonl.load(" https://example.com/file.jsonl " )
6262print (tuple (iterator))
6363```
6464
Original file line number Diff line number Diff line change @@ -89,11 +89,11 @@ import urllib.request
8989import jsonl
9090
9191# Load data from a URL
92- iterator = jsonl.load(" https://example.com" )
92+ iterator = jsonl.load(" https://example.com/file.jsonl " )
9393print (tuple (iterator))
9494
9595# Load data from a urllib request to handle custom requests
96- req = urllib.request.Request(" https://example.com" , headers = {" Accept" : " application/jsonl" })
96+ req = urllib.request.Request(" https://example.com/file.jsonl " , headers = {" Accept" : " application/jsonl" })
9797iterator = jsonl.load(req)
9898print (tuple (iterator))
9999```
You can’t perform that action at this time.
0 commit comments