Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

softbank のサイト構成の変更にともない、softbank からのscraping部分を変更した

  • Loading branch information...
commit bac21eedf6d88f7a90b2d43fe61a81cf639dc6d9 1 parent 1a443b9
tokuhirom authored
View
2  Makefile.PL
@@ -3,7 +3,7 @@ use inc::Module::Install;
all_from 'lib/HTTP/MobileAgent/Flash.pm';
test_requires 'Test::More' => 0.32;
-recommends 'WWW::MobileCarrierJP' => 0.37;
+recommends 'WWW::MobileCarrierJP' => 0.45;
requires 'HTTP::MobileAgent' => 0;
requires 'Class::Accessor' => 0;
View
4 bin/make_map_flash_lite.pl
@@ -5,10 +5,12 @@
use HTTP::MobileAgent;
+use WWW::MobileCarrierJP 0.45;
use WWW::MobileCarrierJP::DoCoMo::Flash;
use WWW::MobileCarrierJP::EZWeb::DeviceID;
use WWW::MobileCarrierJP::EZWeb::Model;
use WWW::MobileCarrierJP::ThirdForce::Service;
+use WWW::MobileCarrierJP::ThirdForce::Flash;
use WWW::MobileCarrierJP::ThirdForce::HTTPHeader;
use WWW::MobileCarrierJP::ThirdForce::UserAgent;
@@ -203,7 +205,7 @@ sub make_map_softbank {
# HTTP::MobileAgent では V703SHf
#
my $flash_map;
- for my $device (@{WWW::MobileCarrierJP::ThirdForce::Service->scrape()}) {
+ for my $device (@{WWW::MobileCarrierJP::ThirdForce::Flash->scrape()}) {
if (
!$device->{flashlite} or
$device->{flashlite} !~ /^\d+(\.\d+)/ or
View
122 lib/HTTP/MobileAgent/Flash/SoftBankFlashMap.pm
@@ -286,7 +286,7 @@ $FLASH_MAP ||= {
'832P' => {
version => '3.0',
width => '240',
- height => '400',
+ height => '427',
max_file_size => '150',
},
'832SH' => {
@@ -301,6 +301,42 @@ $FLASH_MAP ||= {
height => '320',
max_file_size => '150',
},
+ '840P' => {
+ version => '2.0',
+ width => '240',
+ height => '427',
+ max_file_size => '150',
+ },
+ '840SC' => {
+ version => '3.1',
+ width => '240',
+ height => '400',
+ max_file_size => '150',
+ },
+ '840SH' => {
+ version => '3.0',
+ width => '240',
+ height => '400',
+ max_file_size => '150',
+ },
+ '841P' => {
+ version => '2.0',
+ width => '240',
+ height => '427',
+ max_file_size => '150',
+ },
+ '841SH' => {
+ version => '3.1',
+ width => '240',
+ height => '400',
+ max_file_size => '150',
+ },
+ '842P' => {
+ version => '3.0',
+ width => '240',
+ height => '427',
+ max_file_size => '150',
+ },
'910SH' => {
version => '2.0',
width => '480',
@@ -416,7 +452,7 @@ $FLASH_MAP ||= {
max_file_size => '150',
},
'930SC' => {
- version => '3.0',
+ version => '3.1',
width => '480',
height => '800',
max_file_size => '150',
@@ -427,6 +463,12 @@ $FLASH_MAP ||= {
height => '854',
max_file_size => '150',
},
+ '931N' => {
+ version => '3.0',
+ width => '480',
+ height => '854',
+ max_file_size => '150',
+ },
'931P' => {
version => '3.0',
width => '480',
@@ -434,7 +476,7 @@ $FLASH_MAP ||= {
max_file_size => '150',
},
'931SC' => {
- version => '3.0',
+ version => '3.1',
width => '480',
height => '800',
max_file_size => '150',
@@ -475,6 +517,66 @@ $FLASH_MAP ||= {
height => '854',
max_file_size => '150',
},
+ '940N' => {
+ version => '3.0',
+ width => '480',
+ height => '854',
+ max_file_size => '150',
+ },
+ '940P' => {
+ version => '3.0',
+ width => '480',
+ height => '854',
+ max_file_size => '150',
+ },
+ '940SC' => {
+ version => '3.1',
+ width => '480',
+ height => '800',
+ max_file_size => '150',
+ },
+ '940SH' => {
+ version => '3.1',
+ width => '480',
+ height => '854',
+ max_file_size => '150',
+ },
+ '941P' => {
+ version => '3.0',
+ width => '480',
+ height => '854',
+ max_file_size => '150',
+ },
+ '941SH' => {
+ version => '3.1',
+ width => '480',
+ height => '1024',
+ max_file_size => '150',
+ },
+ '942SH' => {
+ version => '3.1',
+ width => '480',
+ height => '854',
+ max_file_size => '150',
+ },
+ '943SH' => {
+ version => '3.1',
+ width => '480',
+ height => '854',
+ max_file_size => '150',
+ },
+ '944SH' => {
+ version => '3.1',
+ width => '480',
+ height => '854',
+ max_file_size => '150',
+ },
+ '945SH' => {
+ version => '3.1',
+ width => '480',
+ height => '854',
+ max_file_size => '150',
+ },
'DM001SH' => {
version => '2.0',
width => '240',
@@ -499,6 +601,18 @@ $FLASH_MAP ||= {
height => '400',
max_file_size => '150',
},
+ 'DM005SH' => {
+ version => '3.1',
+ width => '480',
+ height => '854',
+ max_file_size => '150',
+ },
+ 'DM006SH' => {
+ version => '3.0',
+ width => '240',
+ height => '400',
+ max_file_size => '150',
+ },
'V703SH' => {
version => '1.1',
width => '240',
@@ -556,7 +670,7 @@ $FLASH_MAP ||= {
'V905SH' => {
version => '1.1',
width => '240',
- height => '320',
+ height => '400',
max_file_size => '100',
},
};
Please sign in to comment.
Something went wrong with that request. Please try again.