weather_insight 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/lib/weather_insight.rb +1 -2
- data/lib/weather_insight/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: 0cd5389fbf00aad629cdb4a26138673ead3bc9e9
|
4
|
+
data.tar.gz: 42002db7ec4b9c9c7500ac5e55a47e60b4d7da69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ba92e2e7d147aadae1b87516fac5a251c65ca10f1898bbb991e4223e89acbeb93cf938ea6e2672d635ada944d08a02ef786fa4a5d71b5e88ae425de055c0c1d
|
7
|
+
data.tar.gz: 95bdff4a683f1c891c041738a1a67b9c48613e1d6ca12c3a6c92bce424826f62b6da6b7e7447475165ca726e2d5b995ae8f09d82be727d23343bb6f7756b1346
|
data/README.md
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
# WeatherInsight
|
2
2
|
|
3
3
|
WeatherInsight acquire average data of past weather from goo.
|
4
|
+
Only Japan data.
|
4
5
|
|
5
6
|
## Notice
|
6
7
|
|
7
8
|
WeatherInsight is used Web scraping. Therefore be careful about excessive access to a Web server.
|
8
|
-
|
9
|
+
Please use weather data which is written by your program in a file.
|
9
10
|
|
10
11
|
## Installation
|
11
12
|
|
data/lib/weather_insight.rb
CHANGED
@@ -17,14 +17,13 @@ module WeatherInsight
|
|
17
17
|
get_data url
|
18
18
|
end
|
19
19
|
|
20
|
-
def year_data spot
|
20
|
+
def year_data spot
|
21
21
|
year_data = {}
|
22
22
|
|
23
23
|
1.upto(12) do |month|
|
24
24
|
url = UrlList.month_url spot, month
|
25
25
|
month_data = get_data url
|
26
26
|
year_data[month] = month_data
|
27
|
-
sleep(interval)
|
28
27
|
end
|
29
28
|
|
30
29
|
year_data # year_data[:month][:day]
|