PHP implements the method of capturing the Thunder VIP account, and php captures the vip account. PHP implements the method of capturing the Thunder VIP account. php captures the vip account. This article describes how PHP captures the Thunder VIP account. Share it with you for your reference. The details are as follows: I have read the @ PHP method to capture the Thunder VIP account. php crawls the vip account.
This example describes how to capture the Thunder VIP account in PHP. Share it with you for your reference. The details are as follows:
I read the account captured by @ Jinn_Wei Python, so I wrote a PHP version.
PS1: the code is not optimized and only basic functions are implemented.
PS2: Snoopy is used in the code.
PS3: test address: http://xunlei.kphcdr.com
<? Php/*** capture the love password Thunder VIP account * @ author kphcdr@163.com */header ("Content-type: text/html; charset = UTF-8"); include 'Snoopy. php '; $ url = 'http: // response = new Snoopy (); $ result = $ snoopy-> fetchlinks ($ url)-> getResults (); foreach ($ result as $ key => $ val) {if (FALSE = strpos ($ val, 'thread -')) {unset ($ result [$ key]);} else {if (! Strpos ($ val, '-1-1.html ') {unset ($ result [$ key]) ;}}$ real = new Snoopy (); $ result = array_values (array_unique ($ result); $ text = $ real-> fetchtext ($ result [1])-> getResults (); $ text = iconv ('gbk', 'utf-8 // IGNORE ', $ text ); // match the required content $ pattern = '/^ Thunder member account | thunder sharing account + [a-zA-Z0-9 _] {} +: + [0-9] + password sharing + [a-zA-Z0-9 _] {4, 20} \ s/'; preg_match_all ($ pattern, $ text, $ return ); foreach ($ return [0] as $ a) {echo $ a; echo'
';}
Snoopy-1.2.3.tar.gz click here download site.
I hope this article will help you with php programming.
Examples in this article describe how PHP captures the Thunder VIP account. Share it with you for your reference. Details: Read @...