Random Post: get_results("SELECT ID,post_title,guid FROM $wpdb->posts WHERE post_status= \"publish\" ORDER BY RAND() LIMIT 1"); $p=$post[0]; echo ('' . $p->post_title . ''); ?>
RSS .92| RSS 2.0| ATOM 0.3
  • Home
  • About
  •  

    Unlock client on PyPi

    I finally got round to uploading an Unlock client to PyPi, the Python package repository.

    easy_install unlock

    from unlock import Places
    p = Places()
    xml = p.nameSearch('Edinburgh')

    There’s also a simple interface to the geoparser, Unlock Text, in there.

    I hope it’ll be a timesaver, and we’ll add some more code resources to the site soon.

    Comments are closed.