Simple pyparsing script

Completed Posted Apr 18, 2012 Paid on delivery
Completed Paid on delivery

I need Python code - using pyparsing library, without user interface - to parse text snippets like:

-----BEGIN PGP SIGNED MESSAGE-----

Hash: SHA1

In order to make this deposit please send to the exchange address ( 1Fx3N5iFPDQxUKhhmDJqCMmi3U8Y7gSncx ) the sum of 10.4243531 BTC exactly....etc...etc.

-----BEGIN PGP SIGNATURE-----

*should extract the exchange address (in parentheses) and the amount: 10.4243531

*

Second example:

-----BEGIN PGP SIGNED MESSAGE-----

Hash: SHA1

Holdings for Firstname Lastname (fingerprint FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFBBB)

Issued today, Tuesday the 17th of April 2012 at 10:46:45 PM (0.67250400 1334702805)

To certify that the aforementioned holds as of the quoted time the following with MPEx :

CxBTC x 10.8481215

[url removed, login to view] x 41`123

To which add orders in the book fully paid in advance :

[url removed, login to view] : S 100`000 @ [url removed, login to view] (order #12345)

[url removed, login to view] : S 1 @ [url removed, login to view] (order #12456)

*

should extract the timestamp (read 1334702805 as unix timestamp) and extract balances:

'CxBTC' : 10.8481215

'[url removed, login to view]' : 41123 (notice the number format with backtick for thousands separator - expect this everywhere the numbers are parsed)

and also extract order list data like:* *

'[url removed, login to view]' : 'S',100000,0.00123456,12345*

**Keep in mind that the above is only example, there will be 2-3 times more items to parse. I will provide you with exact samples when we start working.

Update- answers to your questions:**

The texts are automatically generated, with promise that the format won't change in near future.

Desired output is just plain Python lists/dictionaries I will be able to easily process further.

Engineering Project Management Python Script Install Shell Script Software Architecture Software Testing Web Hosting Website Management Website Testing

Project ID: #2733008

About the project

5 proposals Remote project Active Apr 19, 2012

Awarded to:

eduardn

See private message.

$37.4 USD in 10 days
(10 Reviews)
2.8

5 freelancers are bidding on average $60 for this job

marchent

See private message.

$71.4 USD in 10 days
(147 Reviews)
6.1
KevinXi

See private message.

$85 USD in 10 days
(29 Reviews)
5.6
kyrn

See private message.

$85 USD in 10 days
(9 Reviews)
4.4
fangchenlun

See private message.

$20 USD in 10 days
(0 Reviews)
0.0