skillsnetwork.read#
- async skillsnetwork.read(url, chunk_size=8192)[source]#
Reads file at URL into bytes
>>> import skillsnetwork >>> content = await skillsnetwork.read("https://example.com/myfile") # Is bytes >>> content_str = content.decode() # Is str
- Parameters
- Return type
- Returns
bytes containing file located at URL
- Raises
FileNotFoundError – If path is invalid.
InvalidURLException – If URL is invalid.