├── __init__.py ├── m ├── __init__.py └── views.py ├── api ├── __init__.py └── views.py ├── detail ├── __init__.py └── views.py ├── page ├── __init__.py └── views.py ├── search ├── __init__.py └── views.py ├── _config ├── __init__.py └── devconfig.py ├── transfer ├── __init__.py ├── BTL.py ├── views.py └── bencode.py ├── vodplay ├── __init__.py └── views.py ├── static ├── favicon.ico ├── images │ ├── logo.png │ ├── loading.gif │ └── magnet.png ├── img │ ├── glyphicons-halflings.png │ └── glyphicons-halflings-white.png ├── css │ └── bootstrap-fileupload.min.css └── js │ ├── bootstrap-fileupload.min.js │ ├── bootstrap.min.js │ └── jquery-1.8.2.min.js ├── README.md ├── database.py ├── .gitignore ├── templates ├── 404.html ├── page │ ├── about.html │ └── faq.html ├── vodplay │ ├── play_prepare.html │ ├── play.html │ └── index.html ├── transfer │ ├── indexm2t.html │ └── indext2m.html ├── search │ ├── index.html │ └── search_list.html ├── api │ └── index.html ├── m │ ├── show.html │ └── index.html ├── index.html ├── detail │ └── single_result.html └── base.html ├── .settings └── org.eclipse.core.resources.prefs ├── utils.py └── app.py /__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /m/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /api/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /detail/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /page/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /search/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /_config/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /transfer/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vodplay/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /transfer/BTL.py: -------------------------------------------------------------------------------- 1 | class BTFailure(Exception): 2 | pass 3 | -------------------------------------------------------------------------------- /static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlmoment/Magnet-Links-Search-Engine/HEAD/static/favicon.ico -------------------------------------------------------------------------------- /static/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlmoment/Magnet-Links-Search-Engine/HEAD/static/images/logo.png -------------------------------------------------------------------------------- /static/images/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlmoment/Magnet-Links-Search-Engine/HEAD/static/images/loading.gif -------------------------------------------------------------------------------- /static/images/magnet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlmoment/Magnet-Links-Search-Engine/HEAD/static/images/magnet.png -------------------------------------------------------------------------------- /static/img/glyphicons-halflings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlmoment/Magnet-Links-Search-Engine/HEAD/static/img/glyphicons-halflings.png -------------------------------------------------------------------------------- /static/img/glyphicons-halflings-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zlmoment/Magnet-Links-Search-Engine/HEAD/static/img/glyphicons-halflings-white.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | It's a magnet links search engine built with Python. 2 | 3 | You can see the demo here: [Mgnt.me](http://mgnt.me) (This link is no longer available) 4 | -------------------------------------------------------------------------------- /database.py: -------------------------------------------------------------------------------- 1 | import _mysql 2 | 3 | def getConn(): 4 | try: 5 | conn = _mysql.connect(host='localhost', user='root', passwd='', db='mgnt', port=3306) 6 | except Exception, e: 7 | print "Failed connection!", e 8 | return 9 | return conn -------------------------------------------------------------------------------- /_config/devconfig.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # encoding: utf-8 3 | 4 | # site inform 5 | SITE_TITLE = 'MGNT.me' 6 | SITE_DESC = u'磁力链接搜索引擎,云播放,磁连接短网址,磁性链接转换,磁性连接资源下载。' 7 | 8 | # This is a config file for development 9 | DEBUG = True 10 | 11 | SECRET_KEY = 'secret-key-for-development' 12 | 13 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.py[cod] 2 | 3 | # C extensions 4 | *.so 5 | 6 | # Packages 7 | *.egg 8 | *.egg-info 9 | dist 10 | build 11 | eggs 12 | parts 13 | bin 14 | var 15 | sdist 16 | develop-eggs 17 | .installed.cfg 18 | lib 19 | lib64 20 | 21 | # Installer logs 22 | pip-log.txt 23 | 24 | # Unit test / coverage reports 25 | .coverage 26 | .tox 27 | nosetests.xml 28 | 29 | # Translations 30 | *.mo 31 | 32 | # Mr Developer 33 | .mr.developer.cfg 34 | .project 35 | .pydevproject 36 | -------------------------------------------------------------------------------- /page/views.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | from flask import Blueprint 4 | from flask import render_template 5 | 6 | app = Blueprint('page', __name__) 7 | 8 | @app.route('/', methods=['GET']) 9 | @app.route('', methods=['GET']) 10 | @app.route('/about', methods=['GET']) 11 | @app.route('/about/', methods=['GET']) 12 | def about(): 13 | return render_template("/page/about.html") 14 | 15 | @app.route('/faq', methods=['GET']) 16 | @app.route('/faq/', methods=['GET']) 17 | def faq(): 18 | return render_template("/page/faq.html") -------------------------------------------------------------------------------- /templates/404.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | 3 | {% block container %} 4 | 5 | {% endblock%} 6 | 7 | {% block footer %} 8 | 14 | {% endblock%} 15 | 16 | -------------------------------------------------------------------------------- /templates/page/about.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | 3 | {% block windowtitle %} 4 | 关于 MGNT.me 5 | {% endblock%} 6 | {% block container %} 7 |
玛格磁力搜索(MGNT.me)致力于给用户提供一个开放、自由的互联网资源分享、搜索平台,本站不保存任何与资源有关的文件,所有资源均索引自互联网。
16 | 17 |本站所有资源信息均从互联网搜索而来,本站不对显示的内容承担责任。本站也不保存有任何可直接下载的文件。
23 |本站的云播放功能仅用于带宽测试,本站不保存任何影视文件,所有影视文件均由迅雷网络提供。
24 |本站为非盈利性网站,请勿将本站资源用于商业用途。
25 |感谢以下开源平台和产品
31 |如有任何问题请与 mgnt.me#gmail.com(将#换成@) 联系。 43 |
简单的说:类似下面这样以“magnet:?”开头的字符串,就是一条“磁力链接”:magnet:?xt=urn:sha1:YNCKHTQCWBTRNJIV4WNAE52SJUQCZO5C】
18 |确切的说:“磁力链接”的主要作用是识别【能够通过“点对点技术(即:P2P)”下载的文件】。
19 |这种链接是通过不同文件内容的Hash结果生成一个纯文本的“数字指纹”,来识别文件的。而不是基于文件的位置或者名称(例如:http://www.123.com/123.exe)。
20 |这就类似生活中消费品包装上常见的条码。不同的是这个“数字指纹”可以被任何人从任何文件上生成,这也就注定了“磁力链接”不需要任何“中心机构”的支持(例如:BT Tracker服务器),且识别准确度极高。
21 |因此任何人都可以生成一个Magnet链接并确保通过该链接下载的文件准确无误。
22 |如下客户端均支持磁力链接下载:
29 |云点播使用的是迅雷云播放平台,如果遇到无法播放的情况,请稍等后刷新页面重新加载。
45 |“磁力链接”是通过DHT网络来索引需要下载的文件的,因此在某些环境下可能出现“获取磁力链接信息”时间较长,或者获取失败的问题。由于目前相关问题经验的积累很少,因此除了重试还没有明确的解决办法。
52 | 53 |
27 |
37 |
38 | 如果网页10秒钟之后没有跳转,请点击这里继续。
49 |请将您得到的磁力链接粘贴到下方的输入框中,然后点击下载即可。有些链接可能会提示找不到种子文件。
42 | 58 |
19 | 磁力链资源搜索引擎
21 | 22 | 23 | 24 |亲,您还可以从任何页面的右上方直接搜索哦~
49 |目前索引资源数:4661177
50 | 51 | 52 | 67 | 68 |我们从DHT网络, thepiratebay.se, fenopy.eu, btjunkie.org, h33t.com, torrentfunk.com, torlock.com, isohunt.com, kat.ph, btscene.eu, torrentreactor.net, extratorrent.com, bitsnoop.com, mvgroup.org, bt-chat.com和其它300多个资源站收集资源并提供资源的磁力链接和种子(在线云播放功能火热测试中)。
69 | 70 |@2013
71 | 72 | 75 | 76 | {% endblock%} -------------------------------------------------------------------------------- /templates/search/search_list.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | 3 | {% block windowtitle %} 4 | {{result.searchword}}结果列表 5 | {% endblock%} 6 | 7 | 8 | {% block container %} 9 |共找到 {{result.total}} 条结果
13 || 名称 | 22 |分类 | 23 |文件大小 | 24 |种子数 | 25 |下载数 | 26 ||||||
|---|---|---|---|---|---|---|---|---|---|
| {{item.title}} | 34 |{{item.category}} | 35 |{{size}} GB | 36 |{{item.seeds}} | 37 |{{item.leechs}} | 38 | {% else %} 39 | {% set size = '%4.2f' % (item.torrent_size/1048576) %} 40 |{{item.title}} | 41 |{{item.category}} | 42 |{{size}} MB | 43 |{{item.seeds}} | 44 |{{item.leechs}} | 45 | {% endif %} 46 |
| 本站资源均来自网络,本站不保存任何实际的下载文件,也不对任何资源负责。 | |||||||||
如果您喜欢,记得点击左边的分享告诉你的好友们哦~
29 |注意! 如果出现“服务器忙”或302错误的提示,请点击这里重新加载。
30 |本页面永久地址:
69 | 70 | 83 | 84 |请注意,您需要在api请求中包括您的apikey,请查看本页下方说明如何获得apikey
12 |获取某关键字的搜索结果,结果包括如下关键字
19 |示例
28 |搜索 spiderman 的搜索结果:
29 | 30 |注意! 您必须在GET方式传入磁力链接时将磁力链接地址进行URL编码,否则无法生成。
37 |例如,可以将以下长磁力连接:
38 | 41 |转换为:
42 |43 | http://mgnt.me/m/pzFUVL 44 |
45 |示例
46 |您必须加本站为友情链接,才能申请到具有永久访问权限的apikey。
57 |添加完毕后,请将页面地址和网站信息发送到 mgnt.me#gmail.com(请将#换成@)
58 | 59 | {% endblock%} -------------------------------------------------------------------------------- /templates/m/show.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | 3 | {% block windowtitle %} 4 | 磁力链短网址 5 | {% endblock%} 6 | 7 | {% block container %} 8 | 9 | 10 | {% if error %} 11 | 12 | {% with messages = get_flashed_messages() %} 13 | {% if messages %} 14 |
34 | 我们致力于建造最大的磁力链资源搜索引擎
35 | 36 | 48 | {% with messages = get_flashed_messages() %} 49 | {% if messages %} 50 |目前索引资源数:4672691
59 | 74 |请输入磁力链接的完整地址,然后点击生成磁力短网址:
67 |你可曾因为那么那么那么长的磁力链接而烦恼?你都不好意思给好友发过去有没有!有了短网址服务,您就可以将那么那么那么长的磁力链接轻松地保存、分享了~自己看着也舒心哦
91 |想给好友传种子文件...先利用Torrent转磁力链接服务把种子转成磁力链接,再发送给好友磁力短网址,摆脱传文件的烦恼~
92 |嘘...宅男们有福了,不解释..
93 |文件大小:{{item.size}}
48 | 种子数/下载数:{{item.seeds}} / {{item.leechs}}
49 | 特征码:{{item.hashid}}
磁力链接地址(可直接复制到相应客户端下载,或者点击下面的下载按钮):
51 | 52 | 53 |磁力特征值:{{item.hashid}}
46 | 47 |磁力链接地址(可直接复制到相应客户端下载,或者点击下面的下载按钮):
48 | 49 |50 | 我们还为您生成了本磁力链的短网址: 51 | 52 | 点击打开 53 |
54 |请选择种子文件,然后点击转换按钮稍等片刻即可得到结果。本站不保存您的种子文件,分析完后将立即删除。
78 | 129 |您可以使用三种云播放方式:
32 | 33 |请输入资源地址,支持ed2k、magnet、thunder等开头的地址:
58 |您可以上传视频的种子文件,然后点击播放,便可进行在线云播放。
76 |请输入种子资源的特征码(HASH值):
124 || t |