Preserve links in page dump

Hi All

I'm using this to grab web page content on a windows system:

lynx.exe -nolist -dump www.domainname.com > file.htm

But this also looses the hyperlink how can I preserve the hyperlink.

blnukemAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Pétur Ingi EgilssonSoftware Engineer -- ConsultantCommented:
If you want to mirror webpages onto a windows system i'd use wget

Easily mirror http/ftp sites to your local hard drive
http://pages.interlog.com/~tcharron/wgetwin.html
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
arulkumarabiCommented:
you can use httrak software on windows and linux.


http://www.httrack.com/
0
H_D_ACommented:
Do you need the hyperlinks for any specific reason?
with the option -nolist I dont think you can get the links.
you can use "-image_links" instead of "-nolist" to get the links as references.

with:
lynx.exe -dump -image_links  http://www.google.co.uk | find "http" > file.html

--------------------------------------------------------------------
   1. http://images.google.co.uk/imghp?hl=en&tab=wi
   2. http://maps.google.co.uk/maps?hl=en&tab=wl
   3. http://news.google.co.uk/nwshp?hl=en&tab=wn
   4. http://www.google.co.uk/prdhp?hl=en&tab=wf
   5. http://mail.google.com/mail/?hl=en&tab=wm
   6. http://www.google.co.uk/intl/en/options/
   7. http://video.google.co.uk/?hl=en&tab=wv
   8. http://groups.google.co.uk/grphp?hl=en&tab=wg
   9. http://books.google.co.uk/bkshp?hl=en&tab=wp
  10. http://scholar.google.com/schhp?hl=en&tab=ws
  11. http://finance.google.co.uk/finance?hl=en&tab=we
  12. http://blogsearch.google.co.uk/?hl=en&tab=wb
  13. http://www.google.com/calendar/render?hl=en&tab=wc
  14. http://picasaweb.google.co.uk/home?hl=en&tab=wq
  15. http://docs.google.com/?hl=en&tab=wo
  16. http://www.google.co.uk/reader/view/?hl=en&tab=wy
  17. http://www.google.co.uk/intl/en/options/
  18. http://www.google.co.uk/url?sa=p&pref=ig&pval=3&q=http://www.google.co.uk/ig%3Fhl%3Den%26source%3Diglk&usg=AFQjCNH9dUJQAsNWnO3XKq2EIPgFbczqlA
  19. https://www.google.com/accounts/Login?continue=http://www.google.co.uk/&hl=en
  20. http://www.google.co.uk/intl/en_uk/images/logo.gif
  21. http://www.google.co.uk/advanced_search?hl=en
  22. http://www.google.co.uk/preferences?hl=en
  23. http://www.google.co.uk/language_tools?hl=en
  24. http://www.google.co.uk/intl/en/ads/
  25. http://www.google.co.uk/services/
  26. http://www.google.co.uk/intl/en/about.html
  27. http://www.google.com/ncr
--------------------------------------------------------------------

with:
lynx.exe -dump -image_links  http://www.google.co.uk > file.html
----------------------------------------------------------------------------------------
 
  Web [1]Images [2]Maps [3]News [4]Shopping [5]Google Mail [6]more Dt
  [7]Video [8]Groups [9]Books [10]Scholar [11]Finance [12]Blogs
  [13]Calendar [14]Photos [15]Documents [16]Reader [17]even more W

                                               [18]iGoogle | [19]Sign in

                                [20]Google

    _______________________________________________________
  Google Search I'm Feeling Lucky   [21]Advanced Search
    [22]Preferences
    [23]Language Tools
  Search: (_) the web (_) pages from the UK

  [24]Advertising Programmes - [25]Business Solutions - [26]About Google
                          - [27]Go to Google.com

                               ®2008 Google

eferences

  1. http://images.google.co.uk/imghp?hl=en&tab=wi
  2. http://maps.google.co.uk/maps?hl=en&tab=wl
  3. http://news.google.co.uk/nwshp?hl=en&tab=wn
  4. http://www.google.co.uk/prdhp?hl=en&tab=wf
  5. http://mail.google.com/mail/?hl=en&tab=wm
  6. http://www.google.co.uk/intl/en/options/
  7. http://video.google.co.uk/?hl=en&tab=wv
  8. http://groups.google.co.uk/grphp?hl=en&tab=wg
  9. http://books.google.co.uk/bkshp?hl=en&tab=wp
 10. http://scholar.google.com/schhp?hl=en&tab=ws
 11. http://finance.google.co.uk/finance?hl=en&tab=we
 12. http://blogsearch.google.co.uk/?hl=en&tab=wb
 13. http://www.google.com/calendar/render?hl=en&tab=wc
 14. http://picasaweb.google.co.uk/home?hl=en&tab=wq
 15. http://docs.google.com/?hl=en&tab=wo
 16. http://www.google.co.uk/reader/view/?hl=en&tab=wy
 17. http://www.google.co.uk/intl/en/options/
 18. http://www.google.co.uk/url?sa=p&pref=ig&pval=3&q=http://www.google.co.uk/
g%3Fhl%3Den%26source%3Diglk&usg=AFQjCNH9dUJQAsNWnO3XKq2EIPgFbczqlA
 19. https://www.google.com/accounts/Login?continue=http://www.google.co.uk/&hl
en
 20. http://www.google.co.uk/intl/en_uk/images/logo.gif
 21. http://www.google.co.uk/advanced_search?hl=en
 22. http://www.google.co.uk/preferences?hl=en
 23. http://www.google.co.uk/language_tools?hl=en
 24. http://www.google.co.uk/intl/en/ads/
 25. http://www.google.co.uk/services/
 26. http://www.google.co.uk/intl/en/about.html
 27. http://www.google.com/ncr 
0
Computer101Commented:
Forced accept.

Computer101
EE Admin
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Browsers

From novice to tech pro — start learning today.