mechanize create google alert in ruby on rails -


I'm trying to create a Google Alert in Ruby. I am using mechanization.

  @web_agent = MacNetJet New Page = @ Web_Guent.T. 'https://www.google.com/alerts' form = page.form_with: name = & gt; Form 'F1' Q = "search keyword"  

Getting me the zero form value.

I'm getting the error:

  Undefined method `q = for zero: NilClass`  

Google changed the html That's why I need some hacks.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -