473,385 Members | 2,005 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to remove Ads from RSS content..

Hello friends..

i have made on window service which is hourly update the rss news data..
but some rss comes with some ads and logos and unwanted scripts i wanted to completly remove that all unwanted things..

Should any one suggest me right way to do this..??

Thanks for think on it..!!
Feb 4 '08 #1
6 2687
jkmyoung
2,057 Expert 2GB
How are you getting the RSS content? When you say remove the ads, how are the ads coming in the RSS content? What are you using to process the RSS?
Feb 4 '08 #2
How are you getting the RSS content? When you say remove the ads, how are the ads coming in the RSS content? What are you using to process the RSS?
I am getting rss by reading XML file only not any method i am follow but in that some rss giving Ads By google or something like that in <item> tag so i want to remove that ..

Any method for removing that..??
Feb 5 '08 #3
jkmyoung
2,057 Expert 2GB
Are you processing the rss by using XSLT, or are you using some sort of RSS reader? Can you use .Net, or any other DOM? Do you want to do this using a scripting language?
Feb 5 '08 #4
Are you processing the rss by using XSLT, or are you using some sort of RSS reader? Can you use .Net, or any other DOM? Do you want to do this using a scripting language?
Ya i am using XSLT at now..but if any method is exist than it is most welcomed becoz using XSLt i am not getting any satisfactory output... How to do this using DOM or scripting language..any example or article is most welcomed..

thanks for all this help..
Feb 6 '08 #5
jkmyoung
2,057 Expert 2GB
1. Figure out how to identify these ads.
- Is there a particular keyword that they use in their description?
- Is there a particular url address they link to?
Let's say the pattern is that the description contains 'buy'

2. Create a template in your xslt, that consumes these items and outputs nothing:
Expand|Select|Wrap|Line Numbers
  1. <xsl:template match="item[contains(description, 'buy')]"/>
  2.  
Feb 6 '08 #6
1. Figure out how to identify these ads.
- Is there a particular keyword that they use in their description?
- Is there a particular url address they link to?
Let's say the pattern is that the description contains 'buy'

2. Create a template in your xslt, that consumes these items and outputs nothing:
Expand|Select|Wrap|Line Numbers
  1. <xsl:template match="item[contains(description, 'buy')]"/>
  2.  

Thanks for your suggestion..
Feb 8 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Nico Grubert | last post by:
Hello, I want to remove all html tags from a string "content" except <a ....>xxx</a>. My script reads like this: ### import re content = re.sub('<((|\n)*)>', '', content)
5
by: Andy Leszczynski | last post by:
How remove directories with the content in the platform independent way? Is the API for that? Thx, A.
2
by: Peter Gomis | last post by:
I have encountered a situation where I am unable to remove a .NET assembly from the GAC. The message I receive is "Assembly 'assemblyname' could not be uninstalled because it is required by other...
1
by: Aaron Fleming | last post by:
How can I remove the content in between tags? I have a page that has several custom tags: <!--tag:1--> Content 1 <!--/tag:1--> <br> <!--tag:2--> Content 2 <!--/tag:2-->
14
by: j1c | last post by:
How can I remove the content in between tags? I have a page that has several custom tags: <!--tag:1--> Content 1 <!--/tag:1--> <br> <!--tag:2--> Content 2 <!--/tag:2--> <br> <!--tag:3--> Content 3...
12
by: Oberon | last post by:
I have a large HTML document. It has hundreds of <span>s which have no attributes so these <span>s are redundant. How can I remove these tags automatically? The document also has <span>s with...
3
by: Christian Lutz | last post by:
Hy there I have a Web Services written in Java, running on Tomcat. The Client is written in C#. When i monitor the request/Response with TCPMon (included in Tomcat) i can observer the following...
1
by: Miguel Dias Moura | last post by:
Hello, I am adding a MetaTag from my .pasx.vb code: Dim metaTag As New HtmlMeta() metaTag.Name = "Title" metaTag.Content = "My Web Site" Page.Header.Controls.Add(metaTag) Later in my code I...
2
by: Harry Haller | last post by:
Can I remove text from a StringWriter ? I have a StringWriter object, the content of which looks like this: "<div>Some other html which I wish to keep</div>" Can I remove the unwanted <div>,...
4
by: ashish1779 | last post by:
hi I am new in PHP, i have face one problem when I crawl any site and i have to save the whole HTML content in database, on that time all the HTML tags are changes into the extra space in content...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.