View Single Post
Old 06-13-2013, 10:19 PM  
freecartoonporn
Confirmed User
 
freecartoonporn's Avatar
 
Industry Role:
Join Date: Jan 2012
Location: NC
Posts: 7,683
from xvideos pornstar list scraper

PHP Code:
<?php
ini_set
("memory_limit","-1");
ini_set('max_execution_time''-1'); 
include_once 
'simple_html_dom.php';

foreach (
range('a''z') as $char) {
    for(
$n=0;$n<=20;$n++){
        
$url "http://www.xvideos.com/pornstars/".$char."/".$n;
        
$response_code=(get_headers($url)[0]);
            if ((
stripos($response_code"200") !== false)) {
            
//echo $url."<br>";
            
$urlarr[]=$url;
            }
    }
}

//print_r($urlarr);


foreach ($urlarr as $url1) {

$html file_get_html($url1);
    foreach(
$html->find('p[class=profileName]') as $heading) { //for each heading
            //find all spans with a inside then echo the found text out
            
echo $heading->find('a'0)->plaintext "<br>"
    }
}
freecartoonporn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote