View Single Post
  #4 (permalink)  
Old 02-09-2003, 09:36 AM
swh swh is offline
Junior Member
 
Join Date: Nov 2002
Posts: 20
OK I modified the TES newsgrabber block to suit your needs. You may want to tweak the start-end of the grabbing points. You must upload it into your blocks directory and chmod the file block-clan_news.php (or whatever you name it).
Code:
<?php
###############################################################
# Script Title: 4CM_Grabber for TES Scotland
#         File: block-TESnews.php
#  Description: This script will Grab information from the Times Education Supplement (Scotland)
#       Author: John B. Abela/Perfect Papers
#        Email: support@4cm.com
#          Web: http://www.4cm.com/ http://www.perfectpapers.net
#      Version: 2.0.5
#
#  Copyright © 1996-2000 www.4cm.com.  All Rights Reserved.
##
#  www.4cm.com (4CM) offers no warranties on this script.
#  The downloader of the script is solely responsible for any
#  problems caused by the installation of the script or use
#  of the script, including possible legal action for the grabbing
#  of the data, as a result of this script!
#
#  ALL COPYRIGHT NOTICES REGARDING: www.4cm.com
#  MUST REMAIN INTACT IN THE SCRIPT AND IN THE HTML OF THE SCRIPT!  
#
#  For more info on this script, see:
#  http://www.4cm.com/
#
#  (Please be kind and sign our guestbook at:
#     http://www.4cm.com/guestbook/  and say your using
#       this script!!)
###############################################################

########################
## Mandatory Setting  ##
########################
$GrabURL = "http://www.rocketarena.org/clan.asp?ID=4207";  //-  Complete URL of the page your grabbing from!
$GrabStart = 'Rank:';  //- HTML Code To Start Grab. Must Be A Unique Bit Of Code!
$GrabEnd = 'Match History';  //- HTML Code To End Grab. Must Be A Unique Bit Of Code!

#############################
## Do Not Edit Below Here  ##
## Do Not Edit Below Here  ##
#############################
$OpenFile = fopen("$GrabURL", "r"); //- DO NOT CHANGE
$RetrieveFile = fread($OpenFile, 200000);  //- Reduce This To Save Memory
$GrabData = eregi("$GrabStart(.*)$GrabEnd", $RetrieveFile, $DataPrint);
// $DataPrint[1] = str_replace("", "", $DataPrint[1]);   //- Un-Comment This Line for "Replace" purposes!
// $DataPrint[1] = str_replace("", "", $DataPrint[1]);   //- Un-Comment This Line for "Replace" purposes!
fclose($OpenFile); //- DO NOT CHANGE
$content=$DataPrint[1]; //- DO NOT CHANGE
####################
## End of Script  ##
####################
?>
Reply With Quote