transfermarkt 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/transfermarkt/player.rb +11 -11
- data/lib/transfermarkt/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd8f592835155fd93e5e52bb52c69922089f1e84
|
4
|
+
data.tar.gz: 6c08d41808bc167d33a3e6a15ee270d3e9b723b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f34dc4268763766d5a99e5954d74f1108ee441c0586260c2aad3e70b6eb4e073e9d93c095775a52cd1178690802c184be45f22c8fc9131841fd6bc9a5c64e66
|
7
|
+
data.tar.gz: 27bb27221e5383544ff67f849bee217ae18c50d397a8fc66f51e249aeabb6c24ed3e6eede9e5636a6fc8aa189a1be0417c1662ee63998e1a481d7da7ba1b280d
|
data/lib/transfermarkt/player.rb
CHANGED
@@ -50,7 +50,7 @@ module Transfermarkt
|
|
50
50
|
else
|
51
51
|
profile_html = Nokogiri::HTML(req.parsed_response)
|
52
52
|
results = {}
|
53
|
-
|
53
|
+
|
54
54
|
link = profile_html.css(".spielprofil_tooltip")[0]["href"]
|
55
55
|
self.fetch_by_profile_uri(link)
|
56
56
|
end
|
@@ -65,7 +65,7 @@ module Transfermarkt
|
|
65
65
|
profile_html = Nokogiri::HTML(req.parsed_response)
|
66
66
|
options = {}
|
67
67
|
|
68
|
-
puts "**** Parsing player #{profile_uri}"
|
68
|
+
# puts "**** Parsing player #{profile_uri}"
|
69
69
|
|
70
70
|
options[:profile_uri] = profile_uri
|
71
71
|
|
@@ -102,31 +102,31 @@ module Transfermarkt
|
|
102
102
|
header = info_row.search('th')[0].text.strip
|
103
103
|
if header == "Name in home country:"
|
104
104
|
options[:name_in_native_country] = info_row.search('td')[0].text.strip
|
105
|
-
puts options
|
105
|
+
# puts options
|
106
106
|
elsif header == "Date of birth:"
|
107
107
|
options[:date_of_birth] = info_row.search('td')[0].text.strip
|
108
|
-
puts options
|
108
|
+
# puts options
|
109
109
|
elsif header == "Place of birth:"
|
110
110
|
options[:place_of_birth] = info_row.search('td')[0].text.strip
|
111
|
-
puts options
|
111
|
+
# puts options
|
112
112
|
# elsif header == "Age:"
|
113
113
|
# options[:age] = info_row.search('td')[0].text.strip
|
114
|
-
# puts options
|
114
|
+
# # puts options
|
115
115
|
elsif header == "Height:"
|
116
116
|
options[:height] = info_row.search('td')[0].text.strip
|
117
|
-
puts options
|
117
|
+
# puts options
|
118
118
|
elsif header == "Nationality:"
|
119
119
|
options[:nationality] = info_row.search('td')[0].text.strip
|
120
|
-
puts options
|
120
|
+
# puts options
|
121
121
|
elsif header == "Position:"
|
122
122
|
options[:position] = info_row.search('td')[0].text.strip
|
123
|
-
puts options
|
123
|
+
# puts options
|
124
124
|
elsif header == "Foot:"
|
125
125
|
options[:foot] = info_row.search('td')[0].text.strip
|
126
|
-
puts options
|
126
|
+
# puts options
|
127
127
|
elsif header == "Complete name:"
|
128
128
|
options[:complete_name] = info_row.search('td')[0].text.strip
|
129
|
-
puts options
|
129
|
+
# puts options
|
130
130
|
end
|
131
131
|
end
|
132
132
|
|