The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
reading web page source in unix jaymzlee UNIX for Dummies Questions & Answers 3 03-26-2008 07:27 PM
Code page in Unix braindrain Shell Programming and Scripting 2 07-06-2006 11:18 AM
Want to show files on web page deepa20 Shell Programming and Scripting 3 02-07-2006 10:53 AM
source code of dbx.c Sacchi High Level Programming 0 04-07-2004 09:26 AM
multiple source code minion High Level Programming 2 11-12-2001 04:46 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-25-2003
fundidor fundidor is offline
Registered User
  
 

Join Date: Oct 2003
Location: Rio de Janeiro - Brazil
Posts: 37
Which comand to show the source code on a web page?

Hi folks!

I am using MacOsX that runs freeBSD. Could you tell me what comand to type on the Unix Terminal to display on the terminal the source code of a certain web page?

I think something like

#<comand> http://www.apple.com

will display on the terminal's window the html source code of apple's page.

Thanks!


Bernardo Höhl -- Rio de Janeiro
  #2 (permalink)  
Old 12-25-2003
norsk hedensk norsk hedensk is offline Forum Advisor  
Registered User
  
 

Join Date: Jul 2002
Location: new york
Posts: 1,025
if you have the utility 'wget' you can download pages that way, via the command line.
  #3 (permalink)  
Old 12-25-2003
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,668
Quote:
Originally posted by norsk hedensk
if you have the utility 'wget' you can download pages that way, via the command line.
WGET will not display a web page in a terminal window, it simply downloads the pages.

Quote:
GNU Wget is a free utility for non-interactive download of files from the
Web. It supports HTTP, HTTPS, and FTP protocols, as well as retrieval
through HTTP proxies.

Wget is non-interactive, meaning that it can work in the background, while
the user is not logged on. This allows you to start a retrieval and dis-
connect from the system, letting Wget finish the work. By contrast, most
of the Web browsers require constant user's presence, which can be a great
hindrance when transferring a lot of data.

Wget can follow links in HTML pages and create local versions of remote
web sites, fully recreating the directory structure of the original site.
This is sometimes referred to as ``recursive downloading.'' While doing
that, Wget respects the Robot Exclusion Standard (/robots.txt). Wget can
be instructed to convert the links in downloaded HTML files to the local
files for offline viewing.

Wget has been designed for robustness over slow or unstable network con-
nections; if a download fails due to a network problem, it will keep
retrying until the whole file has been retrieved. If the server supports
regetting, it will instruct the server to continue the download from where
it left off.
Neo
  #4 (permalink)  
Old 12-25-2003
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,668
Try Lynx

http://lynx.browser.org/

Quote:
Lynx is a text browser for the World Wide Web. Lynx 2.8.3 runs on Un*x, VMS, Windows 95/98/NT but not 3.1 or 3.11, on DOS (386 or higher) and OS/2 EMX. The current developmental version is also available for testing. Ports to Mac are in beta test.
Neo
  #5 (permalink)  
Old 12-25-2003
norsk hedensk norsk hedensk is offline Forum Advisor  
Registered User
  
 

Join Date: Jul 2002
Location: new york
Posts: 1,025
neo is right. i was thinking more along the lines of:
Code:
wget http://somepage.com/index.html && cat index.html
  #6 (permalink)  
Old 12-25-2003
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,668
Code:
wget http://somepage.com/index.html && cat index.html
....will display the HTML source of the page, not the actually page in text You still need a browser to convert the HTML to web-text if you want to see the actually text.

Then again, maybe the original poster really only wants to see the source.....

Neo
  #7 (permalink)  
Old 12-25-2003
norsk hedensk norsk hedensk is offline Forum Advisor  
Registered User
  
 

Join Date: Jul 2002
Location: new york
Posts: 1,025
haha yeah
Quote:
to display on the terminal the source code of a certain web page?
thats what i thought
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:36 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0