similar to: Successfully importing Rubyful Soup objects

Displaying 20 results from an estimated 400 matches similar to: "Successfully importing Rubyful Soup objects"

2006 Mar 22
2
RubyGem loading into a controller (High quality question)
INSTALLATION: Ruby 1.8.2 Rails 1.0.0 rubyful_soup 1.0.4 (GEM) FACTS: 0) I have successfully installed the rubyful_soup GEM using (I had previously installed it, which is why the output may look sparse): C:\ruby>gem install -r rubyful_soup Attempting remote installation of ''rubyful_soup'' Successfully installed rubyful_soup-1.0.4 Installing RDoc documentation for
2006 Jun 23
1
rubyful_soup works fine as an RB file but bugs in Rails
This is the code: 1 require ''rubyful_soup'' 2 require ''open-uri'' 3 4 url = "http://www.google.com/search?q=ruby" 5 open(url) { 6 |page| page_content = page.read() 7 soup = BeautifulSoup.new(page_content) 8 result = soup.find_all(''a'', :attrs => {''class'' => ''l''}) 9 result.each {
2006 Jun 25
0
rubyful_soup replace element
Hi, well, how do i replace an element with rubyful_soup ?? I tried soup = BeautifulSoup.new(input) elemnt = soup.find(''quote'') elemnt = tag(''<div></div>'') elemnt = ''<div></div>'' elemnt.replaceWith(''<div></div>'') elemnt = BeautifulSoup.new(''<div></div>'') elemnt
2006 May 17
0
Rubyful-soup and ''malformed utf-8 character''
Hi Guys, I am trying to use Rubyful-soup for a simple webpage modification project. The issue is that when I try to display the modified html (generated by @soup.to_s) using RJS, an error pops up saying ''malformed utf-8 character''. I can fix this by using @soup.to_s.toutf8 but that causes some of the characters in the document to be messed up (ie ''&nbsp becomes
2006 Jun 05
6
HTML Parsing libraries
Hi, What is the best way to parse HTML? Or is there a simple way to convert a table to an array? I tried beautiful_soup and the built-in htmltools, but have trouble getting them to run. Any pointers? Thanks, Hari -- Posted via http://www.ruby-forum.com/.
2006 May 18
1
Unnecessary Gem modules loaded under Rails 1.1.2
All, Rails 1.1.2 Win XP Pro Rubyful Soup 1.0.4 htmltools 1.0.9 I am terribly confused as to what pulling in a gem does with respect to how many modules get loaded at runtime. I am using two gems in my app, Rubyful Soup and htmltools. RubyfulSoup requires one module from the htmltools gem (html/sgml-parser). My app requires the RubyfulSoup gem. When I started my app, something was causing
2006 Jul 25
1
RDig document processing error
Hi all, Am having problems using RDig: With this rdig config... cfg.crawler.start_urls = [''http://www.defensetech.org''] cfg.crawler.include_hosts = [''www.defensetech.org''] cfg.index.path = ''/my/path/to/index'' cfg.verbose = true ...I get this output: $ rdig -c config/rdig_config.rb /usr/local/lib/site_ruby/1.8/ferret/index/term.rb:45:
2006 May 16
3
Best way to handle namespace collisions?
All, I have a little namespace collision here. I am trying to use both RubyfulSoup (an HTML parser - which I highly recommend by the way) and the ActionView::Helpers::TextHelper class. Within the TextHelper class, there''s an attempt to create a new "Tag" object. However, Tag is also defined in the RubyfulSoup gem and it is _this_ Tag class whose initialize method is
2007 Jan 23
3
Someone getting RDig work for Linux?
I got this root at linux:~# rdig -c configfile RDig version 0.3.4 using Ferret 0.10.14 added url file:///home/myaccount/documents/ waiting for threads to finish... root at linux:~# rdig -c configfile -q "Ruby" RDig version 0.3.4 using Ferret 0.10.14 executing query >Ruby< Query: total results: 0 root at linux:~# my configfile I changed from config to cfg, because of maybe
2006 Mar 13
2
Newbie: Can''t get file to upload
Since I can''t get the fancy upload progress thing to work, I thought that I would revert back to a regular file upload scenario. I have a very simple file upload form set up. It appears that my file parameter is coming into the controller as a string, not a file object. Here''s my view: <%= form_tag :action => ''save_HTML'', :multipart
2008 Jun 07
2
mkhtml.py: writing HTML documents in Markdown
[Note to markdown-discuss readers: for context see <http://lists.canonical.org/pipermail/kragen-hacks/2008-June/000488.html>] * Kragen Javier Sitaker <kragen at pobox.com> [2008-06-07 09:40]: > Stylesheeting comes naturally. I just put a `<style>` element > at the top with a few lines inside of it to format nicely. Note that Markdown ends up wrapping `<link>` and
2007 May 11
0
The Soup - new rails community resource
Greetings all, I am pleased to announced The Soup - http://the-soup.net/ - a tasty new resource for the Rails Community. About Are you a Talented person that is looking for new and interesting projects to work on? Are you a Project Sponsor that is looking to build quality relationships in anticipation of your next hiring cycle? Inspired by the story of The Stone Soup, The Soup provides a
2006 Feb 13
2
How to parse HTML doc in Ruby?
Hi, I want to parse the html doc using ruby. I tried using reXML but failed to load html doc as it is not in well formed structure. Can you please suggest me a good parser which I can use to parse HTML page using Ruby? Thanks, Karika. -- Posted via http://www.ruby-forum.com/.
2006 Aug 11
2
name conflicts between act_as_taggable and rubyful_soup
both of them use the class called "Tag" there is a name conflict error when I want to use both of them in rails how can I solve this error? anybody got some suggestion? thx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060811/7f09cb14/attachment.html
2008 Feb 27
0
Do you need a place to stay? Food to eat? 4000+ Shelters and soup kitchens in all 50 states:
Do you need a place to stay? Food to eat? 4000+ Shelters and soup kitchens in all 50 states: http://groups.google.com/group/homeless_shelters?hl=en --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2006 May 29
2
save view to file
Hi, I am trying to figure out a way to save the view of an action to a file. I have an action call makehtml. It gets data from a database and create a view that display the result in a browser. I would like to save that result view page to a file in public/htmls for example. Does anyone know how I can do this? Thanks for all your help in advance. -- Posted via http://www.ruby-forum.com/.
2007 Jan 21
4
could not install in WinXP
Directory of C:\search_app 01/21/2007 19:37 <DIR> . 01/21/2007 19:37 <DIR> .. 01/21/2007 19:36 427 008 ferret-0.10.13.gem 01/21/2007 19:07 148 992 rdig-0.3.4.gem 2 File(s) 576 000 bytes 2 Dir(s) 45 135 982 592 bytes free C:\search_app>gem install ferret Building native extensions. This could
2006 Jan 10
1
OT: Scraper library recommendation
Hi all, this is quite off-topic, but I''m sure a lot of people here has experience in the area, so... I''m writing a website scraper script that needs to download a web page, traverse the (X)HTML tree and finally insert data and HTML pieces into a DB. Eventually this data will be served up as RSS and/or Atom. I''m currently using html/tree (htmltools); I''ve also
2006 Jul 14
2
RDig config file problem
Hi All, Hope it is ok to post RDig queries on this forum. Just trying to get RDig working (Ubuntu 6.06, RDig 0.3.0, ferret 0.9.4, rubyful_soup 1.0.4) Here is my output: sh:~/rdigtry$ rdig -c config/rdig_config.rb discovered content extractor class: RDig::ContentExtractors::PdfContentExtractor discovered content extractor class: RDig::ContentExtractors::WordContentExtractor discovered
2006 Jun 24
0
superclass mismatch for class Tag (TypeError)
I am trying to write a ruby script which includes both the ''RubyfulSoup'' gem for HTML scouring, and the rails environment so I can access the database easily. I get the following error when trying to run this script. /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/helpers/../../action_controller/vendor/html-scanner/html/node.rb:276: superclass mismatch for class