I am trying to add a UL inside of a LI. I have an HTML tree that looks like this: I am trying to use Javascript to add a new UL that will be a c ...
I am trying to add a UL inside of a LI. I have an HTML tree that looks like this: I am trying to use Javascript to add a new UL that will be a c ...
Using HTML::TreeBuilder -- or Mojo::DOM -- I'd like to scrape the content but keep it in order, so that I can put the text values into an array (and t ...
I am using WWW::Mechanize, HTML::TreeBuilder and HTML::Element in my perl-script to navigate through html-Documents. I want to know how to search fo ...
I save a web site using Firefox 33.0 as "Web Page, Complete". The problem is, the html tree of the main html file is changed statically. Before savin ...
I am parsing a real estate web page, using HTML::TreeBuilder, and have the following code: Some pages don't contain city or state, and the parser e ...
Lets say i have an array which holds the contents of the body tag like shown below: print Dumper(\@array); Lets say that i want to fetch the id of ...
I've got a list of URLs in an array: Let's view the contents of the first page, namely doc1.html: Now, let's view the contents of the second pag ...
I've got some code that a friend of mine helped create: I'm having trouble understanding what lines 33 and 45 are doing. I think for the most part ...
Another laborious title... Sorry... Anyway, I've got a file called mash.txt with a bunch of URLs like this in it: http://www... http://www... http: ...
This is a snippet of code I've got: I understand that there are easier ways to do this--feel free to talk about those ways, but I'm doing it this w ...
I've got a page that I want all the links off of (e.g. http://www.stephenfry.com/). I want to put all the links that are of the form http://www.stephe ...
In my array I've got stuff that looks like this; that is, the format is like this: Monday, June 12 I want to get rid of the Monday, <--- n.b.: T ...
I want to extract all the tables from an html file and print their contents in the following way each cell seperated by \t, each row separated by \n a ...
The task is quite simple: access a url and parse it based on the result. In case there is an error (404, 500 etc etc), take appropriate action. The la ...
I have an HTML file with several tables (all tables have same number of columns and same column names). The tables are separated by other HTML tags. ...
I have some ugly html that is emailed to my program that looks like: ...snipped the rest for brevity. I am able to pull the table elements out usi ...
I'm having trouble trying to output the contents of a matched node that I'm parsing: I'm using HTML::TreeBuilder::XPath to find the node (there's o ...
my code is not printing any output. $tree->find("p") is returning NULL. ...
Using HTML::TreeBuilder->new_from_url() want to go to a website say https://abc.com/index.html and want to display some values from that html page. ...
I am writing a basic script which just extracts all the links from a web page. It is written in Perl and makes use of WWW::Mechanize and HTML::Treebui ...