Jump to content

capture html data between tags


sdowney1

Recommended Posts

I wrote a VB6 app that uses a web browser control to create an inbuilt instance of IE.

I then used that to navigate to a LOC web page, do a search and collect MARC tag data.

 

I was wondering how you could do this in PHP.?

I put up some attachments that show this working in VB6.

 

The searchable web page that returns results is here

http://www.loc.gov/cgi-bin/zgate?ACTION=INIT&FORM_HOST_PORT=/prod/www/data/z3950/locils2.html,z3950.loc.gov,7090

 

So you do a search for something.

LOC gives you a list.

You click on an item in the list where it says 'more on this record'

then you click 'tagged display'

And that is the data you want to have collected into your variable.

I created a Download Icon on the web browser control that turns green when the data is displayed.

 

Do you somehow create your own web browser instance?

or? I am new to PHP and have figured out a few things.

I created this here in PHP

http://www.sdowney717.byethost16.com/mysearch2first.php

 

 

[attachment deleted by admin]

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.