473,626 Members | 3,221 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP HTML - Analyzer

I am looking for a lib written in PHP, which does the following...

It analyzes a certain webpage, let's say Google, it then extracts some
elements which i want,
lets say all forms ( <form>...</form) in the webpage.
Then it should be able to deliver me all <input /elements of one form,
together with their attributes and corresponding values.

It would be nice, if the lib would built a tree structure of the webpage,
through which i could "travel", and execute certain operations/methods
on the nodes, respectively html-elements.

Furthermore it should be able to even interprete html pages, which have
errors like
not ended tags.
Does someone know such a lib?

THX in advance

A.Gallus

Sep 8 '06 #1
2 1830
Axel Gallus napisal(a):
I am looking for a lib written in PHP, which does the following...

It analyzes a certain webpage, let's say Google, it then extracts some
elements which i want,
lets say all forms ( <form>...</form) in the webpage.
Then it should be able to deliver me all <input /elements of one form,
together with their attributes and corresponding values.

It would be nice, if the lib would built a tree structure of the webpage,
through which i could "travel", and execute certain operations/methods
on the nodes, respectively html-elements.

Furthermore it should be able to even interprete html pages, which have
errors like
not ended tags.
Does someone know such a lib?
Maybe PHP's DOM implementation? http://php.net/manual/en/ref.dom.php

Sep 9 '06 #2
This seems to solve my problem. Thx.
"Mateusz Markowski" <ma*****@bsdmai l.orgschrieb im Newsbeitrag
news:11******** *************@i 3g2000cwc.googl egroups.com...
Axel Gallus napisal(a):
>I am looking for a lib written in PHP, which does the following...

It analyzes a certain webpage, let's say Google, it then extracts some
elements which i want,
lets say all forms ( <form>...</form) in the webpage.
Then it should be able to deliver me all <input /elements of one form,
together with their attributes and corresponding values.

It would be nice, if the lib would built a tree structure of the webpage,
through which i could "travel", and execute certain operations/methods
on the nodes, respectively html-elements.

Furthermore it should be able to even interprete html pages, which have
errors like
not ended tags.
Does someone know such a lib?

Maybe PHP's DOM implementation? http://php.net/manual/en/ref.dom.php

Sep 9 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1508
by: joh12005 | last post by:
Hello, here is a trouble that i had, i would like to resolve it with python, even if i still have no clue on how to do it. i had many small "text" files, so to speed up processes on them, i used to copy them inside a huge one adding some king of xml separator : <file name="...">
5
7279
by: Warren Wright | last post by:
Hi group, I have a select statement that if run against a 1 million record database directly in query analyzer takes less than 1 second. However, if I execute the select statement in a stored procedure instead, calling the stored proc from query analyzer, then it takes 12-17 seconds. Here is what I execute in Query Analyzer when bypassing the stored procedure:
1
4070
by: Alex Cicco | last post by:
Hi, I am new to SQL. Please bear with me and allow me to ask a dumb question. I am debugging a stored procedure (written in Trans-SQL), and I found that the SQL analyzer that I use doesn't have a debugger. All I can do it is execute a block of code and see what is going on in an interaction seesion of the SQL analyzer. I would need to declare some variable to hold values of the previous query in the interactive
0
1786
by: kackson | last post by:
Hi. I've been using SQL server 2000's query analyzer and the enterprise manager without problems for quite some time (2 months). And all of a sudden one week ago, when I started the query analyzer from my Windows XP' usual program start menu, it appear to run (there's the hour glass) and yet seconds later, nothing happen! No window, no error, as if nothing has happened! I've tried new installation. It's the same result. What's going on?...
2
3100
by: Poster | last post by:
After creating an IN clause from a bunch of character strings created by a Word macro, Query Analyzer complains about a syntax error. The macro takes a column full of character strings and wraps apostrophes (single-quotes) around each string and adds a comma to the end of each line, ready to paste into a Query Analyzer session. The problem is that Query Analyzer doesn't recognize the MS-Word apostrophes. It has nothing to do with the...
3
2886
by: JM | last post by:
Good day. I was able to connect to a database server using SQL Server Enterprise Manager. The Server name specified on the tree is JOMARGON(Windows NT). But no server was detected using either Visual Studio .NET and SQL Server's query analyzer. I highlighted one database (master) on the SQL Server Enterprise Manager and chose 'SQL Query Analyzer' under the 'Tools' menu. It worked. The Title of the Query Analyzer window is SQL Server...
1
2306
by: justinjoylife | last post by:
Hi - I'm completely new to Microsoft Query Analyzer and I need to learn it for work to do data mining as a Product Manager. Does anyone have any recommendations on how to learn this and where? Which books? What classes? What links to online tutorials? thanks
1
5552
by: Chris Morse | last post by:
Does anyone know how to profile a VB.NET application? In the VS.NET 2003 docs, I found this: (BEGIN DOC COPY) "A code profiler is a software tool, implemented as a DLL, which is called by the runtime system during the execution of an image. The profiler receives notifications each time a function is entered or exited, as well as when other events occur that are of interest to the
14
2568
by: Kevin G. Anderson | last post by:
What: CAUG Meeting - QuickBooks IIF Files; Total Access Analyzer; CAUG Social When: Thursday, May 25, 2006, 6PM Who: Chris Monaghan and Kevin Anderson Where: The Information Management Group 200 W. Monroe St. Suite 900 Chicago, IL 60606 (312) 222-9400 Location: www.imginc.com/IMG/About+IMG/chicago.htm
0
2710
by: serdar | last post by:
Hi I'm designing a spectrum analyzer for a flash media player using the new computeSpectrum method in AS3. There are two basic types of visualizers I'm working on: -wave-type (displays a sound wave) -bar-type (displays frequencies) The bar-type analyzer uses the FFTMode parameter of computeSpectrum method. The problem is in the bar-type analyzer: the lower frequencies (bass sounds) are way too high and almost always non-zero. I...
0
8265
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8637
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8364
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8504
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7193
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6125
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4092
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2625
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1808
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.