Last active
March 31, 2018 15:20
-
-
Save ClsER/f1e367172901265962bb651081f950bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Using API player.trunguit.net | |
# -*- coding: utf8 -*- | |
#Khai báo thư viện cần thiết để sử dụng | |
import urllib3 | |
import json | |
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) | |
#Khai báo http để sử dụng request | |
http = urllib3.PoolManager() | |
#TẠO DANH SÁCH LỰA CHỌN CHO NGƯỜI DÙNG | |
#INTRODUCTION================================================================================================/* | |
print(""" | |
______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ | |
/_____/ /_____/ /_____/ /_____/ /_____/ /_____/ /_____/ /_____/ /_____/ /_____/ /_____/ /_____/ | |
_______ .__ .__ __________ ___ ___ | |
\ \ ____ | |__ |__| ____ _____\______ \_____ ____ / | \ __ __ ___.__. | |
/ | \ / ___\| | \| |/ __ \ / \| | _/\__ \ / _ \/ ~ \ | < | | ______ ______ | |
/ | \/ /_/ > Y \ \ ___/| Y Y \ | \ / __ \( <_> ) Y / | /\___ | /_____/ /_____/ | |
\____|__ /\___ /|___| /__|\___ >__|_| /______ /(____ /\____/ \___|_ /|____/ / ____| | |
\//_____/ \/ \/ \/ \/ \/ \/ \/ | |
______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ | |
/_____/ /_____/ /_____/ /_____/ /_____/ /_____/ /_____/ /_____/ /_____/ /_____/ /_____/ /_____/ | |
========================================================================================================= | |
Hỗ trợ get link các trang web sau, code được viết bởi thành viên của nhóm N2 - ProgrammingTeam ( 2018 ) = | |
1/ Facebook Video | 6/ Hentaiz.net ( 18+) | 11/ Javhd.pro (18+) | 16/ Onedrive.live.com = | |
2/ Animehay.tv | 7/ Heodam.tv (18+) | 12/ Javhd4k.com (18+) | 17/ Oppatv.com = | |
3/ Cliphunter.com (18+) | 8/ Iphim.vn | 13/ Javhihi.com (18+) | 18/ Phim14.net = | |
4/ Gogoanime.io | 9/ Jav555.net (18+) | 14/ Javhihi.in (18+) | 19/ Phim3s.pw = | |
5/ Haxhits.com | 10/Javfun.net (18+) | 15/ Mfilm.tv | 20/ Vung.tv = | |
=========================================== CẬP NHẬT THÊM ============================================== | |
21/ Youtube.com | 22/ Tv.zing.vn | 23/ Xphim.vn | 24/ Vuighe.net = | |
========================================================================================================== | |
""") | |
#=========================================================================================================/* | |
yourlink = input("Vui lòng nhập link cần get: ") | |
if ("http" or "https") not in yourlink: | |
print("Link không hợp lệ") | |
else: | |
res = http.request('GET','http://player.trunguit.net/get?url='+yourlink) | |
data = json.loads(res.data) | |
for mydata in data['data']: | |
for link in mydata['sources']: | |
print(link['file'],'|',link['label']) | |
print("=="*110) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment