Skip to content

Instantly share code, notes, and snippets.

View PRO-2684's full-sized avatar
🪄
Making the world a better place

PRO PRO-2684

🪄
Making the world a better place
View GitHub Profile
@PRO-2684
PRO-2684 / readme.md
Created December 13, 2023 15:11
Self-use blacklist for browser plugin [uBlacklist](https://iorate.github.io/ublacklist/docs)

This gist contains my self-use blacklist for browser plugin uBlacklist.

Each website in this list satisfies at lease one of the following criteria:

  • Annoying
    • Contains unacceptable ads / too annoying pop-ups
  • Needs login to see full article
  • Low quality content
    • Simply machine translate other websites
  • Wrong / misleading content
@PRO-2684
PRO-2684 / meijuwo.py
Created January 4, 2023 14:39
Bulk download teleplays at meijuwo.
from requests import Session
from re import match, search
from bs4 import BeautifulSoup as bs
from os import system, chdir
class Teleplay:
def __init__(self, url: str) -> None:
'''Initialize a teleplay. `url` be like: `https://www.meijuwo.net/play/5940-1-1/`.'''
m = match(r'(https://www.meijuwo.net/play/\d+-\d+-)\d+', url)
🌞 Morning 33 commits ██▉░░░░░░░░░░░░░░░░░░ 13.8%
🌆 Daytime 81 commits ███████░░░░░░░░░░░░░░ 33.9%
🌃 Evening 125 commits ██████████▉░░░░░░░░░░ 52.3%
🌙 Night 0 commits ░░░░░░░░░░░░░░░░░░░░░ 0.0%