猫史档案馆


【Python作品分享】黑客爬虫【作品秀】

用户:无尽的拉格朗日点无尽的拉格朗日点查看:0 回复:2 评论:0 创建时间:2022-01-28T20:38:48


【作品展示】

center_image

 

【作品介绍】

可以爬任何网站,

因为我有强制爬取(浏览器伪装)功能,

但如果你没有驱动,

呢不能怪我。

 

【作品源代码】

from flask import Flask, render_template, request, redirect
app = Flask(__name__)


@app.route('/')
def index():
    return render_template('index.html')


@app.route("/search")
def search():
    word = request.values.get("word")
    url = "https://cn.喵/search?q="+word
    return redirect(url)


app.run()

 

【提示】

部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:

https://python.codemao.cn


回复

上一页1 页 / 共 1下一页
10cKYouse1f10cKYouse1f

抱歉,这不是黑客,但您的作品依旧远超他人

点赞0


评论


testifytestify

爬虫萌新表示看不到

点赞0


评论