Skip to content

Commit

Permalink
update readme with download()
Browse files Browse the repository at this point in the history
  • Loading branch information
nichind committed Dec 7, 2024
1 parent 1d17cd6 commit b15b92b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,11 @@ cobalt -pl 'https://youtube.com/playlist?list=PL_93TBqf4ymR9GsuI9W4kQ-G3WM7d2Tqj
<h3>Download video from URL</h3>

```python
from pybalt import Cobalt
from pybalt import download
from asyncio import run

async def main():
cobalt = Cobalt()
path = await cobalt.download('https://youtube.com/watch?v=8ZP5eqm4JqM')
path = await download('https://youtube.com/watch?v=8ZP5eqm4JqM')
print('Downloaded: ', path) # Downloaded: /Users/%USER%/Downloads/8ZP5eqm4JqM.mp4

run(main())
Expand Down

0 comments on commit b15b92b

Please sign in to comment.