SIMS  Workshops  @  Kalamazoo:  Manuscript  Data    

Wget  Exercises   You  can  refer  to  the  Technical  Read  Me   (http://openn.library.upenn.edu/TechnicalReadMe.html)  at  any  time  to  help  you  with   these  exercises.    The  section  on  “Installing  wget”  explains  how  to  install  the  program  on   Mac  and  Windows  operating  systems,  although  your  computer  in  this  lab  should  already   have  wget  installed.    The  section  called  “wget  Recipes”  lists  the  basic  commands  and  what   they  do,  and  provides  examples  of  how  you  can  use  them.   If  you  need  to  abort  a  process  at  any  time  during  this  exercise,  hit  ctrl  +  C   wget  Exercise  1:  Download  the  archival  TIFF  file  of  Fol.  1v  from  LJS  101,  from  Lawrence  J.   Schoenberg  Manuscripts   The  first  thing  you  want  to  do  is  locate  the  file  you  want  to  download.    If  you  go  to  the   Collections  page,  you  will  find  the  Lawrence  J.  Schoenberg  Manuscripts  Collection  and  see   that  it  has  the  Collection  ID  of  0001.    Find  LJS  101  within  the  LJS  collection  and  browse  the   manuscript  to  find  the  file  name  for  Fol.  1v.       Then  go  to  the  Data  folder  and  find  collection  0001.    In  collection  0001,  find  the  file  you   want  to  download.       Type:     $  wget  http://openn.library.upenn.edu/Data/0001/ljs101/data/master/0241_0007.tif   This  will  download  the  image  onto  your  computer,  but  not  into  any  specified  folder.      

Note:  Check  the  last  page  of  this  exercise  for  the  answers  to  Exercises  2-­‐5     wget  Exercise  2:  Download  all  of  the  web  jpegs  for  Ms.  Codex  1058  from  the  University  of   Pennsylvania  Books  &  Manuscripts   Find  the  collection  ID  for  the  University  of  Pennsylvania  Books  &  Manuscripts  on  the   collections  page.    Then  go  to  the  data  folder  and  find  Ms.  Codex  1058  in  that  collection.     Navigate  to  the  folder  with  web  jpegs.    Consider  what  commands  you  need  to  enter  after   wget,  in  order  to  download  all  the  web  jpegs  and  give  it  a  try.     wget  Exercise  3:  Download  all  the  files  for  Ms.  Oversize  7  from  the  University  of   Pennsylvania  Books  &  Manuscripts  

SIMS  Workshops  @  Kalamazoo:  Manuscript  Data    

Locate  Ms.  Oversize  7  in  the  Data  folder.    Consider  what  commands  you  need  to  use  in   order  to  download  all  the  files  from  Ms.  Oversize  7.   wget  Exercise  4:  Download  all  of  the  TEI  xml  files  from  every  item  in  the  Quaker  and   Special  Collections,  Haverford  College   Find  out  what  the  collection  ID  is  for  the  Quaker  and  Special  Collections,  Haverford  College.     Navigate  to  that  collection  in  the  Data  folder.    Consider  what  commands  you  need  to  use  in   order  to  get  all  the  TEI  xml  files  from  this  collection.     wget  Exercise  5:  Download  all  the  web  jpeg  files  and  the  thumbnail  jpegs  of  LJS  63,  using   OPenn’s  directory  structure   Go  to  the  LJS  Collection  in  the  Data  folder  and  find  LJS  63.    Consider  what  commands  you   need  to  use  in  order  to  get  all  the  jpegs  (both  web  and  thumbnails)  and  what  commands   you  need  to  use  or  leave  out  in  order  to  download  the  files  to  your  computer  with  the  same   directory  structure  as  OPenn.                              

SIMS  Workshops  @  Kalamazoo:  Manuscript  Data    

    Exercise  2:     $  wget  -­‐nd  -­‐P  manuscripts/mscodex1058/  -­‐np  -­‐r  -­‐A.jpg   http://openn.library.upenn.edu/Data/0002/mscodex1058/data/web/   Exercise  3:   $  wget  -­‐nd  -­‐P  manuscripts/msoversize7  -­‐np  -­‐r   http://openn.library.upenn.edu/Data/0002/msoversize7/   Exercise  4:   $  wget  -­‐nd  -­‐P  manuscripts/haverford/tei/  -­‐np  -­‐r  -­‐A.xml   http://openn.library.upenn.edu/Data/0006/   Exercise  5:   $  wget  -­‐np  -­‐r  -­‐A.jpg  http://openn.library.upenn.edu/Data/0001/ljs63/data/    

exercise-wget.pdf

The section on “Installing wget” explains how to install the program on. Mac and Windows operating systems, although your computer in this lab should already.

59KB Sizes 0 Downloads 180 Views

Recommend Documents

No documents