LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 08-18-2006, 08:48 PM   #1
billamn
LQ Newbie
 
Registered: Aug 2006
Distribution: Redhat 8
Posts: 14

Rep: Reputation: 0
Display text of webpage from terminal


Is there a way to show the straight text or source of a web page from a terminal window?

e.g. From the shell $, I type: "print www.google.com/index.htm" to display the contents.
 
Old 08-18-2006, 09:24 PM   #2
Centinul
Member
 
Registered: Jun 2005
Distribution: Gentoo
Posts: 552

Rep: Reputation: 30
If you want to view a webpage as text you could use lynx or links2. They are text based browsers. I don't know how to get the source from a terminal though. Hope this helps.
 
Old 08-18-2006, 09:32 PM   #3
truthfatal
Member
 
Registered: Mar 2005
Location: Winnipeg, MB
Distribution: Slackware, OS X
Posts: 443
Blog Entries: 9

Rep: Reputation: 32
"lynx -source www.someurl.com" will dump the source code to the teminal. you could then >> it to a file or | it through less. for easier reading... I just checked the man page for links... "links -source www.url.org" works with that as well.

Last edited by truthfatal; 08-18-2006 at 09:35 PM.
 
Old 08-18-2006, 09:45 PM   #4
billamn
LQ Newbie
 
Registered: Aug 2006
Distribution: Redhat 8
Posts: 14

Original Poster
Rep: Reputation: 0
When I install it: "rpm -ivh lynx-2.8.5-11.i386.rpm"

I get the following error:

error: Failed dependencies:
libcrypto.so.4 is needed by lynx-2.8.5-11
libssl.so.4 is needed by lynx-2.8.5-11


But don't these depend on the following which I have on my system??:

openssl-0.9.6b-35.8
openssl-0.9.7a-5.1
openssl-devel-0.9.6b-35.8
openssl-0.9.7a-5.1
 
Old 08-18-2006, 09:58 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,950
Blog Entries: 11

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
rpm is a bit daft in that respect (actually, rpm is daft,
full-stop :}); it wants EXACTLY the version that the package
was build against. Chances are you should go and find a lynx
that is meant for your distro & version.


Cheers,
Tink
 
Old 08-18-2006, 10:21 PM   #6
billamn
LQ Newbie
 
Registered: Aug 2006
Distribution: Redhat 8
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tinkster
rpm is a bit daft in that respect (actually, rpm is daft,
full-stop :}); it wants EXACTLY the version that the package
was build against. Chances are you should go and find a lynx
that is meant for your distro & version.


Cheers,
Tink
That worked! It installed but it didn't terminate gracefully:
Preparing... ########################################### [100%]
1:lynx ########################################### [100%]

It just sat there and I couldn't even ctrl-C break it. At least lynx is up and running now.

Thanks everyone.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SED - display text on specific line of text file 3saul Linux - Software 3 12-29-2005 04:32 PM
Apache doesn't display php webpage rover Suse/Novell 2 11-08-2004 10:07 AM
display ip address of client on webpage joe_stevensen Programming 4 07-22-2003 06:30 PM
can't display webpage ito Linux - Newbie 12 07-03-2003 01:47 PM
getting information from a webpage in terminal charlie123 Linux - Newbie 1 01-31-2003 05:58 AM


All times are GMT -5. The time now is 01:54 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration