1. This website uses cookies to improve service and provide a tailored user experience. By using this site, you agree to this use. See our Cookie Policy.
    Dismiss Notice

Embed videos to your own player

Discussion in 'Making Money' started by Acriey, Nov 18, 2018.

Tags:
  1. Acriey

    Acriey Newbie

    Joined:
    Nov 12, 2018
    Messages:
    9
    Likes Received:
    0
    Gender:
    Male
    Hello, my account is new but I have been using BHW for a while now.
    So, I started my own journey some time ago with some kind of a tube site (maybe I will post the journey if it becomes successful).

    The problem that I came accross is that the videos that I embedded in my site have a lot of ads and I don't really get paid enough for them (don't know if I am allowed to post the site where i upload them). So I want to embed them in my own player (like fluid player or jwplayer).
    The question is: how can I "steal" the videos from a hosting website like xvideos, but not the player, and put them in my own player. (I know it's possible because i have seen a lot of sites doing it, but I don't know how).
     
  2. markxxx

    markxxx BANNED BANNED

    Joined:
    Nov 18, 2018
    Messages:
    25
    Likes Received:
    0
    Gender:
    Male
    I would also be interestd to know this!
     
  3. Brian Alexander

    Brian Alexander Regular Member

    Joined:
    Aug 12, 2016
    Messages:
    360
    Likes Received:
    237
    Gender:
    Male
    Parse the source of the video.
     
    • Thanks Thanks x 1
  4. Acriey

    Acriey Newbie

    Joined:
    Nov 12, 2018
    Messages:
    9
    Likes Received:
    0
    Gender:
    Male
    Been looking for this for a while and I didn't really know where to start; after some searches on google with "parsing" i found what you meant. Thank you very much kind sir.
     
  5. markxxx

    markxxx BANNED BANNED

    Joined:
    Nov 18, 2018
    Messages:
    25
    Likes Received:
    0
    Gender:
    Male
    Would you share how ?
     
  6. Acriey

    Acriey Newbie

    Joined:
    Nov 12, 2018
    Messages:
    9
    Likes Received:
    0
    Gender:
    Male
    Sorry, but I am still looking into it. All I found out was what you can do with parsing and scraping, but I am not sure how to implement into my website yet (wordpres); also I didn't have much free time so yea. If you want I can share it with you when I find out
     
  7. noctropolis

    noctropolis Newbie

    Joined:
    Nov 27, 2017
    Messages:
    37
    Likes Received:
    10
    Gender:
    Male
    Location:
    Poland
    Use "clean tube player" from wp-script, but it's paid solution.
     
  8. markxxx

    markxxx BANNED BANNED

    Joined:
    Nov 18, 2018
    Messages:
    25
    Likes Received:
    0
    Gender:
    Male
    That would be amazing, thank you!
     
  9. ausoma

    ausoma Regular Member

    Joined:
    Apr 8, 2016
    Messages:
    440
    Likes Received:
    134
    Buy CleanTube Player from WP-Script (they have Black Friday deal, 50% OFF). It will remove all ads from Pornhub, Redtube, Xvideos and Youporn Players. It's worth it.
     
  10. markxxx

    markxxx BANNED BANNED

    Joined:
    Nov 18, 2018
    Messages:
    25
    Likes Received:
    0
    Gender:
    Male
    But i need this for a tube site that is not WP.
     
  11. ausoma

    ausoma Regular Member

    Joined:
    Apr 8, 2016
    Messages:
    440
    Likes Received:
    134
    My bad, i didnt knew you're not using Wordpress...

    I'm sorry but i dont know any other solution to that...
     
  12. markxxx

    markxxx BANNED BANNED

    Joined:
    Nov 18, 2018
    Messages:
    25
    Likes Received:
    0
    Gender:
    Male
    Well still thanks for trying to help =)
     
  13. PigItaly

    PigItaly Junior Member

    Joined:
    Feb 24, 2016
    Messages:
    155
    Likes Received:
    30
    Gender:
    Male
    Occupation:
    Lawyer
    Location:
    Italy
    Easiest way to find the video source file is analyze the network stream with mozilla firefox developers console
     
  14. Acriey

    Acriey Newbie

    Joined:
    Nov 12, 2018
    Messages:
    9
    Likes Received:
    0
    Gender:
    Male
    In case anyone is reading this post, here is how I did it.

    This is the PHP code for getting the source link of a video:

    <?php
    $url="YOUR LINK"; // the link where you want to download the video from

    $html = file_get_contents($url);

    $doc = new DOMDocument();
    $doc->loadHTML($html);

    $tags = $doc->getElementsByTagName('source'); // this is getting the source of the video

    foreach ($tags as $tag) {
    print_r($tag->getAttribute('src')); // this is converting the value from the <source src=" "> to a string and printing it
    }
    ?>

    Note that I use this where there is only one video on the page. If you use it on a page where there are more videos it will get all of these videos sources (probably).
    After you get the source of the video you just have to insert it inside your player. That's it.

    I will reply if anyone has any questions about it. Goodluck.
     
  15. Vox1Hex

    Vox1Hex Newbie

    Joined:
    Nov 10, 2018
    Messages:
    26
    Likes Received:
    17
    Occupation:
    Full-stack Web-developer
    Location:
    Prague
    Yes it is possible to get video into your own player. I usually scrape source url using python programming language with beautifulsoup4 html/xml parser. Problem is that for example xvideos link is valid only for 3 hours, then link going to stop work.
     
  16. starbucksLover

    starbucksLover Regular Member

    Joined:
    Dec 27, 2015
    Messages:
    295
    Likes Received:
    19
    Would it work if before getting the video on the page we call the server which scrapes the link and return it?
     
  17. Highr0ll34

    Highr0ll34 Junior Member

    Joined:
    Mar 27, 2017
    Messages:
    125
    Likes Received:
    39
    Gender:
    Male
    You can download and re-upload them to less 'Addy' host and embed them back on your player. You cannot 'steal' videos as they are hosted on secured cloud servers with API that changes every few mins / IP restrictions etc.
     
    • Thanks Thanks x 1
  18. Vox1Hex

    Vox1Hex Newbie

    Joined:
    Nov 10, 2018
    Messages:
    26
    Likes Received:
    17
    Occupation:
    Full-stack Web-developer
    Location:
    Prague
    Yes it would work, but you must do it very quickly it is another extra request which can slow down your whole website using, I would do it async way via javascript.
    But best would be download it and host it on other server as Highr0ll34 reccomended
     
  19. Vox1Hex

    Vox1Hex Newbie

    Joined:
    Nov 10, 2018
    Messages:
    26
    Likes Received:
    17
    Occupation:
    Full-stack Web-developer
    Location:
    Prague
    When we are talking about this I noticed some guys made even API for xvideos xhamster etc...I guess it would not be free :)
     
  20. Acriey

    Acriey Newbie

    Joined:
    Nov 12, 2018
    Messages:
    9
    Likes Received:
    0
    Gender:
    Male
    You can, if you do that "live/instant".
    What I mean with that is: everytime someone wants to watch a video on your site, you make a request for the video hosted on the hosting site, which is what I did.