extract

What's the best way to extract table content from a group of HTML files?

After cleaning a folder full of HTML files with TIDY, how can the tables content be extracted for further processing? ...

get contacts from email account

a lot of websites like twitter, facebook and others let the users enter their email id and pwd and 'extract' the contacts based on that. Anyone know how this is done? ...

How to extract img src, title and alt from html using php?

I would like to create a page where all images which reside on my website are listed with title and alternative representation. I already wrote me a little program to find and load all html files, but now I am stuck at how to extract src, title and alt from the html < img src="/image/fluffybunny.jpg" title="Harvey the bunny" alt="a ...

How do I extract the version and path from an SVN working copy into a nant variable?

I am creating a new build process for a DotNet project which is to be held in Subversion. For each dll/exe that I compile (via Nant) I would like to include 2 additional attibutes in the dlls that are built. I already understand the workings of the 'asminfo' nant task. But I need help retrieving the information which I hope to embed in...

How can I split multiple joined words?

I have an array of 1000 or so entries, with examples below: wickedweather liquidweather driveourtrucks gocompact slimprojector I would like to be able to split these into their respective words, as: wicked weather liquid weather drive our trucks go compact slim projector I was hoping a regular expression my do the trick. But, sinc...

How can I extract and save text using Perl?

No extracted data output to data2.txt? What goes wrong to the code? MyFile.txt ex1,fx2,xx1 mm1,nn2,gg3 EX1,hh2,ff7 This is my desired output in data2.txt: ex1,fx2,xx1 EX1,hh2,ff7 #! /DATA/PLUG/pvelasco/Softwares/PERLINUX/bin/perl -w my $infile ='My1.txt'; my $outfile ='data2.txt'; open IN, '<', $infile or die "Cant open $in...

How can I extract text, save it, then output it to web?

I am searching for HF50(HF$HF) for example in "MyFile.txt" so that the extracted data must save to "save.txt". The data on "save.txt" now extracted again and fill the parameters and output on my table. But when I tried the code, I've got no output and "save.txt" is blank.? Var $HF is not recognized whatever I type. Please help. #! /usr...

How can I extract XML of a website and save in a file using Perl's LWP?

How can I extract information from a website (http://tv.yahoo.com/listings) and then create an XML file out of it? I want to save it so to parse later and display information using JavaScrit? I am quite new to Perl and I have no idea about how to do it. ...

How can you extract Hardware ID using Python?

How do you extract an HD and Bios Unique ID, using python script? ...

Shell script/regex: extraction across multiple lines

I'm trying to write a log parsing script to extract failed events. I can pull these with grep: $ grep -A5 "FAILED" log.txt 2008-08-19 17:50:07 [7052] [14] DEBUG: data: 3a 46 41 49 4c 45 44 20 20 65 72 72 3a 30 32 33 :FAILED err:023 2008-08-19 17:50:07 [7052] [14] DEBUG: data: 20 74 65 78 74 3a 20 00 ...

C/C++ Code to treat a character array as a bitstream

I have a big lump of binary data in a char[] array which I need to interpret as an array of packed 6-bit values. I could sit down and write some code to do this but I'm thinking there has to be a good extant class or function somebody has written already. What I need is something like: int get_bits(char* data, unsigned bitOffset, unsi...

How can I grab each page of text in a Word doc separately (using .NET)?

I need to determine which pages of a Word document that a keyword occurs on. I have some tools that can get me the text of the document, but nothing that tells me which pages the text occurs on. Does anyone have a good starting place for me? I'm using .NET Thanks! edit: Additional constraint: I can't use any of the Interop stuff. e...

Encrypted, password-protected file creation

I'm writing a program that creates a Word document with sensitive information. I'd like to encrypt and password protect the document and distribute it in a self-extracting file so that the user can double-click, provide a password, and then receive the unencrypted file. I'm okay creating the Word document, but I'd like a third-party pro...

Extracting individual digits from a float

I have been banging my head on this one all day. The C++ project I am currently working on has a requirement to display an editable value. The currently selected digit displays the incremented value above and decremented value below for said digit. It is useful to be able to reference the editable value as both a number and collection...

Extracting equations and images from Word

Is there a programmatic way to extract equations (and possibly images) from an MS Word document? I've googled all over, but have yet to find anything that I can sink my teeth into and work from. If possible, I'd like to be able to do this with VB.NET or C#, but I can pick up enough of any language to hack out a DLL. Thanks! EDIT: Rig...

How to create a folder which listens for changed files or new files

I have a requirement where I create many swc files (swc files are similar to zip or jar files). I want that, whenever I create a new swc file and add it in a "particular folder" then these files should automatically get extracted (similar to what happens in Apache Tomcat webapps folder). Please help me how to do that in Windows. [Note: ...

How can I extract numeric data from a text file?

I want the Perl script to extract a data from a text file and save it as another text file. Each line of the text file contains an URL to a jpg like "http://pics1.riyaj.com/thumbs/000/082/104//small.jpg". I want the script to extract the last 6 numbers of each jpg URL, (i.e 082104) to a variable. I want the variable to be added to a diff...

String extraction.

Hey guys. Currently I am working very basic game using the C++ environment. The game used to be a school project but now that I am done with that programming class, I wanted to expand my skills and put some more flourish on this old assignment. I have already made a lot of changes that I am pleased with. I have centralized all the dat...

Application to query a database and send results as file via HTTPS

I've currently got a tool which allows me to configure a database connection (using JDBC) and specify a set of queries to run against the database. This is scheduled to run at a specific time of day (using cron or windows scheduler currently). The tool then exports the results to a file (xml) and sends this file to my server via HTTPS. T...

ajax Return Data Not working in JQuery

Dear all I have developed code with ajax and JQuery , I have Got Response from my.php, I have Tried to extract the Values of response ,Here the code My.php ?php echo '<div id="title">My Title </div>'; echo '<div id="message"> My message </div>'; ?> I Try to extract Title and Message SO My Code is Below <script t...