How to create SEO tools ?

Discussion in 'PHP' started by priyakochin, Jul 16, 2007.

  1. #1
    Anyone have the idea how to create SEO tools with php ?
     
    priyakochin, Jul 16, 2007 IP
  2. norfstar

    norfstar Peon

    Messages:
    1,154
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Yep, just find something SEO related to do, and write a script that performs the tasks. I recently did a keyword density checker - it simply gets the content of the source URL using curl, strips out the HTML tags, counts the number of time non-stop words appear, works it out as a percentage of words on the page and displays it neatly.
     
    norfstar, Jul 16, 2007 IP
  3. priyakochin

    priyakochin Banned

    Messages:
    4,740
    Likes Received:
    138
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thankz !
    But can u share some best sites that can boost my curl knowledge ?
     
    priyakochin, Jul 16, 2007 IP
  4. SeLfkiLL

    SeLfkiLL Active Member

    Messages:
    85
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    50
    #4
    Most SEO tools interact with a search engine API (like the Overture API) or the actual search engine itself. They can also analyze a website. This all generally requires a remote connection to another server from your script.

    With PHP this can be done cleanly with the cURL library like norfstar stated. cURL is just a set of functions (in PHP) to connect to a server through HTTP, HTTPS, FTP and other protocols to query the server like a normal browser. It basically saves you the headache of dealing with the HTTP protocol yourself. You can learn about cURL here: http://www.php.net/curl

    Usually, if you're going to use some sort of search engine API, you may need to deal with XML as well. So it's helpful to learn how to use XML library in PHP: http://www.php.net/xml
     
    SeLfkiLL, Jul 16, 2007 IP
  5. Nick_Mayhem

    Nick_Mayhem Notable Member

    Messages:
    3,486
    Likes Received:
    338
    Best Answers:
    0
    Trophy Points:
    290
    #5
    cURL is good to know. Moreover Captcha too so someone cannot misuse that tool too much.

    Other things depend on what kind of tool you are making.
     
    Nick_Mayhem, Jul 16, 2007 IP
  6. fbnewtz

    fbnewtz Peon

    Messages:
    160
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Python has a great program called Beautiful Soup. It is worth checking out. I have used it to grap all kinds of good stuff from websites. It allows you to parse the HTML and access it like a DOM structure almost. Comes in pretty handy.
     
    fbnewtz, Jul 16, 2007 IP
  7. priyakochin

    priyakochin Banned

    Messages:
    4,740
    Likes Received:
    138
    Best Answers:
    0
    Trophy Points:
    0
    #7
    How to get the most searched keywords details to cURL ?
     
    priyakochin, Jul 16, 2007 IP