admin管理员组

文章数量:1130349

因为我闲来无事,所以准备找一部电影来看看。 然后我找到了种子搜索网站,可是这类网站的弹窗广告太多,搞得我很烦。所以我就想着自己用python写一个自动获取磁力链接的脚本。

整个大概写了半个小时。

代码如下

import requests

import re

from bs4 import BeautifulSoup

url="*种子的网站*/"

header={

"Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",

"Accept-Encoding":"gzip, deflate",

"Accept-Language":"zh-CN,zh;q=0.8",

"Cache-Control":"max-age=0",

"Connection":"keep-alive",

"Content-Length":"65",

"Content-Type":"application/x-www-form-urlencoded",

"Host":"btkitty.bid",

"Origin":"*种子的网站*",

"Referer":"*种子的网站*/",

"Upgrade-Insecure-Requests":"1",

"User-Agent":"Mozilla/5.0 (Windows NT 10.0.14393; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2950.5 Safari/537.36"

}

while True:

word=input("输入搜索关键词:")

data={

"keyword"

因为我闲来无事,所以准备找一部电影来看看。 然后我找到了种子搜索网站,可是这类网站的弹窗广告太多,搞得我很烦。所以我就想着自己用python写一个自动获取磁力链接的脚本。

整个大概写了半个小时。

代码如下

import requests

import re

from bs4 import BeautifulSoup

url="*种子的网站*/"

header={

"Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",

"Accept-Encoding":"gzip, deflate",

"Accept-Language":"zh-CN,zh;q=0.8",

"Cache-Control":"max-age=0",

"Connection":"keep-alive",

"Content-Length":"65",

"Content-Type":"application/x-www-form-urlencoded",

"Host":"btkitty.bid",

"Origin":"*种子的网站*",

"Referer":"*种子的网站*/",

"Upgrade-Insecure-Requests":"1",

"User-Agent":"Mozilla/5.0 (Windows NT 10.0.14393; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2950.5 Safari/537.36"

}

while True:

word=input("输入搜索关键词:")

data={

"keyword"

本文标签: 磁力种子下载器方式链接