質問編集履歴
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -50,6 +50,26 @@
|
|
50
50
|
|
51
51
|
|
52
52
|
|
53
|
+
##追記
|
54
|
+
|
55
|
+
実際のコードは下記のようになっています。
|
56
|
+
|
57
|
+
```
|
58
|
+
|
59
|
+
$projectListUrl = 'http://www.kaigokensaku.mhlw.go.jp/'.$prefId.'/index.php?action_kouhyou_pref_search_list_list=true&PrefCd='.$prefId.'&OriPrefCd='.$prefId.'&method=pager&p_sort_name=47&p_order_name=1';
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
$ankenListUrl = "$projectListUrl.'&p_count='.$page.'&p_offset='.$pNum";
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
exec('C:\X_DRIVE\asp\home\laravel\vendor\bin\phantomjs.exe C:\X_DRIVE\asp\home\laravel\public\js\crawler.js '.$ankenListUrl, $arr);
|
68
|
+
|
69
|
+
```
|
70
|
+
|
71
|
+
|
72
|
+
|
53
73
|
どうかご助力いただけないでしょうか。
|
54
74
|
|
55
75
|
|
1
更新
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,11 +4,13 @@
|
|
4
4
|
|
5
5
|
phpファイル内で下記のようにexecを実行した結果、タイトルにあるようなエラーが出力されました。
|
6
6
|
|
7
|
-
```
|
7
|
+
```php
|
8
8
|
|
9
9
|
exec('C:\X_DRIVE\asp\home\laravel\vendor\bin\phantomjs.exe C:\X_DRIVE\asp\home\laravel\public\js\crawler.js http://www.kaigokensaku.mhlw.go.jp/02/index.php?action_kouhyou_pref_search_list_list=true&PrefCd=02&OriPrefCd=02&p_count=5&p_offset=10&method=pager&p_order_name=1&FromPage=Service', $arr);
|
10
10
|
|
11
11
|
```
|
12
|
+
|
13
|
+
※上記execにてphantomjsを起動し、URLのhtmlのスクレイピングを行っております。
|
12
14
|
|
13
15
|
|
14
16
|
|