canning websites removing external dependency

Posted on 2011-04-19
Last Modified: 2012-05-11
I need to "can" a list of sites as in get a local copy and remove all external dependencies links so that I can use it in repeated tests and for it not to make any external requests or connections.
How do you recommend I go about doing this?
Question by:NewtonianB
    1 Comment
    LVL 20

    Accepted Solution

    Replace all occurances of http://some-other-site by http://your-domain-name.
    The following perl command might work

    perl -i.bak -npe 's{https?://[^\/"\? ]+}{}g' *.html

    This will of course result in local but invalid links.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Suggested Solutions

    Test Automation Framework Before we proceed into the depth of framework design and related components, I would like to clarify some common notions related to Software Test Automation. It is often considered that Automation will help in identif…
    Introduction HyperText Transfer Protocol ( or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    This video discusses moving either the default database or any database to a new volume.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now