netkeiba-crawler's People
netkeiba-crawler's Issues
ActiveRecord::RecordInvalid: Validation failed: Horse has already been taken
https://sentry.io/kawakuboxcom/uma/issues/288319819/
ActiveRecord::RecordInvalid: Validation failed: Horse has already been taken
app/models/scraper/race_entry.rb:38:in `block (2 levels) in scrape!'
hr = HorseResult.find_or_create_by!(
app/models/scraper/race_entry.rb:33:in `block in scrape!'
tr.search('td')[4..-1].each do |td|
app/models/scraper/race_entry.rb:21:in `scrape!'
entry_table.search('tr')[1..-1].each do |tr|
app/jobs/scrape_race_entry_job.rb:9:in `perform'
Scraper::RaceEntry.new(race_id).scrape!
bin/rails:9:in `<top (required)>'
require 'rails/commands'
...
(94 additional frame(s) were not displayed)
ActiveRecord::RecordInvalid: Validation failed: Horse has already been taken
レース一覧つくる
ActiveRecord::RecordInvalid: Validation failed: Race name must exist
https://sentry.io/kawakuboxcom/uma/issues/312066964/
ActiveRecord::RecordInvalid: Validation failed: Race name must exist
app/models/scraper/race_entry.rb:47:in `block (2 levels) in scrape!'
r = Race.find_or_create_by!(key: parser.race_key)
app/models/scraper/race_entry.rb:44:in `block in scrape!'
tr.search('td')[4..-1].each do |td|
app/models/scraper/race_entry.rb:30:in `scrape!'
entries.each do |tr|
app/jobs/scrape_race_entry_job.rb:9:in `perform'
Scraper::RaceEntry.new(race.key).scrape!
bin/rails:9:in `<top (required)>'
require 'rails/commands'
...
(98 additional frame(s) were not displayed)
ActiveRecord::RecordInvalid: Validation failed: Race name must exist
ゲート番号がどっかのタイミングで nil に更新されちゃってる
レース名の末尾にスペースが入っている
NoMethodError: undefined method `text' for nil:NilClass
https://sentry.io/kawakuboxcom/uma/issues/290761698/
NoMethodError: undefined method `text' for nil:NilClass
app/models/scraper/race_entry.rb:127:in `ordinal'
end
app/models/scraper/race_entry.rb:13:in `scrape!'
ordinal: ordinal,
app/jobs/scrape_race_entry_job.rb:9:in `perform'
Scraper::RaceEntry.new(race_id).scrape!
bin/rails:9:in `<top (required)>'
require 'rails/commands'
...
(72 additional frame(s) were not displayed)
NoMethodError: undefined method `text' for nil:NilClass
指定したレースの出馬表をスクレイピングする
- レースモデルの作成
- 馬モデルの作成
- 騎手モデルの作成
- 馬成績モデルの作成
レース詳細つくる
Race モデルに出走頭数カラムを設ける
counter_culture による cache を行う
レース名マスタを作る
race_names
long_name
short_name
ActiveRecord::RecordInvalid: Validation failed: Horse has already been taken
https://sentry.io/kawakuboxcom/uma/issues/293264438/
ActiveRecord::RecordInvalid: Validation failed: Horse has already been taken
app/models/scraper/race_entry.rb:64:in `block (2 levels) in scrape!'
hr = HorseResult.find_or_create_by!(
app/models/scraper/race_entry.rb:59:in `block in scrape!'
tr.search('td')[4..-1].each do |td|
app/models/scraper/race_entry.rb:55:in `scrape!'
@doc2.at('table.denmaLs').search('tr')[1..-1].each do |tr|
app/jobs/scrape_race_entry_job.rb:9:in `perform'
Scraper::RaceEntry.new(race.key).scrape!
bin/rails:9:in `<top (required)>'
require 'rails/commands'
...
(97 additional frame(s) were not displayed)
ActiveRecord::RecordInvalid: Validation failed: Horse has already been taken
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.