I am trying to get data of the website
www.deutsches-krankenhaus-verzeichnis.de/suche/Bundesland/Nordrhein-Westfalen.jsf
This page is using ajax and i could not figure out how can i grab that data. As i have tried curl and other methods.
Please provide some suggestion.
Thank you
您可以使用CasperJS( http://casperjs.org/ )。这是一个小示例( http://docs.casperjs.org/en/latest/quickstart.html#a-minimal-scraping-script )
When using curl you just get the source of the original page, without any javascript being executed. Try using some headless browser solution such as PhantomJs to load the page and execute the javascript. It allows you to query the page with css selectors after the Ajax data has been loaded.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.