Current location: Hot Scripts Forums » Programming Languages » PHP » script to grab any information ?


script to grab any information ?

Reply
  #1 (permalink)  
Old 06-21-03, 09:07 PM
xgab xgab is offline
Newbie Coder
 
Join Date: Jun 2003
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Question script to grab any information ?

Hi!

Does anybody know a freeware script to grab any information from any web page ?

Thank you in advance
Gabriel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 06-21-03, 09:15 PM
Ryan's Avatar
Ryan Ryan is offline
Coding Addict
 
Join Date: May 2003
Location: Virginia
Posts: 391
Thanks: 0
Thanked 8 Times in 3 Posts
What type of information are you looking to grab?
__________________
Ryan Huff
iNET Interactive, LLC

http://www.inetinteractive.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 06-21-03, 09:49 PM
xgab xgab is offline
Newbie Coder
 
Join Date: Jun 2003
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
For example weather information within this site:

http://www.meteofa.mil.ar/dpd/tiepre/87582.htm

I would need to extract the temperature value , humidity value, etc, from the first table.

Thank you
Gabriel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 06-21-03, 10:14 PM
Ryan's Avatar
Ryan Ryan is offline
Coding Addict
 
Join Date: May 2003
Location: Virginia
Posts: 391
Thanks: 0
Thanked 8 Times in 3 Posts
I suppose it might depend on how the information was stored. I've never done something like that before so perhaps another member can help you.
__________________
Ryan Huff
iNET Interactive, LLC

http://www.inetinteractive.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 06-22-03, 05:54 AM
ChristGuy ChristGuy is offline
Operations Support Develo
 
Join Date: Jun 2003
Location: Rivonia, South Africa
Posts: 111
Thanks: 0
Thanked 0 Times in 0 Posts
You could try something like the following:
PHP Code:

$source "http://www.meteofa.mil.ar/dpd/tiepre/87582.htm";

$start "title_area value=\""//This just tells the script where to begin to get the data in the page.
$end "\" size=26 border=0>"//This just tells the script where to end recording the data.
//Content Retrieval
$data fopen("$source""r");
$get fread($data20000);
$take eregi("$start(.*)$end"$get$content);
$info str_replace("--"" - "$content);
echo 
$info[1]; 
taken from:
http://forums.hotscripts.com/showthr...=&threadid=427
__________________
Till We Meet Again...
Clifford W. Hansen
Aspivia (Pty) Ltd

"We Have Seen Strange Things Today!" Luke 5:26
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 06-22-03, 11:33 AM
pip04 pip04 is offline
Newbie Coder
 
Join Date: Jun 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally posted by ChristGuy
You could try something like the following:
PHP Code:

$source "http://www.meteofa.mil.ar/dpd/tiepre/87582.htm";

$start "title_area value=\""//This just tells the script where to begin to get the data in the page.
$end "\" size=26 border=0>"//This just tells the script where to end recording the data.
//Content Retrieval
$data fopen("$source""r");
$get fread($data20000);
$take eregi("$start(.*)$end"$get$content);
$info str_replace("--"" - "$content);
echo 
$info[1]; 
taken from:
http://forums.hotscripts.com/showthr...=&threadid=427
As ChristGuy explained by using MY CODE! j/k. You can easily take pretty much anything from any web site by entering in the URL and tell it where to begin grabbing and where to stop. I could help you if you need it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for a good review management script griz_fan Script Requests 10 07-29-07 06:08 AM
New script needed PoliticalGateway Script Requests 0 09-22-03 01:57 PM
Question of the Day script? ncasares Script Requests 1 08-28-03 02:12 PM
Talkback script..help pls BC_ PHP 0 06-22-03 07:44 PM
Need help with a script boardpix PHP 7 06-09-03 12:37 AM


All times are GMT -5. The time now is 06:35 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.