V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
spance
V2EX  ›  Google

换个玩法,在 Cloud9 上玩 Google

  •  2
     
  •   spance · Aug 9, 2014 · 4809 views
    This topic created in 4281 days ago, the information mentioned may be changed or developed.
    Cloud9是个云ide,功能甚是强大,其服务器性能也灰常彪悍,而且有https和美国西海岸节点,写了个Nodejs的小东西用它玩Google.

    来个简单点的,一个文件就搞定:


    在c9.io里面新建个项目,拷进去运行起来,就是一个简易Google了。
    只是这太简单,Google页面有其它域的资源比如gstatic.com的就没有处理。

    所以来个稍微复杂点的,在github上:
    https://github.com/spance/nThrough

    这个版本就比较好的处理了cookie,header,google广告,google url跟踪,算是一个比较实用的版本了。

    最终效果:
    Supplement 1  ·  Aug 11, 2014
    早前也做了同样的app(java webapp) goThrough在github上。

    后来发现C9的平台不错,就起了一个Nodejs项目,就是现在这个nThrough(上面有项目地址)

    有兴趣的童鞋,希望能来一起扩展和优化这个项目,我们不光要畅通谷歌,还要干净的无广告无二次跳转的谷歌!
    Supplement 2  ·  Aug 26, 2014
    这一轮改进和优化,又能缩短了几百ms的时间了。

    项目也更名了:
    https://github.com/spance/AirGoogle

    上面图里面的c9地址就是当前版本部署的,可以敲图里c9地址试试。
    9 replies    2014-09-03 14:17:52 +08:00
    Tink
        1
    Tink  
    PRO
       Aug 9, 2014 via iPhone
    这个ide能自定义域名么
    spance
        2
    spance  
    OP
       Aug 9, 2014
    @Tink 不能,涉及到ssl了挂靠域名是比较复杂的。况且,这是东西本来就是ide不是专门给用户发布应用的。
    jkjoke
        3
    jkjoke  
       Aug 29, 2014
    在c9搭建后访问出错,敲https://go-c9-spance.c9.io/也一样

    Something went wrong !
    Server timed out or sent incomplete response

    Click here to try again, or Go back to dashboard.

    If that still doesn't work, please Issue a bug report.
    spance
        4
    spance  
    OP
       Aug 29, 2014
    @jkjoke
    因为你从c9.io登陆过,留有c9.io的cookie,这些cookie通过项目站点时候貌似就内部出错了。

    很简单,清理c9.io下所有cookie就好了。
    endintro
        5
    endintro  
       Aug 29, 2014
    已用楼主的方法搭建成功,手动回帖表示感谢
    jkjoke
        6
    jkjoke  
       Aug 29, 2014
    @spance
    原来如此,已成功谢谢
    spance
        7
    spance  
    OP
       Aug 29, 2014
    @endintro
    @jkjoke
    悄悄的使用,不要传播。
    jkjoke
        8
    jkjoke  
       Aug 29, 2014
    @spance
    偷偷地进村,打枪的不要
    millken
        9
    millken  
       Sep 3, 2014
    @spance
    ^_^,很好的玩法,看下速度也还不错。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3121 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 00:25 · PVG 08:25 · LAX 17:25 · JFK 20:25
    ♥ Do have faith in what you're doing.