Printable Version of Topic

Click here to view this topic in its original format

Web Design Seo Forum _ Joomla Scraper _ Strip Content - Multiple Matches, But Only The First Is Removed

Posted by: CyberVerme Oct 13 2013, 11:23 PM

Hello,

I need to remove a particular div, but there are several correspondences distributed throughout the code.

example:

HTML
html, html, html, etc...
<div class="image-title">bla bla bla bla</div>
html, html, html, etc...
<div class="image-title">ble ble ble ble</div>
html, html, html, etc...
<div class="image-title">bli bli bli bli</div>


I want to completely remove all <div class="image-title">

In Strip Content I put the following:
QUOTE
<div class="image-title"> | </ div>


But it is removing only the first match.

On the page that I'm doing the scraper I have a varied amount of divs distributed throughout the code and would like to remove all.

How can I do this?

Thanks

Posted by: Web Design Seo Oct 14 2013, 06:07 AM

Цитат
But it is removing only the first match.

To work well this function, strings must be unique, must be in html code nly once.

Posted by: CyberVerme Oct 14 2013, 12:04 PM

QUOTE (Web Design Seo @ Oct 14 2013, 03:07 AM) *
To work well this function, strings must be unique, must be in html code nly once.


As I am doing a scraper is not I who defines how many times the same div will appear over html code.

How should I do when I want to remove all html corresponding with strip Content?

Thank you

Posted by: CyberVerme Oct 21 2013, 11:38 AM

This is a function that the system should do. Because we do not control the html of the sites we scrape and assure you that in many situations we have several html elements identical to be removed.

Any position about this?

Posted by: Web Design Seo Oct 22 2013, 06:21 AM

Is possible to make component to work in this way. But there must be one new option inside - to work in this way or in other way.

This new function will be planned for next update (in next 1-2 weeks).

Posted by: CyberVerme Nov 30 2013, 08:26 PM

QUOTE
Is possible to make component to work in this way. But there must be one new option inside - to work in this way or in other way.

This new function will be planned for next update (in next 1-2 weeks).


This problem has been solved? the new version with the fix has already been released?

Posted by: Web Design Seo Dec 2 2013, 09:04 AM

This is not problem, this is new function. And will be inside next version. We will post http://3dwebdesign.org/forum/joomla-scraper-grabber-for-joomla-t698 new post when is ready.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)