Re: HTML processing
Paolo <[email protected]>
| Newsgroups | gmane.mail.spam.crm114 |
|---|---|
| Message-ID | <20080522212455.GG2534@localhost> |
On Thu, May 22, 2008 at 02:08:53PM -0600, Trever L. Adams wrote: ... > I am using a UNIX-like system (Linux). I thought I had seen an example > that talked TCP/IP in crm114. I guess I was wrong. I just went and no, you're right, except perhaps it was a bit longer ago. We've been talking about the use with socket(1) and nc(1) (netcat). Likewise, you can try and use any of the other similar tcp/udp utils around. > Is it possible to have CRM do mailreaver.cm like functionality in a loop > or will it only do one such thing per invocation? I ask this because I mailreaver.crm was designed for per-invocation; to take advantage of its own caching, crm114 would need to run a looping .crm, which means to fill-up the input buffer via INPUT from some <fd> or via SYSCALL to eg. nc(1). On EOF, go on, munch-munch, spit the response, then back to eating. > >>2) Is it possible to process HTML such that I remove all HTML tags BUT > >>keep the content of the CONTENT part of META tags and ALT and TITLE > >>content from <IMG>? If so, how? mailreaver.crm have some HTML-specific code (for stuff like <!--...-->). Anything more you want, just do it with the right regex. But, instead of implementing an *TML parser in crm, I'd rather do that via SYSCALL to something done for that - eg. unhtml(1), lynx(1), w3m(1) etc. Nevertheless, if you end up imlementing such *TML parser, _that_'d be nice to stuff in the .crm library :) -- paolo ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/