Tuesday 15 April 2014

perl - Is there a simple way to extract content from a webpage? -


Our build software creates a webpage when the build fails, and lists the users who created it after the last creation. Is done from I want a way to parse the page for my team members. For example:

  & lt 18e1bc67b7e3123987daf8c219a4fbe2003de4 commit; A href = "/ user / bob.dole /" & gt; Bob.dole & lt; / A & gt; & Lt; / B & gt; & Lt; Pre & gt; 1112233- After PCPROJBILL has run & lt is not forwarded to BD Dock on the header details; Br> & Lt; / Pre & gt; & Lt; / Div & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; TR & gt; & Lt; TD width = "16" & gt; & Lt; Img title = "file was modified" height = "16" alt = "file was modified" width = "16" src = "/ static / fbfd5d7f / images / 16x16 / document_edit.png" /> & Lt; / TD & gt; & Lt; TD & gt; & Lt; A & gt; Pcbatch / projbill.cpp & lt; / A & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; TR class = "panel" & gt; & Lt; TD colspan = "2" square = "changeset" & gt; & Lt; A name = "detail54" & gt; & Lt; / A & gt; & Lt; Div class = "changes-message" & gt; & Lt; P & gt;   

Then a script will take a URL as input and search the file for 'bob.dole' and output all files associated with it (command hash, pre-data, etc. .)

Can anyone give me an idea about this, the easiest way to accomplish this? I was thinking about using Perl, but I'm not sure that there is something more simple, so do not.

After

I got the right question for you, you want to get webpage content and find it for username Want to parse If this is the case, I will use the php

("your_website"), it will return a string for you.
You will then help us remove the username after using the substr () function to find the stripes () substrings.

Hope this will be helpful.

No comments:

Post a Comment