simple-html-dom Questions
11
Solved
I would like to use Simple HTML DOM to remove all images in an article so I can easily create a small snippet of text for a news ticker but I haven't figured out how to remove elements with it.
B...
Sicanian asked 22/11, 2011 at 13:20
4
Solved
How to use simple html dom parse img html5 attribute: data-original
$htmls = '<img class="lazy" alt="Nubifragio a Verbania , ferite 2 turiste Gravi danni, chiesto stato di calamità foto" title=...
Nucleoprotein asked 26/8, 2012 at 15:7
5
I read over 20 related questions on this site, searched in Google but no use. I'm new to PHP and am using PHP Simple HTML DOM Parser to fetch a URL. While this script works with local test pages, i...
Agnostic asked 28/8, 2012 at 17:8
7
Solved
When was PHP behavior about this changed?
From which PHP version is it?
Warning: file_get_contents(): stream does not support seeking in
/simple_html_dom.php
Warning: file_get_contents(): Failed ...
Lentz asked 9/3, 2017 at 2:53
1
Here is what I am trying to accomplish:
I need to scrape product data from this website, but the pricing is different when you are logged in. Thus, I need to submit this login form (via php), then ...
Wineglass asked 24/12, 2015 at 0:41
3
Solved
I am just starting with the mentioned Parser and somehow running on problems directly with the beginning.
Referring to this tutorial:
http://net.tutsplus.com/tutorials/php/html-parsing-and-screen...
Substratosphere asked 2/4, 2013 at 9:54
2
Solved
There is this table i want to load into a multi-dimensional array. The problem is that since the table has rowspan values each line may have different cell counts. So i have to remove rowspan and a...
Leyden asked 12/12, 2012 at 15:13
4
Solved
I was searching like mad and found no solution. The problem is simple.
Let's say I have 3 DIVs:
<div class="class1">
<div class="subclass"> TEXT1 </div>
</div>
<div c...
Hewet asked 10/1, 2013 at 18:12
3
Solved
I've written a script in php to scrape the title of a product located at the top right corner in a webpage. The title is visible as Gucci.
when I execute my below script, it gives me an error Notic...
Irrespirable asked 19/9, 2018 at 13:13
0
I've written a script in php to get the html content or source code from a webpage but I could not succeed. When I execute my script, it opens the page itself. How can I get the html element or sou...
Fixate asked 18/9, 2018 at 18:55
2
Solved
This is my code:
<?php
include('simple_html_dom.php');
$html = file_get_html('http://www.google.com/search?q=BA236',false);
$title=$html->find('div#ires', 0)->innertext;
echo $title;
...
Glyoxaline asked 14/12, 2017 at 13:13
3
Solved
I'm trying to parse an HTML file that has terrible (believe me, it is) HTML structure and because of this and my lack of knowledge, I couldn't write my own parser. Later I tried using Simple HTML D...
Bubbler asked 14/7, 2012 at 12:16
3
Solved
I have this HTML piece of code already read into $html. I had extracted some correct information, but I'm stuck getting the selected option value of a select.
<select name="a" id="selstart">...
Stephi asked 16/6, 2013 at 2:28
4
Solved
<?php
// Report all PHP errors (see changelog)
error_reporting(E_ALL);
include('inc/simple_html_dom.php');
//base url
$base = 'https://play.google.com/store/apps';
//home page HTML
$html_...
Fastness asked 6/9, 2013 at 22:20
4
HTML:
<div class="something" data-a="abc">ddsf</d>
PHP:
foreach ($dom->find('.something[data-rel]') as $this) {
var_dump($this->attr());
}
I tried this but error. Couldn't ...
Tayyebeb asked 7/10, 2014 at 16:8
1
Solved
I've encountered something strange when using Simple HTML DOM to parse a webpage with a certain query string. Some query strings work when trying to parse this used car page of a dealership's...
Rhaetic asked 9/2, 2016 at 15:50
2
Solved
I have translated the PHP Simple HTML DOM query:
$article->find('td[id$=tdDescription] div a', 1)->plaintext;
to the jsoup query:
resultRow.select("td[id$=tdDescription] > div > a")...
Tailspin asked 4/6, 2011 at 13:22
4
I am using simple_html_dom.php library from this example
http://nimishprabhu.com/top-10-best-usage-examples-php-simple-html-dom-parser.html
But i got error 500 inside class, when I type url in br...
Woad asked 6/12, 2015 at 9:31
1
Solved
I am a bit 'rusty with php as it happens that sometimes I use it for weeks and sometimes it happens that you do not use for months. Either way I'm trying to pass values of another array are "array"...
Exarch asked 22/9, 2015 at 15:25
3
Solved
SimpleHtmldom can be used to extract the contents of the first element with class description.
$html = str_get_html($html);
$html->find('.description', 0)
However if this class does not exis...
Opaline asked 22/8, 2012 at 10:32
3
Solved
I have used PHP Simple HTML DOM Parser to first convert an HTML string to DOM object by str_get_html() method of simple_html_dom.php
$summary = str_get_html($html_string);
Then I extracted an &...
Enthronement asked 23/5, 2015 at 19:42
1
Solved
I have a PHP Simple HTML DOM Parser locally in MAMP that pulls information and works well with the Japan version of a website, since I'm located in Japan. However, I would like to pull information ...
Stablish asked 19/5, 2015 at 1:40
1
Solved
How can I take a block of DOM by identify its 'comment' tag, like
<!-- start block -->
<p>Hello world etc</p>
<div>something</div>
<!-- end of block -->
I'm u...
Renn asked 22/4, 2015 at 13:1
2
Solved
I am using the PHP Simple DOM Parser for parsing the HTML Page, Now i am lacking in particular point of how to find the nth element class should be a particular class
For Example:
<table>
&...
Toil asked 3/4, 2015 at 5:6
3
Solved
i have this html code. Im using Simple HTML Dom to parse the data into my own php script.
<table>
<tr>
<td class="header">Name</td>
<td class="header">City</td&...
Ranitta asked 18/7, 2010 at 23:38
1 Next >
© 2022 - 2024 — McMap. All rights reserved.