php - Scrape web page contents -


i developing project, want scrape contents of website in background , limited content scraped website. example, in page have "userid" , "password" fields, using access mail , scrape inbox contents , display in page. please me solve problem, in advance.

i done above using javascript alone . when click sign in button url of page(http://localhost/web/login.html) changed url(http://mail.in.com/mails/inbox.php?nomail=....)which scraped . scrap details without changing url. please me find solve problem,thanks in advance..

definitely go php simple html dom parser. it's fast, easy , super flexible. sticks entire html page in object can access element object.

like example of official site, links on main google page:

// create dom url or file $html = file_get_html('http://www.google.com/');  // find images  foreach($html->find('img') $element)         echo $element->src . '<br>';  // find links  foreach($html->find('a') $element)         echo $element->href . '<br>'; 

Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -