Code Monkey home page Code Monkey logo

h-box's Introduction

H-BOX

DOWNLOAD from github or DOWNLOAD from gofile.io

中文 | English

H-BOX是什么?

h-box是一个将视频从porn网站下载到本地,并可以收藏播放管理的桌面应用软件,目前只有window端。

H-BOX介绍

  • 首页
    下载过的视频会在这里显示
    翻页功能,跳转功能,搜素功能,编辑功能,不多赘述。
  • 自带播放器
    点击首页的卡片弹出播放页面
    点击图片按钮会在后台生成视频预览图
    点击心形按钮收藏视频
    快进,音量调节
  • 收藏
    首页的收藏会在这里显示,点击同样可以播放
  • 标签
    给视频分类用
    新增按钮,编辑按钮,删除按钮,标题描述,背景图。
  • 浏览历史
    在首页播放过的视频记录在这里,点击同样可以播放,直接 跳转到上次播放点
  • 网络下载
    下载的前提在于你的网络能访问到这个网站,软件不需要配置代理。
    从网站下载的界面,想要下载视频只需要将播放页的链接复制到 输入框再点击回车即可。具体操作看下方gif。 !!!注意!!!
    记得点击最右边的同步按钮,会将你的chrome的用户数据同步到软件的目录下, 这样selenium在请求网站的时候很容易躲过一些验证码的侦察,像cloudflare验证, twitter则需要登录cooikes 验证才能下载视频,你在chrome登录后再同步到selenium 去请求twitter便是登录状态,很容易便能抓到视频链接
  • 设置
    语言切换目前支持中英文
    数据目录控制下载的视频存在哪里,必须是绝对路径。建议不要改这个,改了比较麻烦。
  • 规则解析
    解析规则通过域名来判断对应的规则,一个网站有多个域名则用','隔开。
    type 控制下载的是m3u8 链接还是mp4链接
    video 资源路径的正则匹配,多种资源则用',' 隔开 pic.re 封面的xpath 路径 pic.value 元素的值 ico 对应的图标 ...
    开发更多的规则类型,以及应用 请加入讨论组一起讨论学习😁 t.me/h-box
  • 最后
    志同道合欢迎一起交流。
  • 视频

    H-BOX的工作方式

  • h-box主要从目标网站获取三种东西,视频标题,视频封面,视频的资源链接。
  • h-box 获取视频链接并非像普通的爬虫一样解析html来获取资源链接,而是 通过监控网页发出的所有链接并通过规则中的正则匹配来获取资源。所以你完全 可以自己写规则来下载h-box中未支持的网站。标题与封面是通过解析html获取 但也是基于编写的规则,这很简单。目前支持的视频链接格式为m3u8与mp4。
  • h-box 使用selenium 工作方式为无头模式与非无头模式(界面可以选择), 一些网站在无头模式下根本无法加载出资源,只能选择非无头模式,手动触发网页发出视频链接。 这就是主要原理。

H-BOX的运行需要

  • chrome,chrome driver,ffmpeg。(chrome driver,ffmpeg)安装包中已经附带了这些。 如果chrome drive与你的chrome版本不符,请下载对应的驱动在安装目录替换。

V2.0.5 release

  • 支持多任务
  • 加快了解析速度
  • BUG fix

V2.0.4 release

  • 增加视频图标
  • BUG fix

V2.0.3 release

  • 优化91,pornhub,xvideos,xnxx 解析速度。
  • BUG fix -_-

V2.0.2 release

  • BUG fix

V2.0.1 release

新功能:

  • 支持20 站点解析
  • 新增同步chrome数据
  • BUG fix

V2.0.0 release

新功能:

  • 支持15+ 站点解析
  • 新的使用规则解析站点方式
  • BUG fix

h-box's People

Contributors

alishanjack avatar llphhl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

pxakerxp

h-box's Issues

after install on windows it cannot open .

Traceback (most recent call last):
File "main.py", line 4, in
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
File "spider.py", line 13, in
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
File "db.py", line 21, in
sqlite3.OperationalError: unable to open database file

h box error on win11

i get this error on windows 11

Traceback (most recent call last):
File "main.py", line 26, in
File "logging_init_.py", line 2003, in basicConfig
File "logging_init_.py", line 1146, in init
File "logging_init_.py", line 1175, in _open
PermissionError: [Errno 13] Permission denied: 'C:\Program Files (x86)\h-box\logfile.log'

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.