Re: Grabbing Rotten Tomatoes movie ratings in clojure

2011-04-27 Thread justinhj
 Neat project, have you looked into using their web service API
 (http://developer.rottentomatoes.com/) rather than scraping?

Hi

Yeah that is a good idea. The purpose of this project was that I was
finding my feet with Clojure and wanted to do something that retrieved
and parsed html pages.

Extending it to use the developer API looks like a fun next step which
I will probably do.

Justin

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Grabbing Rotten Tomatoes movie ratings in clojure

2011-04-26 Thread justinhj
An update on this little side project to grab movie ratings from popular a 
movie website:

I've add it to github and included the project file and updated the README

https://github.com/justinhj/movieratings

Also fixed it so it works with a recent change their page format. 

Justin


-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Grabbing Rotten Tomatoes movie ratings in clojure

2011-04-26 Thread Aaron Cohen
On Tue, Apr 26, 2011 at 3:19 PM, justinhj justi...@gmail.com wrote:
 An update on this little side project to grab movie ratings from popular a
 movie website:
 I've add it to github and included the project file and updated the README
 https://github.com/justinhj/movieratings

 Also fixed it so it works with a recent change their page format.
 Justin


Neat project, have you looked into using their web service API
(http://developer.rottentomatoes.com/) rather than scraping?

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Grabbing Rotten Tomatoes movie ratings in clojure

2011-01-20 Thread Anders Rune Jensen
You might have a look at this code I wrote a while ago:

https://mocomp.googlecode.com/hg/rotten-tomatoes.clj

It's written using enlive :) I'm using google to search, sadly the
google ajax api returns different results than normal google and
they are not to keen on being hammered (fair warning ;-)).

There is also one for imdb.

https://mocomp.googlecode.com/hg/imdb.clj


On Wed, Jan 19, 2011 at 11:58 PM, Mark Nutter manutte...@gmail.com wrote:
 Let me also recommend swannodette's excellent Enlive tutorial:

 https://github.com/swannodette/enlive-tutorial

 It's a great way to jump into the meat and potatoes.

 m

 On Tue, Jan 18, 2011 at 7:05 PM, justinhj justi...@gmail.com wrote:
 Thanks for the feedback Stuart

 I'll check out Enliven. I'm currently writing an app using Compojure,
 Ring and Hiccup, so it would fit nicely with that too by the sound of
 it.


 On Jan 16, 7:25 pm, Stuart Campbell stu...@harto.org wrote:
 Hi,

 Have you used Enlive[1]? It's a nice tool for HTML scraping and templating -
 it might be more robust than your regexp-based solution. It takes a bit of
 learning, though.

 Regards,
 Stuart

 [1]https://github.com/cgrand/enlive

 On 16 January 2011 05:57, justinhj justi...@gmail.com wrote:







  Sharing my first useful Clojure program. Feedback welcome.

 http://bit.ly/clojure-rotten-tomatoes

   --
  You received this message because you are subscribed to the Google
  Groups Clojure group.
  To post to this group, send email to clojure@googlegroups.com
  Note that posts from new members are moderated - please be patient with
  your first post.
  To unsubscribe from this group, send email to
  clojure+unsubscr...@googlegroups.comclojure%2bunsubscr...@googlegroups.com
   
  For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with your 
 first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with your 
 first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en




-- 
Anders Rune Jensen

http://www.iola.dk

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Grabbing Rotten Tomatoes movie ratings in clojure

2011-01-20 Thread justinhj
Interesting. Enliven looks way more concise for this sort of thing.

Justin

On Jan 20, 11:26 am, Anders Rune Jensen anders.rune.jen...@gmail.com
wrote:
 You might have a look at this code I wrote a while ago:

 https://mocomp.googlecode.com/hg/rotten-tomatoes.clj

 It's written using enlive :) I'm using google to search, sadly the
 google ajax api returns different results than normal google and
 they are not to keen on being hammered (fair warning ;-)).

 There is also one for imdb.

 https://mocomp.googlecode.com/hg/imdb.clj









 On Wed, Jan 19, 2011 at 11:58 PM, Mark Nutter manutte...@gmail.com wrote:
  Let me also recommend swannodette's excellent Enlive tutorial:

 https://github.com/swannodette/enlive-tutorial

  It's a great way to jump into the meat and potatoes.

  m

  On Tue, Jan 18, 2011 at 7:05 PM, justinhj justi...@gmail.com wrote:
  Thanks for the feedback Stuart

  I'll check out Enliven. I'm currently writing an app using Compojure,
  Ring and Hiccup, so it would fit nicely with that too by the sound of
  it.

  On Jan 16, 7:25 pm, Stuart Campbell stu...@harto.org wrote:
  Hi,

  Have you used Enlive[1]? It's a nice tool for HTML scraping and 
  templating -
  it might be more robust than your regexp-based solution. It takes a bit of
  learning, though.

  Regards,
  Stuart

  [1]https://github.com/cgrand/enlive

  On 16 January 2011 05:57, justinhj justi...@gmail.com wrote:

   Sharing my first useful Clojure program. Feedback welcome.

  http://bit.ly/clojure-rotten-tomatoes

    --
   You received this message because you are subscribed to the Google
   Groups Clojure group.
   To post to this group, send email to clojure@googlegroups.com
   Note that posts from new members are moderated - please be patient with
   your first post.
   To unsubscribe from this group, send email to
   clojure+unsubscr...@googlegroups.comclojure%2bunsubscr...@googlegroups.com

   For more options, visit this group at
  http://groups.google.com/group/clojure?hl=en

  --
  You received this message because you are subscribed to the Google
  Groups Clojure group.
  To post to this group, send email to clojure@googlegroups.com
  Note that posts from new members are moderated - please be patient with 
  your first post.
  To unsubscribe from this group, send email to
  clojure+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en

  --
  You received this message because you are subscribed to the Google
  Groups Clojure group.
  To post to this group, send email to clojure@googlegroups.com
  Note that posts from new members are moderated - please be patient with 
  your first post.
  To unsubscribe from this group, send email to
  clojure+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en

 --
 Anders Rune Jensen

 http://www.iola.dk

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Grabbing Rotten Tomatoes movie ratings in clojure

2011-01-19 Thread Mark Nutter
Let me also recommend swannodette's excellent Enlive tutorial:

https://github.com/swannodette/enlive-tutorial

It's a great way to jump into the meat and potatoes.

m

On Tue, Jan 18, 2011 at 7:05 PM, justinhj justi...@gmail.com wrote:
 Thanks for the feedback Stuart

 I'll check out Enliven. I'm currently writing an app using Compojure,
 Ring and Hiccup, so it would fit nicely with that too by the sound of
 it.


 On Jan 16, 7:25 pm, Stuart Campbell stu...@harto.org wrote:
 Hi,

 Have you used Enlive[1]? It's a nice tool for HTML scraping and templating -
 it might be more robust than your regexp-based solution. It takes a bit of
 learning, though.

 Regards,
 Stuart

 [1]https://github.com/cgrand/enlive

 On 16 January 2011 05:57, justinhj justi...@gmail.com wrote:







  Sharing my first useful Clojure program. Feedback welcome.

 http://bit.ly/clojure-rotten-tomatoes

   --
  You received this message because you are subscribed to the Google
  Groups Clojure group.
  To post to this group, send email to clojure@googlegroups.com
  Note that posts from new members are moderated - please be patient with
  your first post.
  To unsubscribe from this group, send email to
  clojure+unsubscr...@googlegroups.comclojure%2bunsubscr...@googlegroups.com
   
  For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with your 
 first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Grabbing Rotten Tomatoes movie ratings in clojure

2011-01-18 Thread Eric Lavigne
 I'll check out Enliven. I'm currently writing an app using Compojure,
 Ring and Hiccup, so it would fit nicely with that too by the sound of
 it.

I was in a small Enlive vs Hiccup discussion at the conj. Enlive was
preferred by developers who worked with designers, because it allows
designers to work with pure HTML. Hiccup was preferred by developers
who work solo or only with other developers, because it is more
concise. I prefer Hiccup, but wouldn't hesitate to switch if a
teammate wanted to work with HTML.

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Grabbing Rotten Tomatoes movie ratings in clojure

2011-01-16 Thread Stuart Campbell
Hi,

Have you used Enlive[1]? It's a nice tool for HTML scraping and templating -
it might be more robust than your regexp-based solution. It takes a bit of
learning, though.

Regards,
Stuart

[1] https://github.com/cgrand/enlive

On 16 January 2011 05:57, justinhj justi...@gmail.com wrote:

 Sharing my first useful Clojure program. Feedback welcome.

 http://bit.ly/clojure-rotten-tomatoes



  --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with
 your first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.comclojure%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en