åã¯ã¤ã©ã¹ããæããã§ããè³æã®ç»åéããèªåååºæ¥ãªããã¨èããããã§ãããæ¯æ¥ãPixivãå·¡åãã¦ã¡ã¾ã¡ã¾ã¨ç»åãéãã¦ããã§ããã¨ã¦ããããªããæéãå¿ä½ç¡ãã
ã¡ãªã¿ã«åä½ç°å¢ã¨ãã¦ã¯windows7ã§PHPãåä½ããç°å¢ãåæã¨ãã¦ã¾ããå¥ã«ããããã¡ã¤ã«ã§ä½ã£ã¦ãè¯ãã£ããã§ããæ¥ä»åå¾ãé¢åéãããæ£ç¢ºããæããªãã°serverãç¨æãã¦rsyncã§åå¾ããå½¢ã§ãè¯ãã£ããã§ãããããã¾ã§ããæ軽ã¨ãããã¨ã§ã¯ã©ã¤ã¨ã³ããã·ã³ä¸ã¤ã§å®çµããããã«ãã¾ããã
PHPãåããªãã£ã¦ã²ã¨ã¯ãã¦ã³ãã¼ããã¦ãã¦ç¨æãã¦ä¸ãããä¸ã¤ãããã¹ã¯ãªããè¨èªå
¥ãã¦ãã¨ä½ãã¨æãã¾ããã
PHP 5.5.7 ダウンロードとインストール - PHPインストールと初期設定
Pixivç»ååå¾ã¯ãã¼ã©ãç¨æ
ä»åä½ããã¨æã£ãã®ã¯ãããè¦ã¤ããããã§ãããGUIã§ãåããã©ã³ãã³ãã©ã¤ã³ãããåä½å¯è½ã£ã¦ãã¨ã§windowsã¿ã¹ã¯ã«çµã¿è¾¼ãã°èªåååºæ¥ãããããªããã¨æã£ãããã§ãã
大ä¸æ®µã«æ§ããã¿ã¤ãã«ã¤ãã¦ããã©ãè¦ã¯ãããåãããããå¦çãä½ã£ãã ãã§ãw macçlinuxçããããã§cronã¨ãã«çµã¿è¾¼ãã°ãµã¼ãã§ã使ããããããªãã§ãããã
windowsçããã±ã¼ã¸ãåå¾ãã¦ãã¦å±éãã¦ä¸ããã
ã¤ã³ã¹ãã¼ã©ã¯ãªãã®ã§Cãã©ã¤ãç´ä¸ã«ã§ããã£ã¬ã¯ããªã移åãã¦ä¸ããã次ã¯åºæ¬æ
å ±ãå
¥åãã¾ãã
PixPixDownloader.exeãèµ·åããã¨GUIçãç«ã¡ä¸ããã®ã§ãåºæ¬è¨å®ã®ã¿ããã¯ãªãã¯ãã¦Pixivã®IDã»passwordãä¿åå
ãã£ã¬ã¯ããªãå
¥åãé©ç¨ãæ¼ãã¨è¨å®ãã¡ã¤ã«ãä¸æ¸ãããã¾ãã
ããã§ãã©ã¡ã¼ã¿ã¿ãã§ãé©å½ã«ã¿ã°ãå
¥åãã¦å·¡åããã¦ç»åãåéããããããªãOKã§ãã
注æç¹ã¯ä¿åãã£ã¬ã¯ããªãåå¨ããªãå ´ååä½ããªãã§ãã
CUIçãåããã¦ã¿ã
åç´ã«ãã«ããè¦ãã°ããã ãã§ããããä¸å¿è¨è¼ãã¦ããã¾ãã
ãã«ãã®è¡¨ç¤ºæ¹æ³ã¯"java -jar PixPixDownloader.jar h"ã§ãã
################################################ ## ããããã³ãã³ãã¢ã¼ã㸠## ## 注 ãã©ã¡ã¼ã¿ã¯æ£ããæå®ãã¦ãã ãã ## ################################################ ãã©ã¡ã¼ã¿ã«ã¯ä¸è¨ã®ãããªãã®ãç¨æããã¦ããã¾ã æ¤ç´¢ç»ååéå®è¡ [æ¤ç´¢ã¯ã¼ã / éå§æ¥æ / çµäºæ¥æ / æä½ããã¯ãã¼ã¯æ° / ã¢ã¼ã(ç»å:0ã»æ¼«ç»:1ã»ç·å:2) / éå§ãã¼ã¸çªå· / çµäºãã¼ã¸çªå·] # ãã©ã¡ã¼ã¿ã®ä¾) is ã«ãªã¹ 2010-01-01 2010-01-01 0 2 0 50 IDç»ååéå®è¡ [ID / éå§ãã¼ã¸çªå· / çµäºãã¼ã¸çªå·] # ãã©ã¡ã¼ã¿ã®ä¾) ii 000000 0 5 æ¤ç´¢å°èª¬åéå®è¡ [æ¤ç´¢ã¯ã¼ã / éå§æ¥æ / çµäºæ¥æ / æä½ããã¯ãã¼ã¯æ° / éå§ãã¼ã¸çªå· / çµäºãã¼ã¸çªå·] # ãã©ã¡ã¼ã¿ã®ä¾) ns ã«ãªã¹ 2010-01-01 2010-01-01 0 0 50 IDå°èª¬åéå®è¡ [ID / éå§ãã¼ã¸çªå· / çµäºãã¼ã¸çªå·] # ãã©ã¡ã¼ã¿ã®ä¾) ni 000000 0 5 [Unix/Linux] Is it garbled? Please execute the following command. $ alias java='java -Dfile.encoding=UTF-8'
åã¯æ±æ¹ããã®ç»åãåéãã¦ãã®ã§ãæ¤ç´¢:æ±æ¹,æä½ããã¯ãã¼ã¯æ°:30ã¨è¨å®ãããªãä¸è¨ã®éãã
C:\PixPix_Win> java -jar PixPixDownloader.jar is æ±æ¹ 2013-08-24 2013-08-25 30 2 0 50
æä½ããã¯ãã¼ã¯æ°ã¯ããã®ã¿ã§ããã ã0ã¨ãã«ããã¨è¨å¤§ãªéããã¦ã³ãã¼ãããã¦ãã¼ããã£ã¹ã¯å§è¿«ããã®ã§ããèãã¦ãã ããã
ãããå¦çã®ä½æ
ãã¤ã¼ã«ä½ã£ã¦ã¾ãããæ軽ã¨ãããã¨ããå¿ããªãã
<?php //ä¿åãã£ã¬ã¯ã㪠$save_path = 'C:\\download\\'; // æ¥ä»åå¾ $today = date('Y-m-d', strtotime('-1 day')); $yesterday = date('Y-m-d', strtotime('-2 day')); // æ¤ç´¢ãã¼ã¯ã¼ã $search_word = array( array('keyword'=>'æ±æ¹', 'bookmark_num'=>'30'), array('keyword'=>'è¦ãã','bookmark_num'=>'100'), array('keyword'=>'é²æã®å·¨äºº', 'bookmark_num'=>'50') ); // åéå®è¡ chdir("C:\\PixPix_Win"); foreach($search_word as $value) { system("java -jar C:\\PixPix_Win\PixPixDownloader.jar is ". $value['keyword'] ." $yesterday $today ". $value['bookmark_num'] ." 2 0 50"); system("move $save_path". $value['keyword'] ." $save_path". $value['keyword'] ."$today"); } ?>
ã¾ã注æç¹ã¨ãã¦ã¯åæ¥åã®ç»åãåéããããã«ä½ã£ã¦ããã¨ã§ãããããå½æ¥ã§ããããã§ããåããã¼ããå«ãªã®ã§ã
windowsã¿ã¹ã¯ã¸ã®ç»é²
ã³ã³ããã¼ã«ããã«âã·ã¹ãã ã¨ã»ãã¥ãªãã£âã¿ã¹ã¯ã®ã¹ã±ã¸ã¥ã¼ã«ã
æ¤ç´¢ã§"taskschd.msc"ãæ©ãã§ãã
ã¹ã¯ãªã¼ã³ã·ã§ããã§ãç½®ãã¦ããã¾ãã®ã§åèã«ãã¦ã¿ã¹ã¯ãç»é²ãã¦ä¸ããã
ä»å¾ã®èª²é¡
ããã ã¨éè¤ç»åãããå ´åã¯åé¤ã§ããªããã§ãããSimiPixã§ã使ã£ã¦å®æçã«åé¤ããããç¡ãã£ããã
Picasaã§ã¿ã°ã使ã£ã¦ç»åã¯ç®¡çãã¦ããã ãã©ããã¿ã°ä»ãã¾ã§èªååã§ãããæåã§ããã
ã¡ãªã¿ã«ãã®åéæ¹æ³ã§ã¯ããããããªãåã®pixivã¢ã«ã¦ã³ãã¯ãã¡ãã§ãã
ãã¼ãã§ã¯ãPHP (PERFECT SERIES 3)
- ä½è : å°å·é大,ææ²¢è¡å¤ªé,æ©å£èª
- åºç社/ã¡ã¼ã«ã¼: æè¡è©è«ç¤¾
- çºå£²æ¥: 2010/11/12
- ã¡ãã£ã¢: 大åæ¬
- è³¼å ¥: 32人 ã¯ãªãã¯: 1,065å
- ãã®ååãå«ãããã° (59件) ãè¦ã