+ Reply to Thread
Results 1 to 3 of 3

Thread: Code Quiz

  1. #1
    cybrax's Avatar
    cybrax is offline x10 Elder cybrax is on a distinguished road
    Join Date
    Aug 2009
    Location
    UK
    Posts
    699

    Code Quiz

    Code quiz

    Which of these scripts is in violation of a TOS?
    Bonus kudos if you explain whose TOS and why.




    Code:
    $search = "something" /// predefined  or site  visitor input from form field
    
    ////Code A
    $url="http://gdata.youtube.com/feeds/api/videos?vq=$search=include&max-results=50";
    
    $ch = curl_init($url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    $retrieved_data  = curl_exec($ch);
    curl_close($ch);
    
    //// Code B
    $url="http://search.bbc.co.uk/search?suggid=sp%3Apupa&go=toolbar&uri=%2F&q=$search";
    
    $ch = curl_init($url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    $retrieved_data = curl_exec($ch);
    curl_close($ch);
    
    
    //// Code C
    $url="http://www.google.co.uk/webhp?q=$search#sclient=psy&hl=en&site=webhp&source=hp&q=$search&btnG=Google+Search";
    
    $ch = curl_init($url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    $retrieved_data = curl_exec($ch);
    curl_close($ch);
    The code must flow.
    Project 157: Latest UK Jobs direct to your mobile phone
    New Domain under construction: Lovelogic.net
    home for some new projects that we can't keep here ;)


  2. #2
    lemon-tree's Avatar
    lemon-tree is offline x10 Minion lemon-tree has a spectacular aura about
    Join Date
    Nov 2007
    Posts
    1,420

    Re: Code Quiz

    All of them: X10 ToS says no content scraping
    Code A: No problem with YouTube API although the URL may be malformed
    Code B: No idea
    Code C: Probably against Google's ToS

  3. #3
    cybrax's Avatar
    cybrax is offline x10 Elder cybrax is on a distinguished road
    Join Date
    Aug 2009
    Location
    UK
    Posts
    699

    Re: Code Quiz

    Quote Originally Posted by lemon-tree View Post
    All of them: X10 ToS says no content scraping
    Hmmm, but surely.. any web site that provides an API feature is granting permission to query and extract information from them. Whilst this may fall under the broad description of 'scraping' it's certainly not theft of content.
    The code must flow.
    Project 157: Latest UK Jobs direct to your mobile phone
    New Domain under construction: Lovelogic.net
    home for some new projects that we can't keep here ;)


+ Reply to Thread

Similar Threads

  1. FIFA World Cup Challenge Quiz
    By kristaldent in forum Ads & Offers
    Replies: 0
    Last Post: 06-04-2010, 02:44 AM
  2. Bleach Quiz
    By deathball619 in forum Off Topic
    Replies: 6
    Last Post: 12-30-2008, 03:38 PM
  3. Worlds Hardest Quiz
    By NSChan in forum Off Topic
    Replies: 26
    Last Post: 11-20-2007, 11:43 PM
  4. Take this little quiz
    By Brandon in forum Off Topic
    Replies: 12
    Last Post: 02-12-2007, 06:50 PM
  5. Personality Quiz
    By Equiflux in forum Off Topic
    Replies: 4
    Last Post: 03-31-2006, 11:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers