ruby tag

542 questions


1 answers
110 views
0
This is a question about web crawling in Ruby.

I'm a student who studies the web.I'm making a code that extracts only the contents of Internet newspaper articles with rubies.Code execution allows you to extract text from a newspaper article. The c...



1 answers
109 views
0
What error is AttributeDoesNotExistError in Should Matcher...?

I'm writing a model spec using rspec, factory-girl, and shoulda-matcher.Using validate_presence_of provided by shoulda-matcher, we are writing a spec that an empty or false cannot be entered in the fi...


1 answers
36 views
0
Install ruby on rails on Linux

I want to install Ruby On Rails in a Linux cli environmentWhen installing rvm, ruby, and gem, the letters come out in a diamond shapeI think it's an error that can't be installedDo I have to do sudo? ...

2 years ago

1 answers
28 views
0
ruby ssl_connect returned 1 errno 0 state sslv3 error

I'm using Ruby to crawl.Originally, I worked on a web IDE called cloud9, but when I moved it locally,The message ssl_connect returned 1 errno 0 state sslv3 read server certificate B: certificate verif...

2 years ago

1 answers
169 views
0
What should I do if I can't get data due to JavaScript when crawling on Ruby?

I'm practicing web crawling using nokogiri.http://media.daum.net/digital/mobile/#page=1&type=tit_contIn this url, I made a code that outputs url of the article in the red type as shown below.Howev...


1 answers
100 views
0
Ruby on Rails Template Question

I tried to make a homepage using a template.In the template, there were css, font, img, js, sass folders in the assets folder.So I put the css, sass folders in the template into the Ruby on Rails proj...


1 answers
92 views
0
A function that functions as ready() or $(window).load() of js in ruby grammar

To get information that Naver API doesn't provide,I'm crawling directly on the Naver map site.But after doing it,NAVER map is loaded in double?This I think it's working. After loading the basic frame,...

2 years ago

1 answers
131 views
0
How do I make a variable have a float value in Ruby?

total_a = 10total_b = 5ratio = total_b/total_aprint ratioIf you do this, the ratio becomes 0. It seems to be processed automatically in an integer type, so how do I make the ratio have a value of 0.5?

2 years ago

1 answers
100 views
0
Ruby-on-Rails This is a question when pulling images and text when webcrawling.

I am a student who studies the web. I always get a lot of help here.I've tried extracting images separately from text, but I'm curious here.For example, when crawling a newspaper article, how do I ext...

« - 49 - »

© 2024 OneMinuteCode. All rights reserved.