Results 1 to 5 of 5

Thread: Class to scrape Pornhub, Keezmovies, TNAFlix, Extremetube, and RedTube for content!

  1. #1
    Josh Manders's Avatar
    Josh Manders is offline Web Developer Extraordinaire
    Join Date
    Jul 2009
    Location
    Dubuque, Iowa, USA
    Posts
    63
    Thanks
    3
    Thanked 15 Times in 10 Posts

    Arrow Class to scrape Pornhub, Keezmovies, TNAFlix, Extremetube, and RedTube for content!

    Was bored the other day and was talking to someone and they mentioned most tube scripts out there that allow embeding from all the big tubes scrapers were crap, so I wrote this class to scrape the tubes and give you all the information you need to start your own embed tube site!

    It currently supports Pornhub.com, KeezMovies.com, ExtremeTube.com, RedTube.com and TNAFlix.com. I have plans on adding tons more sites to the lineup also with more features.

    It will grab you the url of the video, title, thumbnail, and reconstructs the embed code and even allows you to set the width/height of the player in the class so you don't have 3 different player sizes when generated.

    Will go as many pages deep as you want. If you wanna scrape the last 10 pages of porntube, go ahead it will do it.

    Example usage, it's easy, and can be used with any script:
    PHP Code:
    <?php
    $Scraper 
    = new Scraper;
    $Scraper->setParams('300x250');
    $tubeData $Scraper->getData('Pornhub:10');
    echo 
    '<pre>'print_r($tubeData); echo '</pre>';
    ?>
    What that will do is scrape Pornhub's last 10 pages and output an array of all the videos found with the embed player width/height set to 300px by 250px.

    Another example:
    PHP Code:
    <?php
    $Scraper 
    = new Scraper;
    $Scraper->setParams('300x250');
    $Scraped = array('Pornhub' => $Scraper->getData('Pornhub:5'),
                
    'Keezmovies' => $Scraper->getData('Keezmovies:5'),
                
    'Extremetube' => $Scraper->getData('Extremetube:5'),
                
    'Redtube' => $Scraper->getData('Redtube:5'),
                
    'Tnaflix' => $Scraper->getData('Tnaflix:5'),
                );
    $tubeData array_merge($Scraped['Pornhub'],
                       
    $Scraped['Keezmovies'],
                       
    $Scraped['Extremetube'],
                       
    $Scraped['Redtube'],
                       
    $Scraped['Tnaflix']
                       );
    shuffle($tubeData);
    foreach(
    $tubeData as $videoData)
    {
        
    mysql_query('INSERT INTO DATABASE QUERY');
    }
    ?>
    That will build another array, merge them all together into 1 giant array, then shuffle them and insert them into your pre-existing database and you can have an instant tube site that will automatically update itself, just by setting a cron tab to run that code every minute/hour/day/week/whatever you want.

    Price is $199.95 for the unencoded class. If you want a script built around it I'm open to discussion, or if you want it integrated into your pre-existing script I can do that also.

    *************************
    You can contact me on AIM: fknvdscom or ICQ: 461013230
    Last edited by Josh Manders; 19 June, 2010 at 23:45 PM.

  2. #2
    barneygumble is offline Unknown Net Builder
    Join Date
    Jan 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hi the LQD Scraper link doesn't work... i was wondering if your script could be used to make something like http://www.swagflavor.com - i really like that site and i was hoping i coudl make one like that

  3. #3
    Josh Manders's Avatar
    Josh Manders is offline Web Developer Extraordinaire
    Join Date
    Jul 2009
    Location
    Dubuque, Iowa, USA
    Posts
    63
    Thanks
    3
    Thanked 15 Times in 10 Posts
    Hi Barney, please try again, it works for me, I do know some stuff doesn't work on it like Pornhub but that's due to them changing their design and me not updating the class yet as I'm gonna be rewriting it to get away from using regex and going to a dom class.

    To answer your question, yes it can make it so you can have a site like that.

  4. #4
    ulotiolellil is offline Unknown Net Builder
    Join Date
    Mar 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

  5. #5
    Josh Manders's Avatar
    Josh Manders is offline Web Developer Extraordinaire
    Join Date
    Jul 2009
    Location
    Dubuque, Iowa, USA
    Posts
    63
    Thanks
    3
    Thanked 15 Times in 10 Posts
    Last edited by Josh Manders; 19 June, 2010 at 23:46 PM.

Similar Threads

  1. [WTB] I need someone to scrape Emails for me
    By ruffneck119 in forum Services
    Replies: 2
    Last Post: 21 October, 2010, 22:08 PM
  2. IP Details: PHP Class with Example By Me
    By chetan in forum Programming
    Replies: 5
    Last Post: 26 September, 2009, 17:08 PM
  3. New Boy In Class
    By Refresher in forum Introduction Forum
    Replies: 0
    Last Post: 20 June, 2009, 11:01 AM
  4. AutoForm Class with Niceform
    By chetan in forum Programming
    Replies: 0
    Last Post: 14 June, 2009, 05:13 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •