Blog
Developers
Careers
Support
Contact
Gossamer Threads
Solutions
Results
About
Mailing Lists
Resource Centre
Forum
Tools
Home
Who's Online
Tags
Favourites
Login
Forum Search
(
Advanced Search
)
This forum
This category
All forums
for
Home
:
General
:
Perl Programming
:
extract data from website using perl program
Previous Thread
Next Thread
Print Thread
View Threaded
Jul 11, 2005, 7:40 AM
rohitsg
Novice
(5 posts)
Jul 11, 2005, 7:40 AM
Post #1 of 8
Views: 9977
Shortcut
extract data from website using perl program
hi,
can anyone tell how to extraxt data from website by writing Perl Program
rohit singh
IIT Kanpur
Jul 11, 2005, 8:03 AM
Andy
Veteran
/ Moderator
(18436 posts)
Jul 11, 2005, 8:03 AM
Post #2 of 8
Views: 9847
Shortcut
Re: [rohitsg] extract data from website using perl program
In reply to
Hi,
Erm, it depends on how/what you want to extract ;)
If its just the HTML from the page in question, you could use something like;
Code:
#!/usr/bin/perl
use LWP::Simple;
use CGI;
my $IN = new CGI;
my $url = $IN->param('url');
print $IN->header();
print get($url);
..and call with: http://www.domain.com/cgi-bin/script_name.cgi?url=http://www.test.com
Hope that helps.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my
Amazon Wish List
GLinks ULTRA Package
|
GLinks ULTRA Package PRO
Links SQL Plugins
|
Website Design and SEO
|
UltraNerds
|
ULTRAGLobals Plugin
|
Pre-Made Template Sets
|
FREE GLinks Plugins!
Jul 11, 2005, 8:48 AM
rohitsg
Novice
(5 posts)
Jul 11, 2005, 8:48 AM
Post #3 of 8
Views: 9902
Shortcut
Re: [Andy] extract data from website using perl program
In reply to
hi,
actually first i want to go to page of pdb bank then after getting the pdb id of homo sapiens i want to extract
the "scop" data from SCOP database
rohit singh
IIT kanpur
Jul 11, 2005, 9:54 AM
Andy
Veteran
/ Moderator
(18436 posts)
Jul 11, 2005, 9:54 AM
Post #4 of 8
Views: 9816
Shortcut
Re: [rohitsg] extract data from website using perl program
In reply to
Sorry, that means absolutly nothing to me
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my
Amazon Wish List
GLinks ULTRA Package
|
GLinks ULTRA Package PRO
Links SQL Plugins
|
Website Design and SEO
|
UltraNerds
|
ULTRAGLobals Plugin
|
Pre-Made Template Sets
|
FREE GLinks Plugins!
Jul 11, 2005, 10:16 AM
Chaz
Enthusiast
(819 posts)
Jul 11, 2005, 10:16 AM
Post #5 of 8
Views: 9783
Shortcut
Re: [rohitsg] extract data from website using perl program
In reply to
If you're needing to navigate a site and fill in forms you'll probably need to use something like WWW::Mechanize[1].
~Charlie
[1]
http://search.cpan.org/...lib/WWW/Mechanize.pm
Jul 11, 2005, 1:48 PM
dan
Enthusiast
(760 posts)
Jul 11, 2005, 1:48 PM
Post #6 of 8
Views: 9906
Shortcut
Re: [Andy] extract data from website using perl program
In reply to
PDB = Protein Data Bank
SCOP = Structural Classification of Proteins
Biochemistry database of proteins.
----
Cheers,
Dan
Founder and CEO
LionsGate Creative
GoodPassRobot
Magelln
Jul 12, 2005, 12:25 AM
Andy
Veteran
/ Moderator
(18436 posts)
Jul 12, 2005, 12:25 AM
Post #7 of 8
Views: 9802
Shortcut
Re: [dan] extract data from website using perl program
In reply to
Ahhh,.. thats why I didn't know what it was
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my
Amazon Wish List
GLinks ULTRA Package
|
GLinks ULTRA Package PRO
Links SQL Plugins
|
Website Design and SEO
|
UltraNerds
|
ULTRAGLobals Plugin
|
Pre-Made Template Sets
|
FREE GLinks Plugins!
Jul 13, 2005, 1:04 PM
NamedRisk
User
(51 posts)
Jul 13, 2005, 1:04 PM
Post #8 of 8
Views: 9748
Shortcut
Re: [dan] extract data from website using perl program
In reply to
can you tell us the web-site maybe with LWP module we can make something like get the html code near the part you want and store it and you can read it normally
Previous Thread
Next Thread
Print Thread
View Threaded