Looking for cli tool that can convert ordinary html into rss

Does a tool like this exist?
What I'm thinking of:
cat $html | tool_i_need --match-post='<p class="newspost">' > output.rss
does something like this exist? Note: I am not interested in "online services" that do it for me.
The main use case: a lot of blogs have comments which i want to follow, but no rss feeds for the comments, so i want to create my own feed.
Last edited by Dieter@be (2010-10-30 09:24:13)

For xhtml (blogs are using it, aren't they? ) there is xsltproc. You just need a stylesheet like this:
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param
name="channel-title"
select="/head/title" />
<xsl:param
name="channel-description"
select="/head/title" />
<xsl:param
name="channel-url" />
<xsl:param
name="page-url" />
<xsl:template match="/">
<rss version="2.0">
<channel>
<title><xsl:value-of select="$channel-title"/></title>
<link><xsl:value-of select="$channel-url"/></link>
<description><xsl:value-of select="$channel-description"/></description>
<xsl:apply-templates/>
</channel>
</rss>
</xsl:template>
<xsl:template match="//p[@class == 'newspost']">
<item>
<title><xsl:value-of select=".//id('title-id')"/></title>
<link><xsl:value-of select="$page-url"/>#<!-- find anchor--></link>
<description></description>
</item>
</xsl:template>
</xsl:stylesheet>
The params values may be set from the command-line for those that can't be guessed from the source file.
While xsltproc is a generic tool, stylesheets are mostly site specific
Dieter@be: do you have a link for your sample?, I'd like to test this crap
Last edited by diegonc (2010-10-30 17:05:32)

Similar Messages

  • Looking for a program that can handel import and export of palm doc files

    I am looking for a program that can handel the import and export of palm doc Files that can convert them to to either txt or RTF files for Vista 32, running Palm Desktop 7.1.
    Could anyone give me a few suggestions of any plug-ins that would be good me?
    Hearns
    Post relates to: Palm IIIxe
    This question was solved.
    View Solution.

    Ok, you need to clean uninstall Palm desktop 6.2. Install Palm desktop 4.1.4 and download and install documents to go version 6.
    Here are the clean uninstall instructioins for Vista.
    You should first make a copy of your data to have just in case something
    happens. You can find your data files by going to Start --> Documents -->
    Palm OS Desktop. Highlight your Palm Desktop username and right click and
    copy. Then go to your PC desktop right click on a blank spot and select paste.
    If this is the first time you are installing Palm desktop and encountering a problem, skip the previous step.
    Now you want to uninstall Palm Desktop and remove everything that has to do
    with Palm Desktop from your computer.
    Go to the following locations on the PC and delete the folders listed below.
    C:\Program Files\Palm or Palm One
    C:\Users\[Vista Login Name]\appdata\local\virtualstore\Program Files\Palm or
    PalmOne
    C:\Users\[Vista Login Name]\appdata
    *Note you may need to view hidden folders to get to appdata. To do that go
    into your control panel and open folder options. Go to view tab and uncheck
    hide hidden files.
    Once this is done you will need to delete some registry keys from your PC Operating System.
    Word of warning, going here and deleting the wrong thing can cause your PC
    from starting up, crashing and deletion of programs and data. If you feel
    you are unsure of yourself, see if you have a friend that can help you or a
    PC technician that you can pay to help you. This procedure will show them everything they need to delete. To make sure we have a good copy of the current registry, we need to do a backup of the Registry.
    Go to start on the PC, in the search field type "regedit.exe" without quotes.
    Highlight COMPUTER, go to File --> Export. Should pop up with a Save As box.
    Current location is fine, should be in My Documents or save to a location you will remember. In the file name on the bottom type "backup[todaysdate]" i.e. backup07072008. Next, the hard part.
    The easiest way to make sure your working with the correct key, highlight the key i.e. palm quick install, and press delete on your keyboard. It will ask you, are you sure. Say yes. Do the same thing for all keys below.
    If you make a mistake, stop what you are doing. And call a PC technician.
    BUT do not turn off your computer.
    The reg keys are as follows (Note: some of theses reg keys will not be here
    but if they are delete them)
    * HKEY_CURRENT_USER\Software\U.S. Robotics\Palm Quick Install
    * HKEY_CURRENT_USER\Software\U.S. Robotics\PalmOne File Transfer
    * HKEY_CURRENT_USER\Software\U.S. Robotics\Pilot Desktop
    * HKEY_CURRENT_USER\Software\Palm
    * HKEY_CURRENT_USER\Software\Palm, Inc.
    * HKEY_CURRENT_USER\Software\PalmDesktopAutorun
    * HKEY_CURRENT_USER\Software\palmOne
    * HKEY_CURRENT_USER\Software\PalmSource
    * HKEY_LOCAL_MACHINE\Software\PalmSource or anything else that says palm
    Next reboot your computer.
    Then reinstall your palm desktop from the CD and do a hotsync. Use the username that is on the handheld.

  • I am looking for an app that can unmute my iphone after a preset time, eg 1 or 2 hours. Does anybody know an app with this feature?? The apps I have found are linked to a calendar or a place, I just need the timer function..

    I am looking for an app that can unmute my iphone after a preset time, eg 1 or 2 hours. Does anybody know an app with this feature?? The apps I have found are linked to a calendar or a place, I just need the timer function..

    thanks. yes i am aware of the VoiceOver feature but it is NOT the solution to my problem. as you said, it is a solution to a different set of issues. i want the text to speech ability because i there are books i need to read but do not have the time to sit down and read them and have become used to listening to them read to me either by a professional human reader or with the text to speech software on the Kindle.
    I think Apple makes the best audio devices but i am really disappointed in this inexplainable shortcoming. if apple can give us siri they ought to be able to design a nice little button that i can push to turn on text to speech while i am in a document, book, magazine or webpage. clearly it is possible as apple has added the "reader" button in safari to have web pages dropped into the reader format.
    thanks for your suggestion though, it is what everyone suggests but it does not address the issue.

  • Looking for an app that will convert written chemical formulas to text. Any suggestions?

    Looking for an app that will convert written chemical formulas to text. Any suggestions?

    I could not find any app that would do this. There are different types of message apps but nothing that I could find to do what I am looking for. For a specific contact I would like the message to have a notification that will not go away until I acknowledge it. Just like you would do if it was a pager.

  • Looking for VI where i can convert covert a float number to Q 11.5 representation

    looking for VI where i can convert covert a float number to Q 11.5 representation and what exactly  Q 11.5 representation means.
    Kindly help me on the same.
    Solved!
    Go to Solution.

    Appears to be right, but don't forget to round to the nearest integer.
    http://zone.ni.com/reference/en-XX/help/371361H-01/glang/round_to_nearest/
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • I am looking for an app that will transcribe talking words into written words.  I have no idea where to look

    I am looking for an app that will transcribe talking words on a cd into written words in a file.

    Give Dictation a try.

  • Looking for calendar app that can sync multiple calendar colours in outlook

    I Have multiple colour categories in my calendar  but need a calendar app that can sync with outlook. Do NOT want to sync with google calendar. Any suggestions? Thanks

    Hi ron1098,
    Try my application Dates to iCal. it runs on the Mac, but you can sync the calendar to your iOS device.
    See more about Dates to iCal here. It is £4 shareware with a 2 week demo.
    Best wishes
    John M
    As I sell software on my site and ask for donations, the Apple Support Communities Use Agreement requires that I state that I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • I am looking for an AP that can perform the routing as well which model should i go for

                       HI, while setting up the wireless network for best networking institute in bangalore, networkers Zone (http://networkerszone.com/), i found that we require a router for static routing and an AP so i was wondering if i can get one device for both purpose as i do not require to run routing protocols.

    Hi,
    the Cisco 891W or 881W  come with a build in AP module inside that would be like having a router connected with an Ethernet cable to an stand alone access point but instead of having the 2 devices the AP module is embedded inside the router.
    http://www.cisco.com/en/US/products/ps10194/index.html
    http://www.cisco.com/en/US/products/ps9556/index.html

  • Looking for an application that can scroll custom text over video.

    Hi, Not sure if this is the correct place to ask this - but here goes. In our school we have a display in the foyer that shows a looped quicktime video. I would very much like to scroll custom text with recent school related news in the forefront or things that parents and pupils should remember - kind of application that is always in the front - similar to the scrolling text news channels have along the bottom. Also possibly another app that would do  similar thing but showing local weather. Does anybody have any suggestions. Thanks in hope.
    Gwyn

    ported to the Mac
    it's on my other Mac
    is their a Mac version?
    It seems a safe bet, eh..?
    I'm pretty sure the mac link was posted to that thread I linked to, it's where I found out about it...
    http://www.bigbluelounge.com/forums/viewtopic.php?t=35638&highlight=&sid=c2dcbfd c2af80e0fdf9da04b91319e1d

  • I'm looking for the program that can make my left enter key an option key.

    I used to have it before my computer crashed and i lost everything on my hard drive. if any one who knows what it is please help me out.

    http://doublecommand.sourceforge.net/download.html
    I figured it out.

  • Looking for a Tool

    I am an IT consultant with a client that conducts a wide range of activities including research, education, marketing, and sales. There are a variety of legal, regulatory and ethical standards that apply to these activities. Our task is to design/develop a system that allows the monitoring and tracking of our compliance in each of these area.
    I am looking for a tool that would allow me to design and develop the application quickly.
    Thanks very much for your help,
    Bruce Liang

    Bruce,
    There are several rapid application development (RAD) tools, most of which can be used to develop applications against an Oracle database. Oracle's offerings in this area are:
    Designer: This is our premium application development tool, suitable for extremely large, complex projects
    Developer: This applications development tool allows you to quickly create forms based applications.
    JDeveloper: Allows you to create Java based applications.
    The ramp-up time on the first tool might eliminate it from consideration (Designer has so many capabilities that we have an entire curriculum devoted to helping application developers get the most out of it). I've thrown together quick, relatively simple applications using Developer in a matter of hours, but you will find that any tool will be slow going at first until you get used to its environment.
    Of the non-Oracle offerings, my favorite has to be Inprise's Delphi. Like Oracle's Developer, it takes a while to get used to the development environment but I haven't seen too many things I wanted to do that couldn't be done in Delphi.

  • [solved] cli tool that repeatedly checks a host on a specified port

    can anyone recommend a command line tool that repeatedly checks a host on a specified tcp port?
    what i do now:
    - I reboot a server
    - I ping the host; when I see it replies, I know its networking is up
    - I use "nmap -PN -p 25 host" from time to time to check when the smtp service comes up
    I'm looking for a tool that does this port check repeatedly, like ping repeatedly checks for icmp echo replies...
    Last edited by zZyXx (2010-03-29 13:56:30)

    thanks. that should provide the desired functionality. I was looking for another tool because for some reason nmap takes a few seconds on this machine. I remembered reading about some tool that provided the functionality I described.
    I found it again: it was nping, a new development related to nmap, still alpha however...
    http://nmap.org/nping/

  • Looking for a app that will go out and get all my credit card balances.

    I am looking for a App that can go on all the web sites for my Credit Cards and download the balance Interest Rate Payment.....
    Anyone know of a good one?

    I recommend that instead of working on an iPad application you get a good web programmer in and set up a web-facing system that can be used from anything with a web browser --  an iPad, a smartphone, a laptop or a desktop.  Then your employees can access the system from any computer with a web browser, and you don't need to employ an expensive specialist programmer to produce a system which is useless for devices made by other manufacturers.  The only requirement for use will be that your devices must in range of either WiFi or a phone signal.
    It will also mean that if you need to change your software at any time you only have to change one copy, back at headquarters, rather than update an App on every individual iPad.
    Apple's web browsers (including the ones built into iDevices) allow a web site to request the user's location, so people using an iPad should be able to do the things you have asked for.

  • I am looking for a device that I can use to record a lecture (2 to 3 hours long or more) and later access to write notes to paper or convert the file to a printable file, is the iPad 2 the device that will do this?

    I am looking for a device that I can use to record a lecture (2 to 3 hours long or more) and later access to write notes to paper or convert the file to a printable file, is the iPad 2 the device that will do this?

    In your reply you stated that iPad microphone is not very sensitive. And that you could hardly hear the play back.
    Are you speaking of a speaker's  nature voice or an individual using an audio system. Also how close were you to the speaker?

  • Any suggestions for programs that can convert mpeg1 to a format that can be edited in iMovie Version 8.0.6 (821) and/or iMovie HD Version 6.0.3 (267.2) Thanks

    Any suggestions for programs that can convert mpeg1 to a format that can be edited in iMovie Version 8.0.6 (821) and/or iMovie HD Version 6.0.3 (267.2) Thanks

    Hi Mark
    Was just looking for the answer to this exact question and I just found something that worked for me so don't know if it might be of use to you or you might have already solved your problem!  Basically when I was in iMovie and I clicked to import movies from the computer into iMovie and I found the clip I wanted to import, there are a few options.  I think it asked which Event I wanted to add it to but most importantly it asked me what file size I wanted...I had originally been clicking Large because it advised me to because it reduces the file size...but just on a chance there I selected 'Full - Original' for size and it imported perfectly into iMovie in it's original vertical form!
    Hope this helps!
    Bianca

Maybe you are looking for

  • OIM 11.1.1.5 Approval Workflow Issue

    Hi, I have installed OIM 11.1.1.5. While self-registration of a user, the request is created and by default assigned to xelsysadm as the request level approver. However, when the approver logs in, assigns the organization to the user and approves the

  • Count based on the UDA's in ASO cube

    In product dimension I have UDA's like MDW, NEW in all level 0 members. I would like to get the count of all MDW's and put that in an account A and count of all NEW's and put it in account B. Please help this MDX query. I tried this ..but not sure ho

  • Inaccurate GPS data when exporting from iPhoto

    I'm trying to export geotagged photos from iPhoto, and I'm experience some odd behavior. 1) When I tag the photos outside of iPhoto, the photos' geo information comes up correctly in Places, but when I try to export the photo (either drag to desktop

  • Help with importing mailboxes

    I just imported my Mail mailboxes from my backup drive onto a new Macbook Pro. The mailboxes all show up in Mail, but none of the messages are there. I double checked the library on the backup drive and the messages are all in the mailboxes, so they

  • Abap table /alv grid

    Hi Experts, I m looking for some abap sample programs to build a program with tabs. In any tab you have a table (ALV GRID ) with buttons to move up/down the selected row.