1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[PHP]FullRss - I need advice!

Discussion in 'PHP & Perl' started by cyklotrial, Aug 6, 2009.

  1. cyklotrial

    cyklotrial Regular Member

    Joined:
    Oct 13, 2008
    Messages:
    248
    Likes Received:
    82
    Location:
    Wonderland
    Hello!

    I created script witch is making Full-Text Feeds from Partial-text RSS feeds.
    http://bestgoogletrends.com/fullrss/

    It's working correctly but...it's collecting only small image's from partial rss and i want to collect big from site.
    Example:
    Rss with small IMG:http://rss.msnbc.msn.com/id/3032506/device/rss/rss.xml
    Site with big IMG: http://www.msnbc.msn.com/id/32309527/ns/world_news-washington_post/


    I to scarape only sensible img's and to pass unnecessary (ads,thumb for other posts etc)

    Is there some universal method to do this?

    regards
    cyklotrial
     
  2. j4froc

    j4froc Registered Member

    Joined:
    Sep 19, 2008
    Messages:
    60
    Likes Received:
    8
    You could check for the size of the image. if its below 10k it is usually just a thumbnail.
    Then check for image dimension. if it is something like 125x125 or 468x60, it's an ad.