1. Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

How to rip a web page?

Discussion in 'General Software' started by silkstone, Jul 15, 2011.

  1. silkstone

    silkstone

    Joined:
    Nov 1, 2008
    Messages:
    2,902 (1.29/day)
    Thanks Received:
    508
    Hi guys, i have a problem.

    I'm a high school physics teacher and one of the investigations that i like to use is based on a java program embedded in a web page.
    I would like to back up this web page for if it were ever taken down but, i have had no luck so far. Specifically i would just like the java apps, but the whole page would be more convinent. Nothing i have tried works.

    The first thing i tried was just to save the web-site using the browser, but it does not save the java apps, then i have tried web-site grabbers but i can't get any of those to work either.

    The specific web page is: http://higheredbcs.wiley.com/legacy...320005/simulations6e/index.htm?newwindow=true

    Does anyone have any ideas? I would hate to have to re-write a whole investigation if i could no longer get access to the site.

    Thanks.
     
  2. Drone

    Drone

    Joined:
    Sep 1, 2010
    Messages:
    2,915 (1.85/day)
    Thanks Received:
    1,693
    nvm
     
    Last edited: Jul 15, 2011
  3. streetfighter 2

    streetfighter 2 New Member

    Joined:
    Jul 26, 2010
    Messages:
    1,658 (1.03/day)
    Thanks Received:
    732
    Location:
    Philly
  4. silkstone

    silkstone

    Joined:
    Nov 1, 2008
    Messages:
    2,902 (1.29/day)
    Thanks Received:
    508
    I don't really need a web server, i just need a local copy that i can give the students, and it is only for 1 of the simulations. The mirrors and lenses one. I downloaded one of the Jar files but i'm not sure how to open it. I have java on my comp afaik, but when i try to open any of the jar files i get a "failed to load class attribute manifest" error.

    Doe anyone know what this means?
     
  5. streetfighter 2

    streetfighter 2 New Member

    Joined:
    Jul 26, 2010
    Messages:
    1,658 (1.03/day)
    Thanks Received:
    732
    Location:
    Philly
    AFAIK a jar is similar to a zip file so you should be able to open it with a program like 7z, or you could rename it with the zip extension and open it with Windows.
     
  6. silkstone

    silkstone

    Joined:
    Nov 1, 2008
    Messages:
    2,902 (1.29/day)
    Thanks Received:
    508
    Ok cool, i opened the Jar and extracted a class file. How do i run the application?
     
  7. Easy Rhino

    Easy Rhino Linux Advocate

    Joined:
    Nov 13, 2006
    Messages:
    13,541 (4.57/day)
    Thanks Received:
    3,381
    Best to ask the owner of the code for it.
     
    Crunching for Team TPU
  8. Sinzia

    Joined:
    Oct 5, 2010
    Messages:
    857 (0.56/day)
    Thanks Received:
    212
    I havent looked at the code, but I suspect that there's calls in there for stuff thats not integrated into the jars to prevent such things, calls to some server-side stuff for instance that you do not have access to.
     
  9. silkstone

    silkstone

    Joined:
    Nov 1, 2008
    Messages:
    2,902 (1.29/day)
    Thanks Received:
    508
    I understand it would be polite to ask the owner for permission to download it, but i think it would be a bit of a hassle for the owner to find the specific java applet i need. If i could just grab it myself it would save the inconvenience.

    I haven't been able to find the author so far, but i don't see that is should be an issue. It's just a small lens/mirror sim, nothing complicated, and i'm using it for educational purposes in a small class. There are other downloadable programs available that i could use, but they are often bulky, containing many different sims, and difficult to use. I would probably have to write a full manual for some of the other (non web based) sims i have found.

    ahh, i can't pretend to understand how such things work. i assumed it was self contained like java games and such. If it's too complicated to get, then i might as well just re-write the investigation in they were ever to take the sims down.
     
    Last edited by a moderator: Jul 15, 2011
  10. streetfighter 2

    streetfighter 2 New Member

    Joined:
    Jul 26, 2010
    Messages:
    1,658 (1.03/day)
    Thanks Received:
    732
    Location:
    Philly
    Nah, everythings there. It's all exposed. Now whether or not it's legal . . . that's debatable. If anyone asks it was some other really attractive guy with insomnia. :D

    I just got it running for the hell of it.

    Download all of this crap (right click->save linked content as) and mimic the directory structure:
    http://higheredbcs.wiley.com/legacy/college/halliday/0471320005/simulations6e/applets/sim41.htm
    http://higheredbcs.wiley.com/legacy...005/simulations6e/applets/lib/wileycommon.jar
    http://higheredbcs.wiley.com/legacy...0005/simulations6e/applets/lib/wileySim41.jar
    http://higheredbcs.wiley.com/legacy...tions6e/applets/media/pictures/n_radiobtn.gif
    http://higheredbcs.wiley.com/legacy...mulations6e/applets/media/pictures/s41_bg.gif
    http://higheredbcs.wiley.com/legacy...ons6e/applets/media/pictures/studentnotes.gif
    http://higheredbcs.wiley.com/legacy...imulations6e/applets/media/sounds/intro41.swf
    http://higheredbcs.wiley.com/legacy...lations6e/applets/media/pictures/selftest.gif
    http://higheredbcs.wiley.com/legacy...005/simulations6e/applets/scripts/app_func.js
    http://higheredbcs.wiley.com/legacy...320005/simulations6e/applets/tests/test41.htm
    http://higheredbcs.wiley.com/legacy...320005/simulations6e/applets/notes/note41.htm

    If you do it right you should have a directory structure like so:
    Code:
    Mirrors and lenses\lib
    Mirrors and lenses\media
    Mirrors and lenses\scripts
    Mirrors and lenses\sim41.htm
    Mirrors and lenses\lib\wileycommon.jar
    Mirrors and lenses\lib\wileySim41.jar
    Mirrors and lenses\media\pictures
    Mirrors and lenses\media\sounds
    Mirrors and lenses\media\pictures\n_radiobtn.gif
    Mirrors and lenses\media\pictures\s41_bg.gif
    Mirrors and lenses\media\pictures\selftest.gif
    Mirrors and lenses\media\pictures\studentnotes.gif
    Mirrors and lenses\media\sounds\intro41.swf
    Mirrors and lenses\notes\note41.htm
    Mirrors and lenses\scripts\app_func.js
    Mirrors and lenses\tests\test41.htm
    Then run sim41.htm in IE (it didn't work for me in Opera).
     
    Last edited: Jul 15, 2011
    silkstone says thanks.
  11. silkstone

    silkstone

    Joined:
    Nov 1, 2008
    Messages:
    2,902 (1.29/day)
    Thanks Received:
    508
    Got it to work, that's a life saver. Thanks SF
     
    streetfighter 2 says thanks.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guest)

Share This Page