aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2019-09-07 22:30:38 -0700
committerJames Taylor <user234683@users.noreply.github.com>2019-09-07 22:30:38 -0700
commitf1e3954529e91ace203263b2e9e3cd1dbb1a5ea2 (patch)
tree264386569cac9ff70ac465cb3e898d45f2cfd398
parent6a55771630cd96b91881dddcb62bc54b01a7b2a8 (diff)
downloadyt-local-f1e3954529e91ace203263b2e9e3cd1dbb1a5ea2.tar.lz
yt-local-f1e3954529e91ace203263b2e9e3cd1dbb1a5ea2.tar.xz
yt-local-f1e3954529e91ace203263b2e9e3cd1dbb1a5ea2.zip
Update README
-rw-r--r--README.md98
1 files changed, 69 insertions, 29 deletions
diff --git a/README.md b/README.md
index 92bbcbf..f59ecfe 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,65 @@
# youtube-local
-![screenshot](https://user-images.githubusercontent.com/28744867/42791028-dabb709a-8922-11e8-935b-6680541e08e4.png)
-youtube-local is a browser-based client written in Python for watching Youtube anonymously and without the lag of the javascript-heavy page used by Youtube. One of the primary features is that all requests are routed through Tor, except for the video file at googlevideo.com. This is analogous to what HookTube does, except that you do not have to trust a third-party to respect your privacy. The assumption here is that Google won't put the effort in to incorporate the video file requests into their survelliance systems, as it's not worth pursuing the incredibly small number of users who care about privacy. Tor has high latency, so this will not be as fast as regular Youtube. However, using Tor is optional; when not routing through Tor, video pages may load faster than they do with Youtube's laggy javascript page depending on your browser.
+![screenshot](https://user-images.githubusercontent.com/28744867/64483429-8a890780-d1b6-11e9-8423-6956ff7c588d.png)
+youtube-local is a browser-based client written in Python for watching Youtube anonymously and without the lag of the slow page used by Youtube. One of the primary features is that all requests are routed through Tor, except for the video file at googlevideo.com. This is analogous to what HookTube (defunct) and invidious do, except that you do not have to trust a third-party to respect your privacy. The assumption here is that Google won't put the effort in to incorporate the video file requests into their tracking, as it's not worth pursuing the incredibly small number of users who care about privacy. Tor has high latency, so this will not be as fast as regular Youtube. However, using Tor is optional; when not routing through Tor, video pages may load faster than they do with Youtube's laggy page depending on your browser.
-The Youtube API is not used, so no keys or anything are needed. It uses the same requests as the Youtube webpage. No javascript is used either.
+The Youtube API is not used, so no keys or anything are needed. It uses the same requests as the Youtube webpage.
-Additionally, playlists can be created, and these are stored locally on your computer. The problem with creating playlists on Youtube's servers is (1) they're datamined and (2) videos frequently get deleted by Youtube and lost from the playlist (making it very difficult to find a reupload as the title of the deleted video is not displayed).
+## Screenshots
+[Gray theme](https://user-images.githubusercontent.com/28744867/64483431-8e1c8e80-d1b6-11e9-999c-14d36ddd582f.png)
+
+[Dark theme](https://user-images.githubusercontent.com/28744867/64483432-8fe65200-d1b6-11e9-90bd-32869542e32e.png)
+
+[Non-Theater mode](https://user-images.githubusercontent.com/28744867/64483433-92e14280-d1b6-11e9-9b56-2ef5d64c372f.png)
+
+[Channel](https://user-images.githubusercontent.com/28744867/64483436-95dc3300-d1b6-11e9-8efc-b19b1f1f3bcf.png)
+
+[Downloads](https://user-images.githubusercontent.com/28744867/64483437-a2608b80-d1b6-11e9-9e5a-4114391b7304.png)
+
+## Features
+- Standard pages of Youtube: search, channels, playlists
+- Anonymity from Google's tracking by routing requests through Tor
+- Local playlists: These solve the two problems with creating playlists on Youtube: (1) they're datamined and (2) videos frequently get deleted by Youtube and lost from the playlist, making it very difficult to find a reupload as the title of the deleted video is not displayed.
+- Themes: Light, Gray, and Dark
+- Subtitles
+- Easily download videos or their audio
+- View or post comments
+- Works without Javascript
+- Theater and non-theater mode
+- Subscriptions that are independent from Youtube
+ - Works by checking channels individually
+ - Can be set to automatically check channels.
+ - For efficiency of requests, frequency of checking is based on how quickly channel posts videos
+ - Can mute channels, so as to have a way to "soft" unsubscribe. Muted channels won't be checked automatically or when using the "Check all" button. Videos from these channels will be hidden.
+ - Can tag subscriptions to organize them or check specific tags
+- Fast page
+ - No distracting/slow layout rearrangement
+ - No lazy-loading of comments; they are ready instantly.
+- Settings allow fine-tuned control over when/how comments or related videos are shown:
+ 1. Shown by default, with click to hide
+ 2. Hidden by default, with click to show
+ 3. Never shown
+
+## Planned features
+- [] Putting videos from subscriptions or local playlists into the related videos
+- [] Information about video (geographic regions, region of Tor exit node, etc)
+- [] Ability to delete playlists
+- [] Auto-saving of local playlist videos
+- [] Import youtube playlist into a local playlist
+- [] Rearrange items of local playlist
+- [] Muxing of 1080p
+- [] Corrected .m4a downloads
+- [] Replying to comment replies
+- [] Editing comments
+- [] Indicate if comments are disabled
+- [] Indicate how many comments a video has
+- [] Featured channels page
+- [] Channel comments
+- [] Video transcript
+- [] Tor RC
+- [] Support &t parameter
+- [] Subscriptions: Option to mark what has been watched
+- [] Subscriptions: Option to filter videos based on keywords in title or description
## Installing
@@ -15,61 +69,47 @@ Download the zip file under the Releases page. Unzip it anywhere you choose.
### Linux/MacOS
-Ensure you have python 3.5 or later installed. Then, install gevent, brotli, PySocks, and urllib3 by running
+Download the tarball under the Releases page and extract it. `cd` into the directory and run
```
-pip3 install gevent brotli pysocks urllib3
+pip3 install -r requirements.txt
```
-**Note**: If pip isn't installed, install it according to [this answer](https://unix.stackexchange.com/a/182467), but make sure you run `python3 get-pip.py` instead of `python get-pip.py`
-Download the tarball under the Releases page and extract it.
+**Note**: If pip isn't installed, install it according to [this answer](https://unix.stackexchange.com/a/182467), but make sure you run `python3 get-pip.py` instead of `python get-pip.py`
## Usage
-Firstly, if you wish to run this in portable mode, create the empty file "settings.txt" in the program's main directory. If the file is there, settings and data will be stored in the same directory as the program. Otherwise, settings and data will be stored in `C:\Users\[your username]\.youtube-local` on Windows and `~/.youtube-local` on Linux/MacOS. The settings file will be filled with the default settings when the program is first run (provided the file is empty).
+Firstly, if you wish to run this in portable mode, create the empty file "settings.txt" in the program's main directory. If the file is there, settings and data will be stored in the same directory as the program. Otherwise, settings and data will be stored in `C:\Users\[your username]\.youtube-local` on Windows and `~/.youtube-local` on Linux/MacOS.
-To run the program on windows, open run.bat. On Linux/MacOS, run `python3 server.py`.
+To run the program on windows, open `run.bat`. On Linux/MacOS, run `python3 server.py`.
Access youtube URLs by prefixing them with `localhost:8080/`, For instance, `http://localhost:8080/https://www.youtube.com/watch?v=vBgulDeV2RU`
-You can use an addon such as [Redirector](https://addons.mozilla.org/en-US/firefox/addon/redirector/) to automatically redirect Youtube URLs to youtube-local. I use the include pattern `^(https?://(?:[a-zA-Z0-9_-]*\.)?(?:youtube\.com|youtu\.be)/.*)` and the redirect pattern `http://localhost:8080/$1`. I also exclude `^https?://(?:[a-zA-Z0-9_-]*\.)?youtube\.com/feed/subscriptions` for subscriptions.
+You can use an addon such as [Redirector](https://addons.mozilla.org/en-US/firefox/addon/redirector/) to automatically redirect Youtube URLs to youtube-local. I use the include pattern `^(https?://(?:[a-zA-Z0-9_-]*\.)?(?:youtube\.com|youtu\.be)/.*)` and the redirect pattern `http://localhost:8080/$1`.
youtube-local can be added as a search engine in firefox to make searching more convenient. See [here](https://support.mozilla.org/en-US/kb/add-or-remove-search-engine-firefox) for information on firefox search plugins.
### Using Tor
-Change `route_tor = False` to `route_tor = True` in settings.txt to enable Tor routing.
-If settings.txt doesn't exist yet, run the program and it will be created with the default settings.
-
-Ensure tor is listening for Socks5 connections on port 9150 (a simple way to accomplish this is by opening the Tor Browser Bundle and leaving it open). Your connections should now be routed through Tor.
+In the settings page, enable "Route Tor". Be sure to save the settings.
-## Planned Features
-
-- Options for saving playlists
-- Settings
-- Subscriptions
-- ~~Posting comments~~ done
-- And others I couldn't think of when making this list
+Ensure Tor is listening for Socks5 connections on port 9150 (a simple way to accomplish this is by opening the Tor Browser Bundle and leaving it open). Your connections should now be routed through Tor.
Pull requests and issues are welcome
-## Screenshots
-[Channel](https://user-images.githubusercontent.com/28744867/42792117-bb8d7e9c-8928-11e8-8776-60076a7ad3de.png)
-
-[Video/Audio Downloading](https://user-images.githubusercontent.com/28744867/42792131-c5a4999c-8928-11e8-8f50-0161ea15067c.png)
## License
This project is licensed under the GNU Affero General Public License v3 (GNU AGPLv3) or any later version.
-Permission is hereby granted to the youtube-dl project at https://github.com/rg3/youtube-dl to relicense any portion of this software under the Unlicense, public domain, or whichever license is in use by youtube-dl at the time of relicensing, for the purpose of inclusion of said portion into youtube-dl. Relicensing permission is not granted for any purpose outside of direct inclusion into the [official repository](https://github.com/rg3/youtube-dl) of youtube-dl. If inclusion happens during the process of a pull-request, relicensing happens at the moment the pull request is merged into youtube-dl; until that moment, any cloned repositories of youtube-dl which make use of this software are subject to the terms of the GNU AGPLv3.
+Permission is hereby granted to the youtube-dl project at [https://github.com/rg3/youtube-dl](https://github.com/rg3/youtube-dl) to relicense any portion of this software under the Unlicense, public domain, or whichever license is in use by youtube-dl at the time of relicensing, for the purpose of inclusion of said portion into youtube-dl. Relicensing permission is not granted for any purpose outside of direct inclusion into the [official repository](https://github.com/rg3/youtube-dl) of youtube-dl. If inclusion happens during the process of a pull-request, relicensing happens at the moment the pull request is merged into youtube-dl; until that moment, any cloned repositories of youtube-dl which make use of this software are subject to the terms of the GNU AGPLv3.
## Similar projects
- [youtube-dl](https://rg3.github.io/youtube-dl/), which this project is based off
+- [invidious](https://github.com/omarroth/invidious) Nearly identical to this project. More polished and with more features.
- [NewPipe](https://newpipe.schabi.org/) (app for android)
- [mps-youtube](https://github.com/mps-youtube/mps-youtube) (terminal-only program)
- [youtube-viewer](https://github.com/trizen/youtube-viewer)
-- [FreeTube](https://github.com/FreeTubeApp/FreeTube) (almost the same as this project, but is an electron app outside the browser)
+- [FreeTube](https://github.com/FreeTubeApp/FreeTube) (Similar to this project, but is an electron app outside the browser)
- [smtube](https://www.smtube.org/)
- [Minitube](https://flavio.tordini.org/minitube), [github here](https://github.com/flaviotordini/minitube)
- [toogles](https://github.com/mikecrittenden/toogles) (only embeds videos, doesn't use mp4)
- [goyt](https://gitgud.io/m712/goyt/)
-- [invidious](https://github.com/omarroth/invidious)