Jump to content

Parsing html source inside functions


paulbrown83

Recommended Posts

I want to write a php script that takes in a list of values, and for each value, produce a URL that pulls up a specific website. The sites are just a directory that can take manual requests from the URL. For each URL, I want to parse the html source code of each, extracting certain pieces of data, and ultimately saving these data into a table. I know how to do all of the parsing, I just need to know how to loop through multiple URL's, and for each one, save the source code to an object that can be immediately parseable. Or something to that effect. Any thoughts?
Link to comment
Share on other sites

Yep. The website is a directory, where you look up people's info. The url includes the username of the person, so I can make a list of URL's, one for each user I want to get data on. For each URL, I want to pull some data and put it in a file. The data will simply show up on the page for each URL, and if I can parse that source code, I can pull the specific data that I need.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.