Giter Club home page Giter Club logo

Comments (11)

synctext avatar synctext commented on May 22, 2024

Concreet project ToDo list:
-Eclipse: run Tribler from sources
-wxWebView working in Tribler with hardcoded youtube clip
-grab youtube video file
-seed in P2P using Libswift in Tribler
-play on another Tribler
-Open-ended assignment then midway/scrum targets the following will be targetted:
--Optional0: Support for P2P streaming URLs. HTML5 "< video >" tag is expanded with ppsp://db5dabb90a3cbd61a90866a4cc208ae959440ec9 support
--Optional1: show any website using address bar (standard HTTP fetch)
--Optional2: download content via P2P protocol anonymously
--Optional3: convert any encountered magnet:// URL link into a Youtube-like player window
--Optional4: foundation for AnonTube research of Tribler team (ambitious and on critical path) #119

prior work 4 years ago, read thesis .PDF:
http://www.tribler.org/P2PWebhosting

from tribler.

synctext avatar synctext commented on May 22, 2024

planning

14 June code submission
Report submit
4 July presentation day (tentative)

from tribler.

synctext avatar synctext commented on May 22, 2024

Note, above "webview->RunScript()" example might not work due to lack of page loading complete: http://trac.wxwidgets.org/ticket/14326

from tribler.

synctext avatar synctext commented on May 22, 2024

HTML dynamic rewriting is seen as a difficult technical problem.
Either this will need significant engineering effort, a smart & fancy solution or we simply avoid this issue and alter course.

from tribler.

NielsZeilemaker avatar NielsZeilemaker commented on May 22, 2024

Your comments don't seem to be true, according to the ticket you referenced the runscript command will not work until the page is fully loaded. Therefore, simply waiting for the page to be fully loaded seems to be fine.

If we want to replace/modify urls in the video tag, then we can simply pass all http traffic through a proxy which rewrites the html.

from tribler.

synctext avatar synctext commented on May 22, 2024

after initial work and results the following target as end-goal was discussed:
single-page web mirror service; eternal availability of wikipedia and wikileaks.

from tribler.

qstokkink avatar qstokkink commented on May 22, 2024

from tribler.

qstokkink avatar qstokkink commented on May 22, 2024

RunScript issue (mystery segfault) resolved:
You cannot access a wx.html2.WebView object's RunScript outside of the main App event dispatch loop.
For seperate threads this must be invoked using the wx.CallAfter function.
For example here is a function that waits for an initial load of a webpage and executes some javascript on it:

def execute_on_load(browser, javascript):
    '''browser: wx.html2.WebView object
        javascript: string containing javascript code
    '''
    while (browser.GetCurrentURL() == "about:blank"):
        time.sleep(0.3)
    wx.CallAfter(browser.RunScript, javascript)

from tribler.

qstokkink avatar qstokkink commented on May 22, 2024

Status update:
With the wx functionality implemented in the latest wxPython version (Phoenix) we can now parse any webpage (not just wikipedia and wikileaks pages) and have its local copy look good.
Even though Phoenix murders all applications based on previous wxPython versions, we have managed to port Tribler to it (albeit with some deprecation warnings).

from tribler.

whirm avatar whirm commented on May 22, 2024

For what I can see, this is an unreleased development branch of WX.

Are we planning on using this on production versions of Tribler? (and hence packaging for all our supported platforms)

from tribler.

synctext avatar synctext commented on May 22, 2024

Ticket done: bsc thesis completed
"Closing the gap between the Web and Peer to Peer"
http://repository.tudelft.nl/view/ir/uuid%3Ac51e551d-22a6-46e8-ba56-0109bb134ae7/

Abstract
During the course of Q4 of the 2012-2013 academic year, we have worked on the project of a Peer-to-Peer web browser. After a two week orientation phase, a six week programming phase and nally another two week reporting phase we deliver our product. The final result of this endeavor is an integrated web browser in the Tribler platform, which supports automatic retrieval and distribution of resources encountered on the web page.

from tribler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.