Skip to content

Instantly share code, notes, and snippets.

@lmmx
Created Sep 28, 2014
Embed
What would you like to do?
Scripts to check for ‘bad eggs’ in PDBe PISA download files - when the download script errored out, the line it did so at was logged, then these queries re-run. In one case, PDBe staff were notified that one link wasn't functional and corrected it.
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1oew,2bwi,2bw5,1qv0,1qv1,3w07,4mzc,2bw4,1kf2,1kf3,1kf4,1kf5,1kf7,1kf8,2cnq,2cnu,1djt,1lu0,2bf6,2vzp,2jli,2bax,1r2m,1h1n,1oe1,3puc,2xom,3d1p,3cux,3cuz,3cv1,3cv2,1hj9,1bbh,1t8z,1s9u,1szt,2ada,4k6b,3rwn,1n40,4hrf,1fkf,1fkk,1fkj,1fkl,1mnz,2bpa,1atn,1ecm
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1p6m,1rs8,1rs9,1p6n,1p6l,2hx2,1zzs,1zzt,3nse,1bev,1e79,1kig,2baf,4l9i,3qmu,1hwy,3mw9,1hwz,3mvq,3psc,3pvu,3pvw,3klr,1v54,2dyr,2occ,2zxw,3abl,3abm,1v55,3abk,1ocz,1oco,3ag2,3ag1,3ag4,3aso,3asn,1ocr,2eij,3ag3,2dys,2y69,2qsp,2qss,1biv,1d9c,1d9g,1lfc,1lcp
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1pn8,1pn7,1qzc,1qzb,1qza,3iyx,3iyy,4btg,4btq,2bcw,2r1g,2r1c,1zc8,2b8e,3re7,1a2v,1n68,2xmt,2xmv,2xmu,1cpz,4knu,4knt,1k0v,2rsq,3bkt,3wkq,3wko,3s0p,2k4b,1olt,3ejo,1vju,2qt8,3e8j,3dpt,4eeb,4eed,4bz4,1sfk,2jhb,1qs4,1gpc,3j0p,3j0q,3j0l,3j0o,1e8o,1p3n,1kfm
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3kbt,3kbu,1k1a,1k1b,2f37,2eta,2nyj,2pnn,2etb,2etc,4d8o,3edu,1aei,3l47,3nhi,3nht,1nhz,3h52,2qk8,1jky,1pwp,1tzo,1tzn,4aeh,3ulq,2g5b,1l7i,1jhk,4o4y,1ktr,3rpt,1dqj,1cr9,1cu4,3iqs,4pl0,4nzr,4nzt,1mh0,1sgi,1tq7,1uyw,3kcg,2gd4,1qtp,1qts,1cy5,1vrm,1jhj,3p1z
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3i9w,1mul,3cdj,1ix9,1i0h,1ixb,4bin,2y1b,1zmr,1k8w,3mkn,3mkm,3b9x,3or9,3ora,3orb,1vt2,3ofa,3ofb,3ofc,3ofd,3ofx,3ofy,3ofz,3og0,3ofo,3ofp,3ofr,3ofq,3oaq,3oar,3oat,3oas,1d5y,2wp9,2wu2,2wu5,2ws3,4nyb,4nya,4nyd,4nyg,3k0j,4nyc,1crz,2itm,1fcm,2gzw,3by8,4lrx
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1c3t,1t34,1n6m,4kpi,3de5,3zry,4gy0,4gy1,4e3t,1eoq,1em9,1fig,1gpl,1dzf,4e04,3uk0,2a9r,1y69,2kt5,2yka,2go9,1o9g,1o9h,4d9t,4d9u,4jg6,4nw6,4nw5,4nus,4ixq,4ixr,2fjv,2fjx,3px8,3px9,1hvz,3gyp,2bt6,3m0b,2w8y,4ibl,1gk8,1iwa,1bq9,1bq8,1iro,1brf,1irn,1s24,1rdg
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4ljc,2kp3,2m3g,3ccr,3ccq,3cc7,3ccj,3ccs,3ccu,3ccm,3ccv,3cce,3ccl,2ch1,4f7f,3v2l,4gtn,1s26,3bkm,2vl5,2g60,3lrg,3lrh,4k23,4k24,1pp5,1msi,1ot0,1p0g,2r9y,2rh5,2rh8,3hfs,3qds,4ggt,3oo0,4elx,3md9,2wk7,2q9a,3mok,4qej,2wqm,4fd8,3szi,2q5r,2r60,1lio,1sxi,1p4o
try:
import urllib2
import re
from datetime import datetime
with open("eggqueries.txt") as eggqueries:
eggtup = tuple(eggqueries)
for line in eggtup:
lnum = eggtup.index(line)
now = datetime.now()
print str(now.hour)+":"+str(now.minute)+" - Checking egg "+str(lnum+1)
url = line.rstrip()
try:
s = urllib2.urlopen(url)
except urllib2.HTTPError, err:
print "Egg "+str(lnum+1)+" "+url.split('?')[1]+" is a bad egg"
import sys
from subprocess import call
if sys.platform == 'linux2':
call(["mpg123","-q","Pause-Mario.mp3"])
elif sys.platform == 'darwin':
call(["afplay","Pause-Mario.mp3"])
except KeyboardInterrupt:
pass
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1oew
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2bwi
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2bw5
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1qv0
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1qv1
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3w07
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4mzc
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2bw4
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1kf2
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1kf3
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1kf4
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1kf5
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1kf7
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1kf8
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2cnq
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2cnu
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1djt
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1lu0
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2bf6
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2vzp
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2jli
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2bax
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1r2m
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1h1n
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1oe1
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3puc
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2xom
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3d1p
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3cux
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3cuz
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3cv1
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3cv2
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1hj9
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1bbh
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1t8z
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1s9u
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1szt
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2ada
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4k6b
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3rwn
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1n40
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4hrf
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1fkf
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1fkk
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1fkj
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1fkl
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1mnz
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2bpa
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1atn
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1ecm
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1p6m
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1rs8
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1rs9
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1p6n
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1p6l
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2hx2
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1zzs
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1zzt
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3nse
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1bev
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1e79
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1kig
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2baf
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4l9i
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3qmu
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1hwy
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3mw9
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1hwz
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3mvq
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3psc
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3pvu
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3pvw
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3klr
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1v54
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2dyr
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2occ
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2zxw
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3abl
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3abm
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1v55
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3abk
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1ocz
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1oco
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3ag2
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3ag1
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3ag4
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3aso
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3asn
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1ocr
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2eij
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3ag3
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2dys
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2y69
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2qsp
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2qss
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1biv
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1d9c
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1d9g
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1lfc
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1lcp
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1pn8
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1pn7
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1qzc
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1qzb
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1qza
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3iyx
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3iyy
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4btg
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4btq
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2bcw
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2r1g
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2r1c
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1zc8
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2b8e
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3re7
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1a2v
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1n68
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2xmt
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2xmv
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2xmu
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1cpz
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4knu
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4knt
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1k0v
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2rsq
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3bkt
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3wkq
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3wko
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3s0p
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2k4b
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1olt
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3ejo
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1vju
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2qt8
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3e8j
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3dpt
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4eeb
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4eed
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4bz4
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1sfk
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2jhb
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1qs4
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1gpc
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3j0p
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3j0q
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3j0l
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3j0o
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1e8o
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1p3n
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1kfm
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3kbt
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3kbu
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1k1a
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1k1b
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2f37
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2eta
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2nyj
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2pnn
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2etb
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2etc
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4d8o
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3edu
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1aei
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3l47
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3nhi
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3nht
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1nhz
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3h52
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2qk8
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1jky
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1pwp
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1tzo
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1tzn
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4aeh
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3ulq
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2g5b
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1l7i
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1jhk
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4o4y
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1ktr
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3rpt
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1dqj
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1cr9
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1cu4
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3iqs
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4pl0
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4nzr
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4nzt
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1mh0
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1sgi
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1tq7
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1uyw
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3kcg
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2gd4
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1qtp
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1qts
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1cy5
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1vrm
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1jhj
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3p1z
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3i9w
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1mul
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3cdj
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1ix9
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1i0h
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1ixb
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4bin
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2y1b
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1zmr
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1k8w
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3mkn
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3mkm
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3b9x
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3or9
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3ora
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3orb
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1vt2
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3ofa
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3ofb
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3ofc
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3ofd
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3ofx
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3ofy
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3ofz
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3og0
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3ofo
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3ofp
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3ofr
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3ofq
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3oaq
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3oar
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3oat
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3oas
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1d5y
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2wp9
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2wu2
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2wu5
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2ws3
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4nyb
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4nya
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4nyd
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4nyg
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3k0j
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4nyc
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1crz
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2itm
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1fcm
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2gzw
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3by8
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4lrx
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1c3t
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1t34
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1n6m
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4kpi
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3de5
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3zry
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4gy0
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4gy1
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4e3t
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1eoq
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1em9
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1fig
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1gpl
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1dzf
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4e04
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3uk0
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2a9r
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1y69
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2kt5
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2yka
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2go9
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1o9g
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1o9h
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4d9t
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4d9u
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4jg6
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4nw6
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4nw5
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4nus
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4ixq
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4ixr
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2fjv
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2fjx
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3px8
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3px9
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1hvz
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3gyp
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2bt6
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3m0b
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2w8y
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4ibl
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1gk8
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1iwa
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1bq9
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1bq8
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1iro
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1brf
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1irn
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1s24
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1rdg
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4ljc
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2kp3
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2m3g
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3ccr
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3ccq
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3cc7
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3ccj
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3ccs
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3ccu
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3ccm
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3ccv
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3cce
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3ccl
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2ch1
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4f7f
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3v2l
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4gtn
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1s26
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3bkm
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2vl5
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2g60
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3lrg
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3lrh
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4k23
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4k24
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1pp5
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1msi
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1ot0
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1p0g
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2r9y
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2rh5
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2rh8
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3hfs
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3qds
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4ggt
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3oo0
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4elx
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3md9
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2wk7
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2q9a
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3mok
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4qej
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2wqm
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?4fd8
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?3szi
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2q5r
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?2r60
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1lio
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1sxi
http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?1p4o
with open("eggqueries.txt",'w') as outputfile:
with open("badeggs.txt") as badeggs:
for line in badeggs:
eggarr = line.split('?')[1].rstrip('\n').split(',')
for egg in eggarr:
outputfile.write('http://www.ebi.ac.uk/pdbe/pisa/cgi-bin/interfaces.pisa?'+egg+'\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment