You are here

Can Someone Help me Scrub This line ??

6 posts / 0 new
Last post
karimf
Offline
Joined: 10 years
Last seen: 8 years
Can Someone Help me Scrub This line ??

Hi Guys,

Can someone be kind enough to help me scrub the following 2 lines to extract the .jpg image of the show ? (I also attached the 2 lines in txt file because the below lines keep getting "src=http:\\webgrabplus......" inserted in the middle of the original lines when I post them???)

<div class="news-img right">
<img id="ContentPlaceHolder1_DataList1_Image1_0" src="http://www.webgrabplus.com/%3Ca%20href%3D"http://niletc.tv/Public/app_upload/news380-300/431a43f9-baab-43f5-842f-612f6f93a756.jpg">http://niletc.tv/Public/app_upload/news380-300/431a43f9-baab-43f5-842f-6..."></img>
</div>

Can't get bs,es,ee,be right at all !!

Thanks in advance.

Attachments: 
francis
Offline
francis's picture
Has donated long time agoWG++ Team member
Joined: 12 years
Last seen: 8 months
Is the support helpful?
support us

from the head ;-)

 

index_showicon.scrub {regex||class="[^\"]*news-img[^\"]*"(.*?)</div>||} *adjust to the correct class you need
index_showicon.modify {substring(type=regex)|img [^>]*src="([^\"]*)"}

 

 

karimf
Offline
Joined: 10 years
Last seen: 8 years

Thanks Francis for your help.

I just don't get what you mean by " *adjust to the correct class you need "....it's a div class like i wrote in my question (first line)...or do you mean something else ??

I thank you again for being so helpful.

francis
Offline
francis's picture
Has donated long time agoWG++ Team member
Joined: 12 years
Last seen: 8 months
Is the support helpful?
support us

Well, I don't know if the div class is always new-img (or is it always right) for the div that contains the image. Don't know if for all shows, the both classes are defined. So you should define only the class that is always available (could aslo be both)

karimf
Offline
Joined: 10 years
Last seen: 8 years

It worked great Francis the genius :) :)

Thanks mate.

karimf
Offline
Joined: 10 years
Last seen: 8 years

Just wanted to thank you again for being so helpful, answering my questions, and making it work for me :)

BTW, been trying to remove shows with zero life span (a site has 2 shows with same start time but 1 of them shows has the stop time=start time=zero life span, so I'm trying to not scrub/remove such a show) using ini file and not the <skip> in the config as it conflicts with other sites.

Any ideas ?

Thanks again.

Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl