I need a data scraper that will do the following:
-given a url from [login to view URL], obtain the raw html returned in a search
-parse the html to return valuable fields for me:Company Name, Address, City, State, Zip, Phone Number, web URL
-the outputted fields should be put into a csv file
the app doesn't have to handle pagination, I can just pass another url into the program and build on the results returned.
Example URL: [login to view URL];C=painter&STYPE=S&L=Buffalo+NY&paging=1&F=1&OO=0&R=A&MCBP=true&PS=45&PI=0
As you can see, the results are laid out in the middle of the page. I need a php script to pull the data specified above and put it into csv format. The app will be run locally on my machine which has php, so security isn't a concern. Ideally, I would like the php page / script to allow me to paste a url in a form on the page, then perform the function specified. I'll pull the csv data before I rerun it, so it can be overwritten everytime I call it.
Any questions, please let me know via PM or on the PCB. Thanks!