June 9, 2013

How to save webpage contents ina text file

0 down vote favorite

I have following weblink:

http://www.rcsb.org/pdb/explore/sequenceText.do?structureId=1APS&chainId=A

Kindly open this weblink to see the contents.

I wish to save ONLY CERTAIN PARTS of this file in a text file, that is , I want only sequence portion (with spaces at correct places) and not the HEADING and any numbers on that webpage

Secondly, we can see there are spaces after every tenth character in all lines. I would like to remove only these spaces which occur after every tenth character and save this content in another text file.

Is it possible ? Can any one help in this regard ?

Click Here!