dilbertone Posted May 26, 2011 Share Posted May 26, 2011 am trying to scrape the datas from a webpage, but I get need to get all the data in the http://www.aktive-buergerschaft.de/buergerstiftungen/unsere_leistungen/buergerstiftungsfinder see this link - follow it and get full insights include 'simple_html_dom.php'; $html1 = file_get_html('http://www.aktive-buergerschaft.de/buergerstiftungen/unsere_leistungen/buergerstiftungsfinder '); $info1 = $html1->find('b[class=[what to enter herer ]',0); well - what is wanted: i need to have all the data out of this site;: see this link - follow it and get full insights Bürgerstiftung Lebensraum Aachen rechtsfähige Stiftung des bürgerlichen Rechts Ansprechpartner: Hubert Schramm Alexanderstr. 69/ 71 52062 Aachen Telefon: 0241 - 4500130 Telefax: 0241 - 4500131 Email: [email protected] www.buergerstiftung-aachen.de >> Weitere Details zu dieser Stiftung Bürgerstiftung Achim rechtsfähige Stiftung des bürgerlichen Rechts Ansprechpartner: Helga Kühn Rotkehlchenstr. 72 28832 Achim Telefon: 04202-84981 Telefax: 04202-955210 Email: [email protected] www.buergerstiftung-achim.de >> Weitere Details zu dieser Stiftung well - what is needed - i need to have the datas that are "behind" the link - is there any way to do this with a ease and understandable parser - one that can be understood and wrote by a newbie!? that would be more than great Well one word regardng Regex: I have not tooo much experience - but i guess DOM-Document is the smarter way here... Quote Link to comment https://forums.phpfreaks.com/topic/237571-xpath-variable-help-to-get-dom-document-up-and-running/ Share on other sites More sharing options...
xyph Posted May 26, 2011 Share Posted May 26, 2011 I suggest hiring a programmer to do this for you, as you've been given solutions before and still can't figure it out. It's not easy to scrape a webpage, as there are many variables to deal with. On top of your own code, you have to interpret someone else's markup. This isn't a task well suited for a beginner at PHP. IMO DOM classes are harder than RegEx if all you want is statically formatted data scraping. If you take the time to learn RegEx, you'll find your solution, and have a tool in your belt that is nearly irreplaceable. http://www.google.com/search?q=learn+regex Quote Link to comment https://forums.phpfreaks.com/topic/237571-xpath-variable-help-to-get-dom-document-up-and-running/#findComment-1220850 Share on other sites More sharing options...
dilbertone Posted May 27, 2011 Author Share Posted May 27, 2011 hi - many thanks for the answer! I will try to figure it out. At the weekend - i want to figure all out. I come back and report all my findings... regards db1 Quote Link to comment https://forums.phpfreaks.com/topic/237571-xpath-variable-help-to-get-dom-document-up-and-running/#findComment-1220968 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.