Looks like this site is just a wrapper around the YouTube search API, which allows you to specify a location to retrieve results from.
From the documentation[0], "The location parameter, in conjunction with the locationRadius parameter, defines a circular geographic area and also restricts a search to videos that specify, in their metadata, a geographic location that falls within that area. The parameter value is a string that specifies latitude/longitude coordinates."
Looks like you can add a location to your video in the Advanced Settings panel in the video settings: http://i.imgur.com/AtnTu7F.png
As far as I can tell, location is not added by default (I tried uploading a video that has embedded location data and that location was not added to YouTube; I would have to add the location manually).
I regret using the word "just", sorry for seeming negative. I only meant to clarify that this doesn't expose any information that YouTube isn't purposefully providing as part of the search API. I apologize for the confusion!
It's OK dude. If people deem a comment "derisive" just because of a normal word then this whole environment is quite insane. Don't feel bad for pointing out a fact. You did the right thing! If you pay too much attention to how the whole world is reacting to your words then you'll get absolutely nothing done. There will always be negative voices no matter what. The fact that your post is on top speaks for itself.
I don't think a "wrapper" is anywhere near the meaning of a "hack". Most of the things we see posted here on HN probably involve more work and creation. Not saying that such a wrapper is not valuable, just that I think this response just intends to point out a fact. To say it's a "derision" is way too reactive. So would you rather nobody point out the fact at all and just leave it be? That would be a far worse situation IMO.
Good on you, it's definitely pretty neat! Sorry, I didn't mean to imply that this was simple or anything! At first I interpreted it as a security / privacy bug where you were exposing what your neighbors were uploading, so my comment was just meant to clarify that this is an intentional behavior of the YouTube API.
Same thoughts here. Nothing really impressive in my case, but since I'm used to think that where I live is pretty boring place it's somewhat relieving to see that there's actually life happening around me.
Thank you! Usually, travel videos are geotagged, you can search with keyword "street food", "restaurant", "trip", "travel". And that is the primary purpose of the site.
+1. Another nice (and I guess pretty simple) adjustment would be to show a circle on the map, to help user see, how much "5 km" (or whatever) exactly are.
I'd far prefer some sort of interface to allow me to queue the motherfucking videos in the queue-capable viewer of my choice. VLC has some of these features, though its tendency to catch fire and halt (destroying the queue in the process) is annoying.
1. right-click -> "Copy Link Location"
2. middle click to paste the link into you shell
3. run "youtube-dl" on the URL(s)
4. watch the videos in whatever video player you want
One of these days I should make a quick firefox extension that adds a context-menu option to collapse it down to one step.
You will have to update youtube-dl every time (see the "-U" option) Google decides to change the obfuscation. Also, you may want to try the --list-extractors and --extractor-descriptions options, to see the long list of sites that are supported, which includes support for things like youtube playlists searches.
I have a cute setup for playing YouTube videos (mostly music) via SSH from my phone when I'm lying on my bed and too lazy to get up. There's a small CL script which searches YouTube based on a query, then fires up youtube-dl and dumps the raw file to a named pipe. Then, when the header and everything needed for VLC to start streaming is ready, it starts up VLC via its ncurses interface, so I can volume up/down, pause/play and seek if needed from my phone. VLC is nice enough to fire up an X11 window if you give it the right DISPLAY environment variable over SSH, so you can watch the video (even make it fullscreen via the ncurses interface). Once the video finishes playing, obviously, the named pipe and the data is gone---everything's in memory anyways.
These days I'll get to uploading it to GitHub, maybe even turn it into a Firefox extension/Android app. Though it's a little specific to my use case: I have a quality sound system attached to my desktop computer so it doesn't feel right to listen to stuff on my laptop/phone when there is such a great setup lying around. And setting up SBCL and Shelly just to run Common Lisp scripts is a little bit of an overkill.
Sorry for the off-topic, just felt like sharing this bit of my computer-aided laziness :)
Well, everything goes through the FIFO pipe. VLC should block on reading if there is not enough data, though I haven't tested it in that case (I have a cable connection so video hiccups don't normally happen). The script buffers the first couple of kilobytes so the header is immediately available, but beyond that buffering should be handled by the kernel. Though I might be misunderstanding your question...
Hm, this works for me. Maybe try with `-f best`? Here's a minimal working example (just figured out it doesn't even need the header buffering hack I was using so far):
And VLC plays the video just fine. youtube-dl downloads it from YouTube as the bytes are read() by VLC, so the D/L speed is around 25KiB/s.
Though I assume you can also stream this at full speed by doing a `mktemp` and dumping the data into the file. In my experience, VLC handles files which are still being appended data just fine, but it'll freak out if it reaches EOF before the end of the stream. If your /tmp is tmpfs, which it is everywhere AFAIK, the only difference is that the video is being downloaded in full speed. Alternatively, if your downlink is fast (for instance, 4MiB/s) and you don't mind the slight delay, you can as well download the file wholly as mentioned in one of the ancestor comments.
Actually, as I mentioned, /tmp is (AFAIK) everywhere a tmpfs mount, which means these files are kept in RAM and stored to disk only if their pages are swapped.
/tmp is typically but not always a tmpfs mount. Presumptions about where files are or aren't actually written to disk given modern virtual memory is ... somewhat fraught.
It also happens that my /tmp is physically allocated.
And named pipes really and truly work differently (though there can still be buffering).
That said, no joy (though I tracked down the issue above -- configfile setting conflicting with commandline parameters, somewhat annoyingly).
That is in fact my working solution. The disadvantage over VLC is that you've got the videos sitting on disk, sucking space, while VLC will queue and buffer videos.
Depending on what you're watching, youtube-dl can suck up a lot of space.
Mind the -F and -f options -- these list and select video quality. I find '43' for YouTube (640x360) is usually sufficient for instructional materials (lectures/presentations).
Someone living near my parents looks to have uploaded a hundred or so "chemtrail attack" videos. I honestly had no idea that people in the UK were into that sort of thing, but that's the internet I guess.
I'm not sure what should surprise me more. The fact that I'm somehow living at epicentre of Zumba thumpquake or that I was completely unaware of so many women my age in my 1 km radius.
Jokes aside, the sad thing is that YouTube would most likely have locations set by IP. So I'm certain the distances are off. At best this thing can tell me videos from my city. Still a neat hack.
This post is currently the only Google result for "Zumba thumpquake". No quotes, even. So I still don't know what the heck it is, but thanks for helping me achieve a Googlewhack. :D
So the site asks if it can use my location and I click yes. Safari asks if it can use my location which I allow. I then hit the search button and am dumped into a map of Russia. Oh well. Tried on iPhone and it gives an address in the next town over, but the map shows the pointer in the correct town. What the heck?
I had this result as well. At first, I thought I was getting spammed but every result for the first few pages were real estate and car dealerships. As noted above, you may have to manually make the location available so that would self select gor these services.
lol "travel the world". Don't be so grandiose. The only way to actually explore and travel the world is to set your feet out and get around, learn the language and culture. This is such nonsensical branding.
From the documentation[0], "The location parameter, in conjunction with the locationRadius parameter, defines a circular geographic area and also restricts a search to videos that specify, in their metadata, a geographic location that falls within that area. The parameter value is a string that specifies latitude/longitude coordinates."
Looks like you can add a location to your video in the Advanced Settings panel in the video settings: http://i.imgur.com/AtnTu7F.png
As far as I can tell, location is not added by default (I tried uploading a video that has embedded location data and that location was not added to YouTube; I would have to add the location manually).
[0]: https://developers.google.com/youtube/v3/docs/search/list