![]() |
|
[Req] Ad filter for AltaVista text-only search results - Printable Version +- The Un-Official Proxomitron Forum (https://www.prxbx.com/forums) +-- Forum: Proxomitron Filters (/forumdisplay.php?fid=38) +--- Forum: Filter Help/Request (/forumdisplay.php?fid=31) +--- Thread: [Req] Ad filter for AltaVista text-only search results (/showthread.php?tid=1595) |
[Req] Ad filter for AltaVista text-only search results - jerry - Mar. 22, 2010 04:39 AM Good grief! I've been a forum member since 2004, and I'm just now making my first post! I've just been merrily using Proxomitron daily in its "out-of-the-box" configuration, and only this weekend tried writing some of my own filters. I'm very proud to say I wrote one from scratch that worked perfectly, only to find later (while prowling the forum) somebody had already written and posted one for the same purpose. Not wishing to be publicly humiliated for "not searching the forum first," I have dug all through the forum before posting this request to make sure somebody hasn't already tackled this one. I want to remove the top "Sponsored Matches" from pages like these: http://www.altavista.com/web/res_text?itag=ody&amb=txt&kls=0&kgs=0&q=buy+dvds I've done it for Google, Yahoo, and Hotbot, but AltaVista has got me stumped because the ads aren't within any normal "container." They're just floating in the <BODY> of the page like the desired results are. These forum pages looked promising: http://prxbx.com/forums/showthread.php?tid=646 http://prxbx.com/forums/showthread.php?tid=475 but I haven't been able to pull anything together that will do any more than suppress the <DIV></DIV> section that contains the trigger "Sponsored Matches". God knows I don't really need another ad-free search engine. Now I'm just anxious to learn more about Scott's wonderful language. Best regards, Jerry RE: [Req] Ad filter for AltaVista text-only search results - JJoe - Mar. 22, 2010 03:34 PM Try Code: [Patterns]HTH It works perfectly! - jerry - Mar. 22, 2010 08:20 PM Thanks Jjoe, that works perfectly -- although at first glance, I will admit I don't know why. I'm going to have to sit down with the documentation and pick my way through it. But I wanted you to know right away that I saw your post and it worked fine. Thanks. (I reserve the right to come back later and ask questions about it!) Jerry . . . and I understand it! - jerry - Mar. 22, 2010 09:53 PM Well, it's brilliant! I can see each piece of the code working. Especially the "include everything until you find a <div, but don't include it in the match" section. Now I know everything! Thanks again. Jerry |