[Time killing site] Comedy Gasha production | Ruby on Rails + Mechanize (scraping)

・ Make a note for your own study and portfolio creation.

1: Title and URL

Comedy Gasha スクリーンショット 2020-10-05 18.03.33.png

スクリーンショット 2020-10-02 17.54.29.png

(For the time being heroku) https://fathomless-refuge-51046.herokuapp.com/

2: Features and ideas

-Display a blurred page that is suitable for the keyword at random with what is in front of you (text noun) + scraping.

-Since it is not interesting to display items with a very low rating, the top 3 keywords are displayed at random.

-Scraping is acquired by Xpath.

3: Technology used

Rails6 / ruby / heroku / css / jquery / scraping

procedure

・ Create a Rails app ・ Install Mechanize ・ Scraping Bokete based on any keyword to acquire and display images and blur

4: Production period

About a day

5: Difficult things ・ Where I got stuck

・ Scraping using Xpath ・ Since I used the library, it was surprisingly easy.

6: Ingenuity and future

・ Since it is not interesting just to search, I devised an expression so that it can be added to my environment. ・ I would like to challenge the scraping and analysis of multiple pages and large amounts of data. ・ It's interesting to use, but it's only interesting for Mr. Bokete. You can't search by train because you'll be surprised if you force it.

Recommended Posts

[Time killing site] Comedy Gasha production | Ruby on Rails + Mechanize (scraping)
[Updated from time to time] Ruby on Rails Convenient methods
Ruby on Rails Elementary
Ruby on Rails basics
Ruby On Rails Association
Ruby on rails learning record -2020.10.03
Portfolio creation Ruby on Rails
Ruby on rails learning record -2020.10.04
[Ruby on Rails] Debug (binding.pry)
Ruby on rails learning record -2020.10.05
Ruby on rails learning record -2020.10.09
Ruby on Rails config configuration
Ruby on Rails basic learning ①
[Ruby on Rails] about has_secure_password
Ruby on rails learning record-2020.10.07 ②
Commentary on partial! --Ruby on Rails
Ruby on rails learning record-2020.10.07 ①
Cancel Ruby on Rails migration
Ruby on rails learning record -2020.10.06
Ruby on Rails validation summary
About Rails scraping method Mechanize
Ruby on Rails Basic Memorandum
[Ruby on Rails] Read try (: [],: key)
[Ruby on Rails] yarn install --check-files
Ruby on Rails variable, constant summary
Installing Ruby + Rails on Ubuntu 18.04 (rbenv)
[Ruby on Rails] Introduced paging function
Basic knowledge of Ruby on Rails
Progate Ruby on Rails5 Looking Back
How to use Ruby on Rails
[Ruby on Rails] Add / Remove Columns
Ruby on Rails Japanese-English support i18n
(Ruby on Rails6) "Erase" posted content
[Ruby on Rails] CSV output function
Ruby on Rails 6.0 environment construction memo
[Ruby on Rails] What is Bcrypt?
[Ruby on Rails] Confirmation page creation
Ruby On Rails devise routing conflict
[Ruby on Rails] Comment function implementation
[Ruby on Rails] DM, chat function
[Ruby on Rails] Convenient helper method
[Ruby on Rails] Stop "looping until ..."
Personal development: Summary of technologies used in comedy Gasha (scraping, Rails, Heroku)