Fix some parsers

Discussion in 'Programming' started by Alex69, Feb 12, 2009.

  1. #1
    Need a PHP expert so fix some parsers. Pay 30 USD. Its is 3 parsers fo fix.

    Example of an error for http://www.megaporn.com/video/?c=videos&t=day

    Parser colects the folowing way:
    preg_match_all('%<a href="\\?v=([a-zA-Z0-9]*)"><img src="(.*?)" (?:.*?)<a href="\\?v=(?:[a-zA-Z0-9]*)">(.*?)</a>(?:.*?)Added:</font>([a-zA-Z0-9 ]*)</div>%i', (string)$this->page_html, $result, PREG_PATTERN_ORDER);

    data colected from it:
    video id: 20916

    title: &lt;img src=&quot;http://img3.megaporn.com/a/3/8bc8a0e267760df416b4a66f305ee0.jpg&quot; width=&quot;120&quot; height=&quot;90&quot; border=&quot;0&quot; id=&quot;img_64W5FW9P&quot; onmouseover=&quot;startslideshow('64W5FW9P');&quot; onmouseout=&

    thumb: http://img1.megaporn.com/c/c/577356072865e21cf29d9ba596f09f.jpg


    - The problem is that some placements on the website were changed - so instead of video title it enters a sth else - everything else is ok


    So to know that you are an expert on parsers - please fix the above line and will send you the other 2 if your fix works
     
    Alex69, Feb 12, 2009 IP
  2. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    As Seller:
    100% - 0
    As Buyer:
    100% - 1
    #2
    hi

    I can fix this

    50% advance

    Regards

    Alex
     
    kmap, Feb 12, 2009 IP
  3. Alex69

    Alex69 Active Member

    Messages:
    312
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    done...............
     
    Alex69, Feb 12, 2009 IP