GOyt - Simple youtube searcher + streamer

Levi Hall
Levi Hall

I was on a bus and got bored so I wrote this on my >smartphone.
gitgud.io/m712/goyt/
Features:
- Basic search, gives you 20 results: /search/
- Stream/download youtube video (gives best mp4 option): /<id>.mp4
No public instance because I don't have a server that'd handle the bandwidth, but someone can give a shot.

Other urls found in this thread:

f-droid.org/en/packages/org.schabi.newpipe/

Jackson Howard
Jackson Howard

go
your excellent naming scheme makes up for it though.

Hudson Edwards
Hudson Edwards

shut it down!

Robert Butler
Robert Butler

Is this any relation to yt https://github.com/SpaceBudokan/WhyTee, or is the naming convention just that obvious?

Isaiah Price
Isaiah Price

No. I think there is also one I used to use called whitey. Nowadays, I just use searx for searxing for videos. I also have RSS feeds for "subscriptions."

Levi Walker
Levi Walker

Nope, just coincidence. I didn't know that existed.
you can also call the program "go whitey!" i guess

Jayden Murphy
Jayden Murphy

You typed from the virtual keyboard?
What goyphone do you have?

David Nelson
David Nelson

Ok. But why?

Nicholas Sullivan
Nicholas Sullivan

Shit, I was hoping my little script inspired someone. I just cranked that out one day for an user that was bitching about no programs that let him youtube from the command line. Oh well.

Connor Campbell
Connor Campbell

GT-I9300 (Galaxy S3). I have manlet hands so it's not hard to type even with 440dpi. I use Termux, neovim and Hacker's Keyboard.
Ok. But why?
I cannot read
<I was on a bus and got bored so I wrote this on my >smartphone.

Brayden Nguyen
Brayden Nguyen

how do I get to the interface from Links once it's running? Maybe I'm just retarded, but I have goyt running in a terminal but don't know how to get to the interface so I can search and download JewTube vids

Jackson Walker
Jackson Walker

Yeah ok. But why would I use this?

Hudson Taylor
Hudson Taylor

It's not for use by everyone, it's meant to be used as a server. Think a shittily made and no-JS, no-botnet alternative to HookTube. Someone will host this and people will use it.
spoon.Feed(links -g <url>)

Oliver Morales
Oliver Morales

youtube from the command line
you should hook this to mplayer and play the videos in the terminal window too

mplayer -vo caca goyapprovedvideo.mp4

Angel Torres
Angel Torres

no-botnet
So you don't need to connect to google to play videos?

Dominic Harris
Dominic Harris

thanks m8. I like it.

Ryan Williams
Ryan Williams

You could, but it's meant to be kind of a unix philosophy kind of thing. It just grabs data from youtube and barfs it to stdout in a minimally human readable form for you to parse and manipulate however you want with other scripts. If you want to feed it into mplayer than go for it. It shouldn't be too hard to use yt to crank out an mpsyt type script that does what you want. Like I mentioned earlier, (and kinda in the readme) I cranked it out in a couple hours to shutup an user that was bitching about how mpsyt wasn't minimal enough and didn't just barf out enough raw data. I told him that even my retarded larper ass could easily write a script to do that, and then I did.

Brayden Rodriguez
Brayden Rodriguez

that makes sense. if that's the goal you should give it an option to pump out all the data in json or something then, instead of having to then parse this minimal front-end that is parsing youtube.

Jaxon Adams
Jaxon Adams

what is youtube api
hmmmmmm

Brayden Harris
Brayden Harris

You need to sign up for an API key. goyt doesn't need that.
The server owner has to connect to google so you don't have to.
Good idea, will implement.

Joshua Reyes
Joshua Reyes

So who is willing to pay for it?
This sounds like a completely retarded project tbh.

John Hughes
John Hughes

Whoever the fuck wants tho. I provide the software, someone can provide the service. I use this personally to download youtube videos over a filtered network.

Benjamin Garcia
Benjamin Garcia

Whoever the fuck wants tho.
Nobody then
I use this personally to download youtube videos over a filtered network.
What is TOR/VPN

Jason Russell
Jason Russell

Neither work there. They whitelist sites and few ports. (not work)

Cooper Torres
Cooper Torres

a big issue with this is going to be if this was put on a server and got even a minimal amount of usage it would start getting hit with captcha's constantly for being a bad goy and not using their api, which you have to pay for.

Levi Garcia
Levi Garcia

you might solve this by parsing the captcha and forwarding it to the user somehow, then the server is going to grind to a halt until someone solves that captcha. the code for this is going to be ten times the size of your codebase though. and eventually kiketube will just shoah the ip address. this is why hooktube uses the api, it wouldn't function without it.

Liam Walker
Liam Walker

If that's the case, I can switch to using the API. I'll look into it.

Ryder Sanchez
Ryder Sanchez

I put out an update for a JSON API. It lives at /search.json.

Adam Adams
Adam Adams

What's the advantages over mps-youtube?

Carter Evans
Carter Evans

The idea is that there's a server who's connecting to (((Youtube))) servers for you, so you don't have to. mps-youtube connects directly to youtube from your connection. This also helps in bypassing youtube blocks (if you use a benign domain name).

Colton Sanders
Colton Sanders

Well f-droid.org/en/packages/org.schabi.newpipe/

Nolan Bennett
Nolan Bennett

I already yse a bunch of proxies with youtube-dl, so your agument is invalid. Why should I trust some literally who on mitming queries to youtube for me?

Samuel Gomez
Samuel Gomez

I already use a bunch of proxies with youtube-dl, so your agument is invalid. Why should I trust some literally who on mitming queries to youtube for me?

Colton Ortiz
Colton Ortiz

It's your choice. Someone might use it (no access to proxies because of blocked ports)

Nolan Rodriguez
Nolan Rodriguez

Thank you so much.

Jack Murphy
Jack Murphy

I use it a lot, but
android

Owen Cruz
Owen Cruz

tripfag

Lucas Reed
Lucas Reed

I think there already exists surfraw, but not sure if the youtube elvi is functional. Goytube always changes shit and it breaks programs like youtube-dl, so it has to be updated constantly. Also, that fucking javascript...

Christian Perez
Christian Perez

Shut the fuck up.

Jeremiah Cox
Jeremiah Cox

L0L kill yourself