gibigbig Posted April 7, 2011 Share Posted April 7, 2011 This is a sample html code i have to work with: <div class="spaceit_pad"><span class="dark_text">English:</span> Fullmetal Alchemist: Brotherhood</div><div class="spaceit_pad"><span class="dark_text">Synonyms:</span> Hagane no Renkinjutsushi (2009), Fullmetal Alchemist (2009), FMA</div><div class="spaceit_pad"><span class="dark_text">Japanese:</span> 鋼の錬金術師</div> I want to extract Specifically these lines: 1) Fullmetal Alchemist: Brotherhood 2) Hagane no Renkinjutsushi (2009), Fullmetal Alchemist (2009), FMA 3) 鋼の錬金術師 from that, and all this is loaded from a thrid party website, like wikipedia. please help? Quote Link to comment https://forums.phpfreaks.com/topic/232945-need-help-grabbing-data-from-external-html/ Share on other sites More sharing options...
Lyleyboy Posted April 8, 2011 Share Posted April 8, 2011 Try looking into DOM scripting. If the syntax is always the same you could find each part using JavaScript. Quote Link to comment https://forums.phpfreaks.com/topic/232945-need-help-grabbing-data-from-external-html/#findComment-1198729 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.