php - Display specific data from external website -


let's external website:

title header banner content1 content2 footer 

now want know how copy specific part of external website , paste on own this:

my title header banner content external content2 footer 

i want html code can make own stylesheet external content2

i hope clear enough.

i've tried using phps file_get_html()

its not entirely clear on attempting do. remember can see html , javascript on else's web site. if want make static copy of web page including cascading style sheets (css) , java scripts, open web page of interest on browser (i'm thinking firefox) use browser tools 'save page as' , save local hard drive. save comes scripts , css files.

you can @ static code, @ div classes , decide css elements hoping use site.

recommend study on how css works (selector type element, selector type universal, selector type id declarations, , selector type class declarations) highly possible web site looking @ designed 'div class=header /div' declarations not necessarily.

i think rather difficult scrape elses site php, unless 1 of own, , control elements there , in sequence, consistently. possible grab html else's site, stubby pencil analyze (with lots of if loops), css selector types match css not likely.

oh, , php code use web site scraping "$data = file_get_contents('url....... '

good luck it.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -