alexkirsz / catalyst-proxy Goto Github PK
View Code? Open in Web Editor NEWA proxy that accelerates requests via multipart downloading
License: MIT License
A proxy that accelerates requests via multipart downloading
License: MIT License
On start error:
catalyst start -h
module.js:340 throw err; ^ Error: Cannot find module '../../multisource-stream' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> ($npm_folder\node_modules\catalyst-proxy\lib\request.js:13:15) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17)
Changing "Multisource = require '../../multisource-stream'" to "Multisource = require 'multisource-stream'" in src/request.coffee solve error.
Hi Morhaus, I found a way to make catalyst work with Youtube, I force my browser uses Googlebot as User-Agent on Youtube using Privoxy or extension like ModifyHeader, I create this thread to let you know we can accelerate Youtube video now and report a few bugs:
If you use Firefox you can install this addon: https://addons.mozilla.org/en-US/firefox/addon/modify-headers/
Click ModifyHeader icon, select ModifyHeader Options.
Select action choose "Modify", Header name put "User-Agent", Value put "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" and then Start ModifyHeader.
Now you can go to http://www.youtube.com and Youtube and even GoogleVideo will use HTTP instead HTTPS.
Hope you can test Youtube and fix bug, I still get some bug make Catalyst-Proxy stop working in my using progress. Here is a few and a information that I think will be related:
When I was watching Youtube with FLASH PLAYER, sometimes I got this problem:
http.js:1844
throw new Error('Protocol:' + options.protocol + ' not supported.');
^
Error: Protocol:https: not supported.
at Object.exports.request (http.js:1844:11)
and
http.js:1844
throw new Error('Protocol:' + options.protocol + ' not supported.');
^
Error: Protocol:https: not supported.
at Object.exports.request (http.js:1844:11)
at Thread.module.exports.Thread._connect (\thread.js:64:22)
And this problem I don't know why it happens ?
received invalid range: null, expected 128000,71214970
received invalid range: null, expected 256000,71342970
received invalid range: null, expected 256000,71342970
received invalid range: null, expected 384000,71470970
received invalid range: null, expected 512000,71598970
received invalid range: null, expected 640000,71726970
received invalid range: null, expected 128000,71214970
received invalid range: null, expected 256000,71342970
received invalid range: null, expected 1152000,72238970
received invalid range: null, expected 1280000,72366970
received invalid range: null, expected 128000,71214970
received invalid range: null, expected 256000,71342970
received invalid range: null, expected 128000,71214970
received invalid range: null, expected 256000,71342970
received invalid range: null, expected 1152000,72238970
received invalid range: null, expected 1280000,72366970
received invalid range: null, expected 384000,71470970
received invalid range: null, expected 512000,71598970
And I can only watch Youtube video from Youtube.com if I use this config:
catalyst start -H 127.0.0.1 -p 1234 -s 1048625 -l 2048625 -t 3
If I use this config, video will never get downloaded:
catalyst start -H 127.0.0.1 -p 1234 -s 524288 -l 2048625 -t 3
That mean I have to increase section size to 1MB instead 512KB, and 1MB sometimes make connection disconnect for my network, but 512KB is more stable than 1MB but cannot watch Youtube..
And also There is a way to make Catalyst-Proxy works on HTTPS content with ProxHTTPSProxy, here is tip: http://translate.google.com/translate?sl=auto&tl=en&u=http%3A%2F%2Fvn-sharing.net%2Fforum%2Fshowthread.php%3Ft%3D2045%26page%3D47
Hi Morhaus, first I want to thanks for creating such a great proxy.
These day every sites become SSL/HTTPS, so without HTTPS support seem Catalyst Proxy a little bit uneffective, example Youtube is now HTTPS, its googlevideo use HTTPS so I cannot accelerate video download speed using Catalyst, I hope you will add HTTPS support using something like Man in the middle method. Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.