Giter Club home page Giter Club logo

m3u8.kit's Introduction

m3u8.kit


get requests by input url

依赖

  1. 谷歌
  • 驱动依赖
❯ chromedriver --version
ChromeDriver 99.0.4844.51

下载地址-npmmirror
下载地址-google

  • 浏览器依赖
❯ /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --version
Google Chrome 99.0.4844.51 

下载地址-github
下载地址-huaweicloud

  1. 火狐
  • 驱动依赖
❯ geckodriver --version
geckodriver 0.24.0 ( 2019-01-28)
  • 浏览器依赖
❯ /Applications/Firefox.app/Contents/MacOS/firefox --version
Mozilla Firefox 98.0.1

使用

1. 安装虚拟环境

> python3 -m venv venv
> source venv/bin/active
> pip install -r requirements.txt

2. 使用情况

  1. 直接 dump 所有请求 (or 加过滤) [推荐使用]
python dump.py http://waipian8.com/play/121461-2-1/ |grep m3u8
  1. 获取 m3u8 的请求地址 [推荐使用]
python m3u8.py http://waipian8.com/play/121461-2-1/ |grep m3u8
  1. 启动一个服务
# 运行服务
> python serve.py

# 测试请求
> curl -v http://localhost:8078/?url=https://icaqd.com/vodplay/343803-1-1.html

日志

  1. 火狐浏览器日志
tail -100f ./geckodriver.log
  1. 服务 browser-proxy 日志
tail -100f ./server.log

引用

  1. file-dump_har-py
  2. Supported platforms
  3. browserup-proxy-py

m3u8.kit's People

Contributors

zhanghuid avatar

Stargazers

 avatar

Watchers

 avatar  avatar

m3u8.kit's Issues

Getting error

I'm getting a "tools is not recognized" error in the log
py dump.py https://fmovies.to/movie/out-of-sight-y7nx/1-full Traceback (most recent call last): File "C:\Users\HP\source\repos\m3u8.kit\dump.py", line 17, in <module> pprint(get_har(url)) File "C:\Users\HP\source\repos\m3u8.kit\util.py", line 55, in get_har server.start() File "C:\Users\HP\AppData\Local\Programs\Python\Python310\lib\site-packages\browsermobproxy\server.py", line 122, in start raise ProxyServerError(message) browsermobproxy.exceptions.ProxyServerError: The Browsermob-Proxy server process failed to start. Check <_io.TextIOWrapper name='C:\\Users\\HP\\source\\repos\\m3u8.kit\\server.log' mode='w' encoding='cp1252'>for a helpful error message.

I would really appreciate it if you could help me

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.