danielmiessler / fabric

fabric is an open-source framework for augmenting humans using AI. It provides a modular framework for solving specific problems using a crowdsourced set of AI prompts that can be used anywhere.
https://danielmiessler.com/p/fabric-origin-story
MIT License
25.13k stars 2.66k forks source link

Unable to get YouTube URLs to interact with models - API and setup all ok #587

Closed fearby closed 1 month ago

fearby commented 5 months ago

Discussed in https://github.com/danielmiessler/fabric/discussions/577

Originally posted by **fearby** June 9, 2024 Yes a hobbyist with little experience. Installed on MacOS ok and API keys added except for Google API The example on the Github landing page will just give me nothing and the following error: yt --transcript https://youtube.com/watch?v=uXs-zPc63kM | fabric --stream --pattern extract_wisdom zsh: no matches found: https://youtube.com/watch?v=uXs-zPc63kM I'm sorry, but it seems like there was no input provided for me to process. Could you please provide the text content you'd like me to analyze?% What am I doing wrong?
zoneandonly commented 5 months ago

This works: https://youtu.be/lEXd6TXPw7E This doesn't: https://www.youtube.com/watch?v=lEXd6TXPw7E l tried quotes around the URL, but to no avail. The "?" seems to be the issue.

seven-of-eleven commented 4 months ago

I had the same issue. Found the two solutions based on @zoneandonly.

  1. Quotes around the URL - worked for me
  2. Escaping the "?" character with "\" (forward slash) in front of the "?" - also worked for me.

I'm on macOS Sonoma using zsh shell in the terminal.

Thanks.

eugeis commented 1 month ago

You can use also

fabric -y "https://youtube.com/watch?v=uXs-zPc63kM" --stream --pattern extract_wisdom