README.txt in metainspector-1.0.0 vs README.txt in metainspector-1.0.1
- old
+ new
@@ -1,33 +1,47 @@
metainspector
- by FIX (your name)
- FIX (url)
+ by Jaime Iniesta
+ http://metainspector.rubyforge.org/
== DESCRIPTION:
-FIX (describe your package)
+Ruby gem for web scraping purposes. It scrapes a given URL, and returns you a hash with data from it like for example the title, meta description, meta keywords, an array with all the links, all the images in it, etc.
== FEATURES/PROBLEMS:
-* FIX (list of features or problems)
+* Scrape a given URL and return data from its HTML
== SYNOPSIS:
- FIX (code sample of usage)
+# Require all gems and libs needed...
+require 'rubygems'
+require 'open-uri'
+require 'hpricot'
+require 'metainspector'
+# Scrape an URL...
+page_data = MetaInspector.scrape(url)
+
+# See extracted data...
+page_data['title']
+page_data['description']
+page_data['keywords']
+page_data['links']
+
== REQUIREMENTS:
-* FIX (list of requirements)
+* open-uri
+* hpricot
== INSTALL:
-* FIX (sudo gem install, anything else)
+* sudo gem install metainspector
== LICENSE:
(The MIT License)
-Copyright (c) 2007 FIX
+Copyright (c) 2007 Jaime Iniesta
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,