PHP implements the method of grabbing Thunder VIP accounts based on the collection class Snoopy

墨辰丷
Release: 2023-03-30 16:24:02
Original
2066 people have browsed it

This article mainly introduces the method of grabbing Thunder VIP accounts in PHP based on the collection class Snoopy. Interested friends can refer to it. I hope it will be helpful to everyone.

The details are as follows:

I saw @Jinn_Wei’s Python version of grabbing accounts, so I wrote a PHP version
PS1: The code has not been optimized, only Realized the basic functions
PS2: Snoopy is used in the code
PS3: Test address: http://xunlei.kphcdr.com

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); //匹配出需要的内容 $pattern = '/^迅雷会员账号|迅雷共享账号+[a-zA-Z0-9_]{4,15}+:+[0-9]+爱密码分享密码+[a-zA-Z0-9_]{4,20}\s/'; preg_match_all($pattern,$text,$return); foreach($return[0] as $a) { echo $a; echo '
'; }
Copy after login

Summary: The above is this The entire content of this article is hoped to be helpful to everyone's study.

Related recommendations:

ob function buffering mechanism in php

php method for recursive operations on files

How to operate database with php combined with session

The above is the detailed content of PHP implements the method of grabbing Thunder VIP accounts based on the collection class Snoopy. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!