php - How to check if a site has rss feeds -


Suppose I would like to create a webpage that takes the domain name of a website as input and checks if the site has RSS feeds or not. . And if that site has RSS feeds, then it goes to the next page or in other words, just check whether the given domain name has this tag or not-
  & lt ; Link rel = "alternate" type = "application / rss + xml" title = "something" Href = "http: //www.example.com/feed1.xml?type=/   

How do I do this by using php or javascript?

Because of, you do not implement javascript You will need PHP, and Xpath html> gtc: head> gt; [@ rel = 'optional'] . < Search for / html>

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -