how to do web scrapping

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
angelic_devil
Forum Commoner
Posts: 74
Joined: Thu Apr 02, 2009 7:05 am

how to do web scrapping

Post by angelic_devil »

i want to collect data a site into excel...it will take lots of time to do copy paste....is it possible to generaate a script for tht purpose how can i do tht any suggestions or does anyone have a script tht can do this?
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Re: how to do web scrapping

Post by jayshields »

Use file_get_contents() with the website URL. Then use a regular expression to match the bits of text which you want to use.
Post Reply