Re: leaching information from a news site
| From: | daniel at electroteque dot org | Date: | Wed, 14 May 2003 02:57:22 +0000 |
| Subject: | Re: leaching information from a news site | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147529@lists.php.net to get a copy of this message | ||
well have u asked the website if its kool ? usually they would have an xml
feed if they allow that sort of thing , what u would need to do is fopen
the frontpage and do a shit load of regex, or the best would be preg_match
> Hi all,
>
> I am new to the php list. I have a problem and would like to know
> how I could solve it with php.
>
> I would like to grab headlines from a news site in Australia.
> So that I could display it on my site, also I would like to
> create the link to the story
>
> What would I need to grab all information from the line
>
> <p><span class='blackheading'>BREAKING NEWS</span><br><img
> src='/images/1p_black.gif' width=468 height=1><br><br>
>
> up untill the following lines
>
> <br><img src="/images/blank.gif" border="0" width="1"
> height="20"><br>
> <img src="/images/heading_underline.gif" width="468"
> height="4"><br>
> <table width=100%>
>
>
> --
> Regards,
>
> Kevin Saenz
>
> Spinaweb
> Your one stop shop for I.T solutions.
>
> Ph: 02 4620 5130
> Fax: 02 4625 9243
> Mobile: 0418455661
> Web: http://www.spinaweb.com.au
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php