Nyon-stream - A python script that uses webtorrent to stream nyaa videos directly to mpv

Overview

nyon-stream

A rather shitty script that uses webtorrent to stream nyaa videos directly to mpv.

Demo

nyon_demo.mp4

usage

python3 nyaascraperpy <search for nyaa>

info

For now the script only works on Linux with dmenu and webtorrent (webtorrent-cli) installed.

It's really not hard to make it compatible with windows but i'll just let someone do it for me.

dependencies

python dependencies

BeautifulSoup
requests
dmenu

external dependencies

dmenu (https://archlinux.org/packages/community/x86_64/dmenu/)
webtorrent (https://aur.archlinux.org/packages/webtorrent-cli)

config

You can edit the 16th line of the script to have it scrap default/danger (white/red) entries on nyaa

You might also like...
A wrapper for aqquiring Choice Coin directly through a Python Terminal. Leverages the TinyMan Python-SDK.

CHOICE_TinyMan_Wrapper A wrapper that allows users to acquire Choice Coin directly through their Terminal using ALGO and various Algorand Standard Ass

Simple python program to execute terminal commands on telegram chats directly.
Simple python program to execute terminal commands on telegram chats directly.

Small python code which can be handy when using telegram and you don't want to use VPS again and again. By configuring the code in your VPS, You can execute commands and get your output within telegram. It can also be very useful in performing Recon.

`python-jamf` is a library for connecting to a Jamf Server that maps directly to the Jamf Pro Classic API.
`python-jamf` is a library for connecting to a Jamf Server that maps directly to the Jamf Pro Classic API.

`python-jamf` is a library for connecting to a Jamf Server that maps directly to the Jamf Pro Classic API. It is the basis for the `jctl` tool to automate patch management & packages and many other items.

💀 The first raid tool of its kind. Inject Deadcord and raid servers directly from the Discord client.
💀 The first raid tool of its kind. Inject Deadcord and raid servers directly from the Discord client.

💀 Deadcord The next upcoming Discord raid tool, the best for free. 🎉 Early Beta Released We have released an early version of Deadcord, please keep

🔍 📊 Look up information about anime, manga and much more directly in Discord!
🔍 📊 Look up information about anime, manga and much more directly in Discord!

AniSearch The source code of the AniSearch Discord Bot. Contribute You have an idea or found a bug? Open a new issue with detailed explanation. You wa

Picot - A discord bot made to fetch images from Pexels and unsplash API and provide raw images directly in channels

Picot A discord bot made to fetch images from Pexels and unsplash API and provid

 A bot to view Garfield comics directly from Discord and get updates of the comics automatically
A bot to view Garfield comics directly from Discord and get updates of the comics automatically

Garfield-Bot A bot to view Garfield comics directly from Discord and get updates of the comics automatically. Instructions to use the bot: Invite the

Discord Mass Report script that uses multiple tokens

Discord-Mass-Report Discord Mass Report script that uses multiple tokens, full credits to https://github.com/hoki0/Discord-mass-report who made it in

A simple script that will watch a stream for you and earn the channel points.
A simple script that will watch a stream for you and earn the channel points.

Credits Main idea: https://github.com/gottagofaster236/Twitch-Channel-Points-Miner Bet system (Selenium): https://github.com/ClementRoyer/TwitchAutoCo

Comments
  • error while running the script

    error while running the script

    I am running zorin os and have installed all the dependencies as follows: Installed dmenu using pip3 install dmenu Installed webtorrent from the official website using deb package Rest all the dependencies were already met Still I got the following error.

    Traceback (most recent call last):
      File "/home/w3goyal/anaconda3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 699, in urlopen
        httplib_response = self._make_request(
      File "/home/w3goyal/anaconda3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 382, in _make_request
        self._validate_conn(conn)
      File "/home/w3goyal/anaconda3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
        conn.connect()
      File "/home/w3goyal/anaconda3/lib/python3.8/site-packages/urllib3/connection.py", line 411, in connect
        self.sock = ssl_wrap_socket(
      File "/home/w3goyal/anaconda3/lib/python3.8/site-packages/urllib3/util/ssl_.py", line 428, in ssl_wrap_socket
        ssl_sock = _ssl_wrap_socket_impl(
      File "/home/w3goyal/anaconda3/lib/python3.8/site-packages/urllib3/util/ssl_.py", line 472, in _ssl_wrap_socket_impl
        return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
      File "/home/w3goyal/anaconda3/lib/python3.8/ssl.py", line 500, in wrap_socket
        return self.sslsocket_class._create(
      File "/home/w3goyal/anaconda3/lib/python3.8/ssl.py", line 1040, in _create
        self.do_handshake()
      File "/home/w3goyal/anaconda3/lib/python3.8/ssl.py", line 1309, in do_handshake
        self._sslobj.do_handshake()
    ConnectionResetError: [Errno 104] Connection reset by peer
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/home/w3goyal/anaconda3/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
        resp = conn.urlopen(
      File "/home/w3goyal/anaconda3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 755, in urlopen
        retries = retries.increment(
      File "/home/w3goyal/anaconda3/lib/python3.8/site-packages/urllib3/util/retry.py", line 532, in increment
        raise six.reraise(type(error), error, _stacktrace)
      File "/home/w3goyal/anaconda3/lib/python3.8/site-packages/urllib3/packages/six.py", line 734, in reraise
        raise value.with_traceback(tb)
      File "/home/w3goyal/anaconda3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 699, in urlopen
        httplib_response = self._make_request(
      File "/home/w3goyal/anaconda3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 382, in _make_request
        self._validate_conn(conn)
      File "/home/w3goyal/anaconda3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
        conn.connect()
      File "/home/w3goyal/anaconda3/lib/python3.8/site-packages/urllib3/connection.py", line 411, in connect
        self.sock = ssl_wrap_socket(
      File "/home/w3goyal/anaconda3/lib/python3.8/site-packages/urllib3/util/ssl_.py", line 428, in ssl_wrap_socket
        ssl_sock = _ssl_wrap_socket_impl(
      File "/home/w3goyal/anaconda3/lib/python3.8/site-packages/urllib3/util/ssl_.py", line 472, in _ssl_wrap_socket_impl
        return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
      File "/home/w3goyal/anaconda3/lib/python3.8/ssl.py", line 500, in wrap_socket
        return self.sslsocket_class._create(
      File "/home/w3goyal/anaconda3/lib/python3.8/ssl.py", line 1040, in _create
        self.do_handshake()
      File "/home/w3goyal/anaconda3/lib/python3.8/ssl.py", line 1309, in do_handshake
        self._sslobj.do_handshake()
    urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "nyaascraper.py", line 63, in <module>
        torrents = getTorrents(f"{base_url}&q={query}")
      File "nyaascraper.py", line 29, in getTorrents
        page_html = requests.get(page_url)
      File "/home/w3goyal/anaconda3/lib/python3.8/site-packages/requests/api.py", line 76, in get
        return request('get', url, params=params, **kwargs)
      File "/home/w3goyal/anaconda3/lib/python3.8/site-packages/requests/api.py", line 61, in request
        return session.request(method=method, url=url, **kwargs)
      File "/home/w3goyal/anaconda3/lib/python3.8/site-packages/requests/sessions.py", line 542, in request
        resp = self.send(prep, **send_kwargs)
      File "/home/w3goyal/anaconda3/lib/python3.8/site-packages/requests/sessions.py", line 655, in send
        r = adapter.send(request, **kwargs)
      File "/home/w3goyal/anaconda3/lib/python3.8/site-packages/requests/adapters.py", line 498, in send
        raise ConnectionError(err, request=request)
    requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
    

    Please help me in solving this issue

    opened by TheRealTechWiz 6
Owner
null
Fetch torrent links from nyaa, according to releases by smoke index.

Nyaa - Smoke's index torrent fetcher Description This script parses the local (or online) anime release index (csv format) made by Big Smoke. And uses

Dinank 21 Jun 8, 2022
Telegram bot to stream videos in telegram voicechat for both groups and channels. Supports live strams, YouTube videos and telegram media.

Telegram VCVideoPlayBot An Telegram Bot By @ZauteKm To Stream Videos in Telegram Voice Chat. NOTE: Make sure you have started a VoiceChat in your Grou

Zaute 20 Oct 21, 2022
Telegram bot to stream videos in telegram voicechat for both groups and channels. Supports live strams, YouTube videos and telegram media.

Telegram bot to stream videos in telegram voicechat for both groups and channels. Supports live strams, YouTube videos and telegram media.

SUBIN 449 Dec 27, 2022
An open souce video/music streamer based on MPV and piped.

?? Harmony Music An easy way to stream videos or music from Youtube from the command line while regaining your privacy. ?? Table Of Contents ❔ What's

Zingy Tomato 16 Nov 15, 2022
An Telegram Bot By @AsmSafone To Stream Videos in Telegram Voice Chat. This is Also The Source Code of The Bot Which is Being Used In @SafoTheBot Group! ❤️

Telegram Video Player Bot (Beta) An Telegram Bot By @AsmSafone To Stream Videos in Telegram Voice Chat. Special Features Supports Live Streaming From

SAF ONE 206 Jan 3, 2023
A Telegram Bot To Stream Videos in Telegram Voice Chat.

Video Stream X Bot Telegram bot project for streaming video on telegram video chat, powered by tgcalls and pyrogram Deploy to Heroku ??‍?? The easy wa

Mⷨoͦns͛ᴛⷮeͤrͬ Zeͤrͬoͦ 13 Dec 5, 2022
Telegram bot to stream videos in telegram voicechat for both groups and channels

Telegram bot to stream videos in telegram voicechat for both groups and channels. Supports live streams, YouTube videos and telegram media. With record stream support, Schedule streams, and many more.

ALBY 9 Feb 20, 2022
Telegram bot to stream videos in telegram voicechat for both groups and channels.

Telegram bot to stream videos in telegram voicechat for both groups and channels. Supports live streams, YouTube videos and telegram media. With record stream support, Schedule streams, and many more.

SOCIAL MECHANIC 4 Nov 13, 2022
Telegram bot to stream videos in telegram Voice Chat for both groups and channels

Telegram bot to stream videos in telegram Voice Chat for both groups and channels. Supports live steams, YouTube videos and telegram media. Supports scheduling streams, recording and many more.

Akki ThePro 2 Sep 11, 2022