README.md in husc-0.1.1 vs README.md in husc-0.2.0

- old
+ new

@@ -1,7 +1,7 @@ -Husc -======= +husc +==== A simple crawling utility for Ruby. ## Description @@ -17,11 +17,11 @@ ### Simple Example ```ruby require 'husc' url = 'http://www.example.com/' -doc = Husc(url) +doc = Husc.new(url) # access another url doc.get('another url') # get current url @@ -30,11 +30,10 @@ # get current site's html doc.html # get <table> tags as dict doc.tables -# ex) doc.tables['予約・お問い合わせ'] => 050-5596-6465 ``` ### Scraping Example ```ruby # search for nodes by css selector @@ -48,18 +47,18 @@ # search for nodes by xpath doc.xpath('//*[@id="top"]/div[1]') # other example doc.css('div').css('a')[2].attr('href') # => string object -doc.css('p').innerText() # => string object +doc.css('p').inner_text() # => string object # You do not need to specify "[]" to access the first index ``` ### Submitting Form Example 1. Specify target node's attribute 2. Specify value(int or str) / check(bool) / file_name(str) -3. call submit() with form attribute specified +3. Call submit() with form attribute specified ```ruby # login doc.send(id:'id attribute', value:'value to send') doc.send(id:'id attribute', value:'value to send') doc.submit(id:'id attribute') # submit @@ -75,15 +74,13 @@ doc.send(name:'name attribute', value:'hello') doc.send(class:'class attribute', value:100) ``` - - ## Installation ```sh $ gem install husc ``` ## Contributing -Bug reports and pull requests are welcome on GitHub at [https://github.com/AjxLab/PyCrawl](https://github.com/AjxLab/PyCrawl). +Bug reports and pull requests are welcome on GitHub at [https://github.com/AjxLab/husc](https://github.com/AjxLab/husc).