-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question]: #1093
Comments
Running
|
here is what happens when I run this command
It actually doesn't parse one command after another. What is the issue ? |
A lot of functionality has been broken since migrating from python, I think. try fabric --dry-run -u https://alistapart.com/article/user-research-is-storytelling/ > new.txt or to push it directly to Obsidian (note taking app)
|
hi, use the latest release (e.g. https://github.com/danielmiessler/fabric/releases/tag/v1.4.81) and just do fabric -u "https://alistapart.com/article/user-research-is-storytelling/" > user-research-is-storytelling.md fabric -y "https://www.youtube.com/watch?v=wPEyyigh10g" > yt-into-fabric.md |
Hi @tazomatalax, could you please provide a bit more detail on which functionality isn’t working since migrating from python? |
I have found that the yt --transcript, has not worked for me. The only way i can get a transcript is to put
in my .zshrc and do
Otherwise it will try and pass the transcript through the LLM rather than returning transcript. Also the transcript ends up having "'" smattered all through it and I cant figure out why. Any insights? also piping to "save" function to FABRIC_OUTPUT_PATH in .env as well. hence the > function above. |
The first point was a bug and it is fiexed now. If you use What is the exact idea of FABRIC_OUTPUT_PATH? Ii will check the copy function |
Oh awesome thanks! I can confirm its working. Still getting the ' through out the transcript though. Should I create an issue?
I watched that networkchuck video in the README.md and he mentions the save to obsidian function towards the end. |
Yes, please, it is easier to handle. |
I fixed the ' character issue in the last release |
I don't have a youtube API key so I just use this: set -euo pipefail
usage() {
echo "Usage: yttr [--time] <URL>"
echo " --time Optional flag to include timestamps"
echo " <URL> Required Youtube URL"
exit 1
}
time_flag=false
url=""
while [[ $# -gt 0 ]]; do
case "$1" in
--time)
time_flag=true
shift
;;
*)
if [[ -z "$url" ]]; then
url="$1"
else
usage
fi
shift
;;
esac
done
if [[ -z "$url" ]]; then
usage
fi
if $time_flag; then
yt-dlp --quiet --no-warnings --write-auto-sub --sub-lang en --skip-download --sub-format ttml --convert-subs srt -o /tmp/transcript "$url" && \
sed -E '/^[0-9]+$/d;/^$/d;s/^([0-9]{2}:[0-9]{2}:[0-9]{2}),[0-9]+ --> .*$/\1/;N;s/\n/ /;s/<[^>]*>//g' /tmp/transcript.en.srt
else
yt-dlp --quiet --no-warnings --write-auto-sub --sub-lang en --skip-download --sub-format ttml --convert-subs srt -o /tmp/transcript "$url" && \
sed -E '/^[0-9]+$/d;/^$/d;s/^[0-9]{2}:[0-9]{2}:[0-9]{2},.*$//;s/<[^>]*>//g;/^$/d' /tmp/transcript.en.srt
fi and pipe the output to fabric |
Issue resolved @eugeis Thanks! |
All output of fabric is being parsed by the LM. Is this normal ?
After reading the documentation, I am still not clear how to save the yt transcript as a txt file.
fabric -y https://www.youtube.com/watch\?v\=n28W4AmvMDE --dry-run | fabric -o transcript.txt
A separate issue is that I have to run this command with -dry-run otherwise if I dofabric -y https://www.youtube.com/watch\?v\=n28W4AmvMDE
the output will already be sent to the LM (Antropic in my case) and the returned text will be an arbitrary interpretation.Is it expected behavior to have all output be sent to Antropic ? whether it is a scrapped page or transcript ?
The text was updated successfully, but these errors were encountered: