CrossClj

0.3.0 docs

SourceDocs



RECENT

    atp-api

    Clojars

    Jul 6, 2014


    OWNER
    Nikola Peric
    Toronto, Canada
    gitlab.com/nikperic

    Readme

    Index of all namespaces


    The README below is fetched from the published project artifact. Some relative links may be broken.

    ATP-API

    A Clojure API to retrieve data from the ATP World Tour website. Currently a work in progress, a lot of features remain to be added.

    Usage

    ; Step 1: add to your "project.clj" file
    :dependencies [[atp-api "0.3.0"]]
    
    ; Step 2: Add the API to your .clj file
    (require '[atp-api.core :as atp])
    
    ; Step 3: use the API call for the page you want to scrape
    ;         Supported calls below:
    (atp/parse-calendar "http://www.atpworldtour.com/Scores/Archive-Event-Calendar.aspx?t=2&y=2014")
    
    (atp/parse-tournament "http://www.atpworldtour.com/Share/Event-Draws.aspx?e=339&y=2014")
    
    (atp/parse-player "http://www.atpworldtour.com/Tennis/Players/Top-Players/Roger-Federer.aspx")
    
    (atp/parse-match-stats "http://www.atpworldtour.com/Share/Match-Facts-Pop-Up.aspx?t=0339&y=2014&r=4&p=F324")
    
    (atp/parse-rankings "http://www.atpworldtour.com/Rankings/Doubles.aspx")
    
    (atp/parse-year-tourny-urls 2013)
    
    (atp/parse-between-year-tourny-urls 2011 2013)
    

    License

    Copyright © 2014 Nikola Peric

    Distributed under the Eclipse Public License version 1.0.