repo_full_name stringlengths 6 93 | repo_url stringlengths 25 112 | repo_api_url stringclasses 28
values | owner stringclasses 28
values | repo_name stringclasses 28
values | description stringclasses 28
values | stars int64 617 98.8k | forks int64 31 355 ⌀ | watchers int64 990 999 ⌀ | license stringclasses 2
values | default_branch stringclasses 2
values | repo_created_at timestamp[s]date 2012-07-24 23:12:50 2025-06-16 08:07:28 ⌀ | repo_updated_at timestamp[s]date 2026-02-23 15:23:15 2026-05-03 18:52:12 ⌀ | repo_topics listlengths 0 13 ⌀ | repo_languages unknown | is_fork bool 1
class | open_issues int64 3 104 ⌀ | file_path stringlengths 3 208 | file_name stringclasses 509
values | file_extension stringclasses 1
value | file_size_bytes int64 101 84k ⌀ | file_url stringclasses 627
values | file_raw_url stringclasses 627
values | file_sha stringclasses 624
values | language stringclasses 8
values | parsed_at stringdate 2026-05-04 01:12:36 2026-05-04 19:41:55 | text stringlengths 100 102k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | admin/weibo_admin/wsgi.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:30.732039 | import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "weibo_admin.settings")
application = get_wsgi_application()
|
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | admin/weibo_admin/settings.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:30.736643 | import os
import pymysql
pymysql.install_as_MySQLdb()
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = ')eh35!-%(@%o0q6unr8#a$44l6+&y14(5m#y&ug)-h@#usy=x3'
DEBUG = True
ALLOWED_HOSTS = [
'*',
]
INSTALLED_APPS = [
'suit',
'django.contrib.admin',
'django.contrib.a... |
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | admin/weibo_admin/view.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:30.737175 | from django.shortcuts import redirect
def index(request):
if not request.user.is_authenticated():
return redirect('/admin/login/?next=%s' % request.path)
else:
return redirect('/admin/') |
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | admin/weibo_config/admin.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:30.743949 | from django.contrib import admin
from .models import Keywords, LoginInFo, Seeds
class KeywordsAdmin(admin.ModelAdmin):
list_display = ('keyword', 'enable')
search_fields = ['keyword']
list_per_page = 20
class LoginInFoAdmin(admin.ModelAdmin):
list_display = ('name', 'password', 'enable')
search... |
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | admin/weibo_config/apps.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:30.749790 | from django.apps import AppConfig
class WeiboConfig(AppConfig):
name = 'weibo_config'
verbose_name = '微博配置'
|
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | admin/weibo_admin/urls.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:30.756192 | from django.conf import settings
from django.conf.urls import url
from django.contrib import admin
from django.conf.urls.static import static
from . import view
urlpatterns = [
url(r'^$', view.index),
url(r'^admin/', admin.site.urls)
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | admin/weibo_config/models.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:31.271672 | from django.db import models
class Keywords(models.Model):
keyword = models.CharField('关键词', max_length=200, unique=True)
enable = models.IntegerField('是否启用', default=1)
def __str__(self):
return self.keyword
class Meta:
db_table = 'keywords'
verbose_name = '关键词'
verb... |
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | admin/weibo_data/models.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:31.357063 | from django.db import models
class WbUser(models.Model):
uid = models.CharField('用户ID', max_length=20, unique=True)
name = models.CharField('昵称', max_length=200)
gender = models.IntegerField('性别', default=0)
birthday = models.CharField('生日', max_length=200)
location = models.CharField('所在地', max_l... |
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | admin/weibo_data/admin.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:31.358526 | from django.contrib import admin
from .models import WbUser, WeiboData
class ReadOnlyModelAdmin(admin.ModelAdmin):
actions = None
def get_readonly_fields(self, request, obj=None):
return self.fields or [f.name for f in self.model._meta.fields]
def has_add_permission(self, request):
retu... |
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | config/headers.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:31.380357 | import random
first_num = random.randint(55, 62)
third_num = random.randint(0, 3200)
fourth_num = random.randint(0, 140)
class FakeChromeUA:
os_type = [
'(Windows NT 6.1; WOW64)', '(Windows NT 10.0; WOW64)', '(X11; Linux x86_64)',
'(Macintosh; Intel Mac OS X 10_12_6)'
... |
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | config/create_all.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:31.381453 | import sys
# to work well inside config module or outsize config module
sys.path.append('..')
sys.path.append('.')
from db.tables import *
from db.basic import metadata
def create_all_table():
metadata.create_all()
if __name__ == "__main__":
create_all_table()
|
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | config/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:31.383094 | from .headers import (
headers, FakeChromeUA)
from .conf import (
get_db_args, get_redis_args, get_timeout, get_crawl_interal, get_excp_interal,
get_max_repost_page, get_max_search_page, get_max_home_page, get_max_comment_page,
get_max_retries, get_broker_and_backend, get_redis_master, get_code_usernam... |
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | config/conf.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:31.384497 | import os
import random
from pathlib import Path
from yaml import load
config_path = os.path.join(os.path.dirname(__file__), 'spider.yaml')
with open(config_path, encoding='utf-8') as f:
cont = f.read()
cf = load(cont)
def get_db_args():
return cf.get('db')
def get_redis_args():
return cf.get('redis... |
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | admin/weibo_data/apps.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:31.393245 | from django.apps import AppConfig
class WeiboDataConfig(AppConfig):
name = 'weibo_data'
verbose_name = '微博数据' |
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | db/basic.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:31.962101 | import os
from sqlalchemy import (
create_engine, MetaData)
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
from config import get_db_args
def get_engine():
args = get_db_args()
password = os.getenv('DB_PASS', args['password'])
connect_str = "{}+pymysq... |
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | db/dao.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:31.999687 | from sqlalchemy import text
from sqlalchemy.exc import IntegrityError as SqlalchemyIntegrityError
from pymysql.err import IntegrityError as PymysqlIntegrityError
from sqlalchemy.exc import InvalidRequestError
from .basic import db_session
from .models import (
LoginInfo, KeywordsWbdata, KeyWords, SeedIds, UserRela... |
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | db/redis_db.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:32.026563 | import json
import socket
import datetime
import redis
from redis.sentinel import Sentinel
from logger import crawler
from config import (
get_redis_args,
get_share_host_count,
get_running_mode,
get_cookie_expire_time
)
MODE = get_running_mode()
SHARE_HOST_COUNT = get_share_host_count()
REDIS_ARGS =... |
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | exceptions/exceptions.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:32.027661 | class CookieGenException(Exception):
"""
Failed to gen sub and subp cookies without login
"""
class Timeout(Exception):
"""
Function run timeout
"""
class LoginException(Exception):
"""
Login error for weibo login
"""
|
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | first_task_execution/comment_first.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:32.028672 | import sys
sys.path.append('.')
sys.path.append('..')
from tasks import execute_comment_task
if __name__ == '__main__':
execute_comment_task() |
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | db/models.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:32.030343 | import time
from .basic import Base
from .tables import *
class LoginInfo(Base):
__table__ = login_info
class User(Base):
__table__ = wbuser
def __init__(self, uid):
self.uid = uid
class SeedIds(Base):
__table__ = seed_ids
class KeyWords(Base):
__table__ = keywords
class WeiboData... |
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | decorators/decorators.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:32.031572 | import time
import collections
from functools import wraps, partial
from traceback import format_tb
from db.basic import db_session
from logger import (
parser, crawler, storage, other)
from utils import KThread
from exceptions import Timeout
def timeout_decorator(func):
@wraps(func)
def time_limit(*args... |
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | decorators/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:32.077138 | from .decorators import (
timeout_decorator, db_commit_decorator, parse_decorator, timeout, retry
) |
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | db/tables.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:32.077799 | from sqlalchemy import (
Table, Column, INTEGER, String, Text, TIMESTAMP, DateTime, func)
from .basic import metadata
# login table
login_info = Table("login_info", metadata,
Column("id", INTEGER, primary_key=True, autoincrement=True),
Column("name", String(100), unique=True)... |
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | first_task_execution/home_first.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:32.764829 | import sys
sys.path.append('.')
sys.path.append('..')
from tasks import execute_home_task
if __name__ == '__main__':
execute_home_task()
|
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | first_task_execution/dialogue_first.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:32.765572 | import sys
sys.path.append('.')
sys.path.append('..')
from tasks import execute_dialogue_task
if __name__ == '__main__':
execute_dialogue_task()
|
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | first_task_execution/repost_first.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:32.767520 | import sys
sys.path.append('.')
sys.path.append('..')
from tasks import execute_repost_task
if __name__ == '__main__':
execute_repost_task()
|
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | first_task_execution/user_first.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:32.768934 | import sys
sys.path.append('.')
sys.path.append('..')
from tasks import execute_user_task
if __name__ == '__main__':
execute_user_task()
|
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | logger/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:32.769837 | from .log import crawler, parser, other, storage
__all__ = ['crawler', 'parser', 'other', 'storage']
|
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | first_task_execution/praise_first.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:32.833334 | import sys
sys.path.append('.')
sys.path.append('..')
from tasks import execute_praise_task
if __name__ == '__main__':
execute_praise_task() |
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | first_task_execution/login_first.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:32.878689 | import sys
sys.path.append('.')
sys.path.append('..')
from tasks import execute_login_task
if __name__ == '__main__':
# you should execute this file, because celery timer will execute login delayed
execute_login_task()
|
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | logger/log.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:32.881325 | import os
import logging
import logging.config as log_conf
log_dir = os.path.dirname(os.path.dirname(__file__))+'/logs'
if not os.path.exists(log_dir):
os.mkdir(log_dir)
log_path = os.path.join(log_dir, 'weibo.log')
log_config = {
'version': 1.0,
'formatters': {
'detail': {
'format': ... |
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | first_task_execution/search_first.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:32.898463 | import sys
sys.path.append('.')
sys.path.append('..')
from tasks import execute_search_task
if __name__ == '__main__':
execute_search_task()
|
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | login/login.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:33.352287 | import re
import os
import rsa
import math
import time
import random
import base64
import binascii
from urllib.parse import quote_plus
import requests
from config import headers
from utils import (code_verificate, getip)
from page_parse import is_403
from exceptions import LoginException
from db.redis_db import Cooki... |
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | page_get/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:33.352771 | from .basic import get_page
from .status import get_cont_of_weibo
from .user import (get_profile, get_fans_or_followers_ids, get_user_profile,
get_newcard_by_name)
|
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | page_get/user.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:33.518358 | import json
import re
import requests
import time
from urllib.parse import quote
from db.models import User
from logger import storage
from .basic import get_page
from page_parse import is_404
from config import get_samefollow_uid
from db.dao import (
UserOper, SeedidsOper)
from page_parse.user import (
enterp... |
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | page_parse/basic.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:33.519226 | from bs4 import BeautifulSoup
from decorators import parse_decorator
@parse_decorator(False)
def is_404(html):
soup = BeautifulSoup(html, 'html.parser')
try:
# request is redirected by js code
if "http://weibo.com/sorry?pagenotfound" in html:
return True
elif soup.title.te... |
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | login/cookies_gen.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:33.557205 | import re
import json
import time
import random
from urllib import parse
import requests
from config import FakeChromeUA
from decorators import retry
from exceptions import CookieGenException
PASSPORT_URL = 'https://passport.weibo.com/visitor/visitor?entry=miniblog&a=enter&url={}&domain=.wei' \
'bo.co... |
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | page_get/basic.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:33.557746 | import os
import time
import signal
import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning
from config import headers
from logger import crawler
from login import get_cookies
from db.dao import LoginInfoOper
from utils import (send_email, getip)
from db.redis_db import (
Urls, Coo... |
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | page_get/status.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:33.558341 | import json
from utils import text_filter
from .basic import get_page
BASE_URL = 'https://weibo.com/p/aj/mblog/getlongtext?mid={}'
def get_cont_of_weibo(mid):
"""
:param mid: weibo's mid
:return: all cont of the weibo
"""
url = BASE_URL.format(mid)
html = get_page(url, auth_level=2, is_ajax... |
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | page_parse/dialogue.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:33.669587 | import json
from bs4 import BeautifulSoup
from logger import parser
from db.models import WeiboDialogue
from decorators import parse_decorator
from .comment import get_html_cont
@parse_decorator([])
def get_comment_id(html, wb_id):
"""
获取评论列表
:param html:
:param wb_id:
:return:
"""
cont ... |
SpiderClub/weibospider | https://github.com/SpiderClub/weibospider | null | null | null | null | 4,791 | null | null | mit | null | null | null | null | null | null | null | page_parse/comment.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:33.782196 | import json
from bs4 import BeautifulSoup
from logger import parser
from db.models import WeiboComment
from decorators import parse_decorator
from utils import parse_emoji
from page_get import get_profile
import datetime
import re
@parse_decorator('')
def get_html_cont(html):
cont = ''
data = json.loads(html,... |
listen1/listen1 | https://github.com/listen1/listen1 | null | null | null | null | 4,790 | null | null | mit | null | null | null | null | null | null | null | listen1/handlers/douban.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:43.529814 | # coding=utf8
import glob
import json
import logging
import os
import os.path
import urllib
import uuid
import tornado.httpclient
from handlers.base import BaseHandler
from settings import MEDIA_ROOT
from replay.douban import get_captcha_token, \
login, remove_douban_token_ck, get_douban_token_ck, set_douban_toke... |
listen1/listen1 | https://github.com/listen1/listen1 | null | null | null | null | 4,790 | null | null | mit | null | null | null | null | null | null | null | listen1/app.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:43.531917 | #!/usr/bin/env python
import tornado.httpserver
import tornado.ioloop
import tornado.web
from tornado.options import options
from settings import settings
from urls import url_patterns
class TornadoBoilerplate(tornado.web.Application):
def __init__(self):
tornado.web.Application.__init__(self, url_patter... |
listen1/listen1 | https://github.com/listen1/listen1 | null | null | null | null | 4,790 | null | null | mit | null | null | null | null | null | null | null | listen1/handlers/home.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:43.532751 | # coding=utf8
import logging
from handlers.base import BaseHandler
logger = logging.getLogger('listenone.' + __name__)
class HomeHandler(BaseHandler):
def get(self):
self.render("index.html")
|
listen1/listen1 | https://github.com/listen1/listen1 | null | null | null | null | 4,790 | null | null | mit | null | null | null | null | null | null | null | listen1/handlers/base.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:43.549843 | # coding=utf8
import json
import tornado.web
import logging
logger = logging.getLogger('listenone.' + __name__)
class BaseHandler(tornado.web.RequestHandler):
"""A class to collect common handler methods - all other handlers should
subclass this one.
"""
def load_json(self):
"""Load JSON fr... |
listen1/listen1 | https://github.com/listen1/listen1 | null | null | null | null | 4,790 | null | null | mit | null | null | null | null | null | null | null | listen1/environment.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:43.551078 | """Add the boilerplate's directories to Python's site-packages path.
"""
import os
import site
import sys
ROOT = os.path.dirname(os.path.abspath(__file__))
path = lambda *a: os.path.join(ROOT, *a)
prev_sys_path = list(sys.path)
'''
site.addsitedir(path('handlers'))
if os.path.exists(path('vendor')):
for directory... |
listen1/listen1 | https://github.com/listen1/listen1 | null | null | null | null | 4,790 | null | null | mit | null | null | null | null | null | null | null | listen1/fabfile.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:43.555428 | #!/usr/bin/env python
"""Fabfile using only commands from buedafab (https://github.com/bueda/ops) to
deploy this app to remote servers.
"""
import os
from fabric.api import *
from buedafab.test import (test, tornado_test_runner as _tornado_test_runner,
lint)
from buedafab.deploy.types import tornado_deploy as... |
listen1/listen1 | https://github.com/listen1/listen1 | null | null | null | null | 4,790 | null | null | mit | null | null | null | null | null | null | null | listen1/handlers/playlist.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:43.556286 | # coding=utf8
import logging
from handlers.base import BaseHandler
from models.playlist import PlaylistManager
from replay import get_provider, get_provider_list
logger = logging.getLogger('listenone.' + __name__)
class ShowPlaylistHandler(BaseHandler):
def get(self):
source = self.get_argument('source'... |
listen1/listen1 | https://github.com/listen1/listen1 | null | null | null | null | 4,790 | null | null | mit | null | null | null | null | null | null | null | listen1/handlers/player.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:43.557709 | # coding=utf8
import logging
from handlers.base import BaseHandler
from replay import get_provider
logger = logging.getLogger('listenone.' + __name__)
class ArtistHandler(BaseHandler):
def get(self):
artist_id = self.get_argument('artist_id', '')
provider = get_provider(artist_id)
provid... |
listen1/listen1 | https://github.com/listen1/listen1 | null | null | null | null | 4,790 | null | null | mit | null | null | null | null | null | null | null | listen1/handlers/search.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:44.113394 | # coding=utf8
import logging
from handlers.base import BaseHandler
from replay import get_provider_list
logger = logging.getLogger('listenone.' + __name__)
class SearchHandler(BaseHandler):
def get(self):
source = self.get_argument('source', '0')
keywords = self.get_argument('keywords', '')
... |
listen1/listen1 | https://github.com/listen1/listen1 | null | null | null | null | 4,790 | null | null | mit | null | null | null | null | null | null | null | listen1/handlers/trackfile.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:44.128752 | # coding=utf8
import errno
import logging
import os
import os.path
import time
import shutil
from handlers.base import BaseHandler
from replay import get_provider_by_name
from settings import MEDIA_ROOT
import tornado.web
import tornado.httpclient
logger = logging.getLogger('listenone.' + __name__)
class TrackFil... |
listen1/listen1 | https://github.com/listen1/listen1 | null | null | null | null | 4,790 | null | null | mit | null | null | null | null | null | null | null | listen1/replay/douban.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:44.164337 | # coding=utf-8
'''
douban.fm music provider.
'''
import logging
import json
import os.path
import re
import urllib
import HTMLParser
from replay import h
from settings import MEDIA_ROOT
logger = logging.getLogger('listenone.' + __name__)
def filetype():
return '.mp3'
def _db_h(url, v=None, auth=False):
i... |
listen1/listen1 | https://github.com/listen1/listen1 | null | null | null | null | 4,790 | null | null | mit | null | null | null | null | null | null | null | listen1/models/playlist.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:44.184627 | # coding=utf8
import json
import logging
from settings import MEDIA_ROOT
logger = logging.getLogger('listenone.' + __name__)
class Playlist(object):
def __init__(self):
self.cover_img_url = ''
self.title = ''
self.play_count = 0
self.list_id = ''
manager_instance = None
class ... |
listen1/listen1 | https://github.com/listen1/listen1 | null | null | null | null | 4,790 | null | null | mit | null | null | null | null | null | null | null | listen1/logconfig/dictconfig.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:44.189357 | # This is a copy of the Python logging.config.dictconfig module. It is provided
# here for backwards compatibility for Python versions prior to 2.7.
#
# Copyright 2009-2010 by Vinay Sajip. All Rights Reserved.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose and ... |
listen1/listen1 | https://github.com/listen1/listen1 | null | null | null | null | 4,790 | null | null | mit | null | null | null | null | null | null | null | listen1/replay/netease.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:44.190936 | # coding=utf-8
'''
netease music provider.
'''
import base64
import hashlib
import json
import logging
import os.path
import urllib
import urllib2
import pyaes
from replay import h
logger = logging.getLogger('listenone.' + __name__)
def filetype():
return '.mp3'
# 歌曲加密算法, 基于https://github.com/yanunon/Neteas... |
listen1/listen1 | https://github.com/listen1/listen1 | null | null | null | null | 4,790 | null | null | mit | null | null | null | null | null | null | null | listen1/logconfig/logconfig.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:44.192233 | """An extended version of the log_settings module from zamboni:
https://github.com/jbalogh/zamboni/blob/master/log_settings.py
"""
from __future__ import absolute_import
from tornado.log import LogFormatter as TornadoLogFormatter
import logging, logging.handlers
import os.path
import types
from logconfig import dictc... |
listen1/listen1 | https://github.com/listen1/listen1 | null | null | null | null | 4,790 | null | null | mit | null | null | null | null | null | null | null | listen1/replay/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:44.204944 | # coding=utf8
import netease
import qq
import xiami
import douban
def get_provider_by_name(source):
if source == 'netease':
return netease
if source == 'xiami':
return xiami
if source == 'qq':
return qq
if source == 'douban':
return douban
def get_provider(item_id):
... |
listen1/listen1 | https://github.com/listen1/listen1 | null | null | null | null | 4,790 | null | null | mit | null | null | null | null | null | null | null | listen1/replay/qq.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:44.663578 | # coding=utf-8
'''
qq music provider,
'''
import HTMLParser
import json
import logging
import urllib
import urllib2
from replay import h
logger = logging.getLogger('listenone.' + __name__)
def filetype():
return '.m4a'
def _qq_h(url, v=None):
'''
http request
'''
extra_headers = {
'Ac... |
listen1/listen1 | https://github.com/listen1/listen1 | null | null | null | null | 4,790 | null | null | mit | null | null | null | null | null | null | null | listen1/replay/replay.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:44.718554 | # coding=utf-8
'''
Basic Network Library.
'''
import logging
import os.path
import sys
import urllib
import urllib2
import StringIO
import gzip
logger = logging.getLogger('listenone.' + __name__)
########################################
# network
########################################
def chunk_report(bytes_so_f... |
listen1/listen1 | https://github.com/listen1/listen1 | null | null | null | null | 4,790 | null | null | mit | null | null | null | null | null | null | null | listen1/settings.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:44.749062 | import logging
import tornado
import tornado.template
import os
import sys
from tornado.options import define, options
import environment
import logconfig
# Make filepaths relative to settings.
path = lambda root,*a: os.path.join(root, *a)
ROOT = os.path.dirname(os.path.abspath(__file__))
define("port", default=8888... |
listen1/listen1 | https://github.com/listen1/listen1 | null | null | null | null | 4,790 | null | null | mit | null | null | null | null | null | null | null | listen1/replay/xiami.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:44.749588 | # coding=utf-8
'''
xiami music provider.
'''
import json
import logging
import urllib
import urllib2
from replay import h
logger = logging.getLogger('listenone.' + __name__)
# https://github.com/Flowerowl/xiami
def caesar(location):
num = int(location[0])
avg_len = int(len(location[1:]) / num)
remainde... |
listen1/listen1 | https://github.com/listen1/listen1 | null | null | null | null | 4,790 | null | null | mit | null | null | null | null | null | null | null | listen1/tests/run_tests.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:44.808407 | #!/usr/bin/env python
import unittest
TEST_MODULES = [
'list',
'your',
'test',
'modules',
'test.test_something',
]
def all():
try:
return unittest.defaultTestLoader.loadTestsFromNames(TEST_MODULES)
except AttributeError as e:
if "'module' object has no attribute 'test_" in ... |
listen1/listen1 | https://github.com/listen1/listen1 | null | null | null | null | 4,790 | null | null | mit | null | null | null | null | null | null | null | listen1/trayshell/launcher.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:44.808956 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
from PySide.QtGui import *
from PySide.QtCore import *
from trayshell.shell_pyside import Shell
from multiprocessing import freeze_support
def main():
shell = Shell()
shell.run()
if __name__ == '__main... |
listen1/listen1 | https://github.com/listen1/listen1 | null | null | null | null | 4,790 | null | null | mit | null | null | null | null | null | null | null | listen1/trayshell/shell_base.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:44.847271 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
from abc import ABCMeta, abstractmethod
class ShellBase(object):
def __init__(self):
pass
@abstractmethod
def run(self):
""" Starts up the shell.
"""
pass
|
listen1/listen1 | https://github.com/listen1/listen1 | null | null | null | null | 4,790 | null | null | mit | null | null | null | null | null | null | null | listen1/trayshell/shell_pyside.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:44.847937 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import sys
import logging
from PySide.QtGui import QMainWindow, QAction, QMenu, QSystemTrayIcon,\
QApplication, QIcon, QDesktopServices, QMessageBox
from PySide.QtCore import QThread, QUrl
from trayshell.shell_base ... |
listen1/listen1 | https://github.com/listen1/listen1 | null | null | null | null | 4,790 | null | null | mit | null | null | null | null | null | null | null | listen1/trayshell/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:44.848542 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
__version__ = '0.1.0'
APP_NAME = 'Listen 1'
|
listen1/listen1 | https://github.com/listen1/listen1 | null | null | null | null | 4,790 | null | null | mit | null | null | null | null | null | null | null | listen1/trayshell/utils.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:46.414786 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
import os
import sys
def resource_path(relative):
""" Gets the resource's absolute path.
:param relative: the relative path to the resource file.
:return: the absolute path to the resource file.
... |
listen1/listen1 | https://github.com/listen1/listen1 | null | null | null | null | 4,790 | null | null | mit | null | null | null | null | null | null | null | listen1/urls.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:46.638915 | from handlers.douban import DBFavoriteHandler, DBLoginHandler, \
ValidCodeHandler, DBLogoutHandler
from handlers.home import HomeHandler
from handlers.player import AlbumHandler, ArtistHandler
from handlers.playlist import AddMyPlaylistHandler, ClonePlaylistHandler, \
CreateMyPlaylistHandler, PlaylistHandler, \... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/migrations/versions/469d88477c13_config_add_ui_base_url.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:49.266277 | """Add UI_BASE_URL to config
Revision ID: 469d88477c13
Revises: 2e0dc31fcb2e
Create Date: 2023-11-01 22:22:10.112867
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '469d88477c13'
down_revision = '2e0dc31fcb2e'
branch_labels = None
depends_on = None
def upgra... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/migrations/versions/200cf208e048_tracks_process.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:49.296293 | """tracks process
Revision ID: 200cf208e048
Revises: 5bafd482b2c6
Create Date: 2024-11-04 22:17:34.942333
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '200cf208e048'
down_revision = '5bafd482b2c6'
branch_labels = None
depends_on = None
def upgrade():
"... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/config/config.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:49.297700 | #!/usr/bin/python3
"""yaml config loader"""
import json
import os
import yaml
import arm.config.config_utils as config_utils
arm_config: dict[str, str]
arm_config_path: str = os.environ.get("ARM_CONFIG_FILE", "/etc/arm/config/arm.yaml")
abcde_config: dict[str, str]
abcde_config_path: str
apprise_config: dict[str, s... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/migrations/env.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:49.298980 | from __future__ import with_statement
from alembic import context
from sqlalchemy import engine_from_config, pool
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config
# Interpret the config file for Python logging.
# This line sets up loggers ... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/migrations/versions/2986d3f7ecf9_extended_optical_drive_info.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:49.317388 | """Extended Optical Drive Info
Revision ID: 2986d3f7ecf9
Revises: 6870a5546912
Create Date: 2024-11-27 10:15:32.678332
"""
from alembic import op
import sqlalchemy as sa
# pylint: disable=no-member
# revision identifiers, used by Alembic.
revision = '2986d3f7ecf9'
down_revision = '6870a5546912'
branch_labels = None... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/config/config_utils.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:49.319914 | import re
def arm_yaml_check_groups(comments, key):
"""
Check the current key to be added to arm.yaml and insert the group
separator comment, if the key matches\n
:param comments: comments dict, containing all comments from the arm.yaml
:param key: the current post key from form.args
:return: ... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/migrations/versions/2e0dc31fcb2e_notifications_update.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:49.347582 | """notifications update
Revision ID: 2e0dc31fcb2e
Revises: 95623e8c5d58
Create Date: 2023-03-22 21:30:40.264918
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '2e0dc31fcb2e'
down_revision = '95623e8c5d58'
branch_labels = None
depends_on = None
def upgrade():... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/migrations/versions/50d63e3650d2_ffmpeg_support.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:49.350273 | """ffmpeg support
Revision ID: 50d63e3650d2
Revises: a79af75f4b31
Create Date: 2025-10-31 14:53:00.173047
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '50d63e3650d2'
down_revision = 'a79af75f4b31'
branch_labels = None
depends_on = None
def upgrade():
op... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/migrations/versions/5bafd482b2c6_systemdrives_add_drivemode.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:49.904358 | """
System Drives
Add column drive_mode
Revision ID: 5bafd482b2c6
Revises: b326a3663939
Create Date: 2024-11-04 15:44:03.606200
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '5bafd482b2c6'
down_revision = 'b326a3663939'
branch_labels = None
depends_on = None
... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/migrations/versions/6870a5546912_job_add_manualmode.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:49.926100 | """job add manualmode
Revision ID: 6870a5546912
Revises: daab0c779980
Create Date: 2024-11-13 16:05:48.027086
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '6870a5546912'
down_revision = 'daab0c779980'
branch_labels = None
depends_on = None
def upgrade():
... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/migrations/versions/5ceacc391408_store_makemkv_disc_id.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:49.957355 | """Store MakeMKV disc id
Revision ID: 5ceacc391408
Revises: 2986d3f7ecf9
Create Date: 2024-12-05 22:38:52.709850
"""
from alembic import op
import sqlalchemy as sa
# pylint: disable=no-member
# revision identifiers, used by Alembic.
revision = '5ceacc391408'
down_revision = '2986d3f7ecf9'
branch_labels = None
depen... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/migrations/versions/6dfe7244b18e_config_add_rawpath_armpath_mediadir.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:49.958659 | """
Revision ID: 6dfe7244b18e
Revises: 9cae4aa05dd7
Create Date: 2021-03-19 19:22:53.502215
"""
from alembic import op
# revision identifiers, used by Alembic.
revision = '6dfe7244b18e'
down_revision = '9cae4aa05dd7'
branch_labels = None
depends_on = None
def upgrade():
op.alter_column("config", "RAWPATH", ne... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/migrations/versions/9cae4aa05dd7_settingsui_create.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:49.970940 | """create settingsui table
Revision ID: 9cae4aa05dd7
Revises: e688fe04d305
Create Date: 2021-03-11 23:55:12.428608
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '9cae4aa05dd7'
down_revision = 'e688fe04d305'
branch_labels = None
depends_on = None
def upgrade(... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/migrations/versions/95623e8c5d58_merge_add_notification_and_create_sys_.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:49.972209 | """merge add_notification and create_sys_table
Revision ID: 95623e8c5d58
Revises: edce886fb30f, f1054468c1c7
Create Date: 2022-06-24 13:43:51.603433
"""
# no imports required, for the merge of forked databases
# from alembic import op
# import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '95... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/migrations/versions/b326a3663939_job_add_isiso.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:49.973423 | """Job add isISO
Revision ID: b326a3663939
Revises: 469d88477c13
Create Date: 2024-03-29 21:14:59.834607
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'b326a3663939'
down_revision = '469d88477c13'
branch_labels = None
depends_on = None
def upgrade():
op... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/migrations/versions/a79af75f4b31_add_drive_id_field.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:49.974294 | """Add drive id field
Revision ID: a79af75f4b31
Revises: 5ceacc391408
Create Date: 2025-01-04 14:39:09.972294
"""
from alembic import op
import sqlalchemy as sa
# pylint: disable=no-member
# revision identifiers, used by Alembic.
revision = 'a79af75f4b31'
down_revision = '5ceacc391408'
branch_labels = None
depends_... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/migrations/versions/c54d68996895_job_add_stage.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:50.057954 | """
Revision ID: c54d68996895
Revises: 6dfe7244b18e
Create Date: 2021-08-21 06:49:37.250500
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'c54d68996895'
down_revision = '6dfe7244b18e'
branch_labels = None
depends_on = None
def upgrade():
op.add_column('... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/migrations/versions/daab0c779980_job_add_manual_start.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:50.530716 | """Job manual start
Revision ID: daab0c779980
Revises: 200cf208e048
Create Date: 2024-11-09 23:03:11.307327
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'daab0c779980'
down_revision = '200cf208e048'
branch_labels = None
depends_on = None
def upgrade():
... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/migrations/versions/e688fe04d305_user_create.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:50.574583 | """empty message
Revision ID: e688fe04d305
Revises: c3a3fa694636
Create Date: 2021-01-16 03:45:24.758050
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'e688fe04d305'
down_revision = 'c3a3fa694636'
branch_labels = None
depends_on = None
def upgrade():
op... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/migrations/versions/f1054468c1c7_notifications_create.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:50.594476 | """add notifications
Revision ID: f1054468c1c7
Revises: c54d68996895
Create Date: 2022-05-05 23:41:54.046714
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'f1054468c1c7'
down_revision = 'c54d68996895'
branch_labels = None
depends_on = None
def upgrade():
... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/migrations/versions/edce886fb30f_create_system_table.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:50.595852 | """create system table
Revision ID: edce886fb30f
Revises: c54d68996895
Create Date: 2022-05-20 15:44:23.763174
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'edce886fb30f'
down_revision = 'c54d68996895'
branch_labels = None
depends_on = None
def upgrade():
... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/models/config.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:50.605767 | from prettytable import PrettyTable
from arm.ui import db
hidden_attribs = ("OMDB_API_KEY", "EMBY_USERID", "EMBY_PASSWORD",
"EMBY_API_KEY", "PB_KEY", "IFTTT_KEY", "PO_KEY",
"PO_USER_KEY", "PO_APP_KEY", "ARM_API_KEY",
"TMDB_API_KEY", "_sa_instance_state")
HIDDEN_V... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/models/alembic_version.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:50.606415 | from arm.ui import db
class AlembicVersion(db.Model):
"""
Class to hold the A.R.M db version
"""
version_num = db.Column(db.String(36), autoincrement=False, primary_key=True)
def __init__(self, version=None):
self.version_num = version
def __repr__(self):
return f'<AlembicVer... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/models/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:50.609462 | """Database Models
"""
from .alembic_version import AlembicVersion # noqa F401
from .config import Config # noqa F401
from .job import Job, JobState # noqa F401
from .notifications import Notifications # noqa F401
from .system_drives import SystemDrives # noqa F401
from .system_info import SystemInfo # noqa F401... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/models/job.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:50.643443 | import enum
import logging
import os
import psutil
import pyudev
import subprocess
import time
from datetime import datetime as dt
from prettytable import PrettyTable
from sqlalchemy.ext.hybrid import hybrid_property
from arm.ripper import music_brainz
from arm.ui import db
import arm.config.config as cfg
# THESE IM... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/migrations/versions/edf2272c0a9d_track_chapters_filesize.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:50.645001 | """Add chapters and filesize columns to track table
Revision ID: edf2272c0a9d
Revises: 200cf208e048
Create Date: 2026-02-08
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'edf2272c0a9d'
down_revision = '50d63e3650d2'
branch_labels = None
depends_on = None
de... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/models/notifications.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:51.527960 | import datetime
from arm.ui import db
class Notifications(db.Model):
"""
Class to hold the A.R.M notifications
"""
id = db.Column(db.Integer, autoincrement=True, primary_key=True)
seen = db.Column(db.Boolean)
trigger_time = db.Column(db.DateTime)
dismiss_time = db.Column(db.DateTime)
... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/ripper/arm_ripper.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:52.373224 | """ Main file for running DVDs/Blu-rays/CDs/data ?
It would help clear up main and make things easier to find
"""
import sys
import os
import logging
from importlib.util import find_spec
from pathlib import Path
# If the arm module can't be found, add the folder this file is in to PYTHONPATH
# This is a bad workaround... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/ripper/ffmpeg.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:53.162823 | #!/usr/bin/env python3
"""FFMPEG processing of dvd/blu-ray"""
import os
import logging
import subprocess
import shlex
import json
import re
import arm.config.config as cfg
from arm.ripper import utils
from arm.ui import app, db # noqa E402
from arm.models.job import JobState
PROCESS_COMPLETE = "FFMPEG processing co... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/ripper/handbrake.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:54.011844 | #!/usr/bin/env python3
"""Handbrake processing of dvd/blu-ray"""
import os
import logging
import subprocess
import re
import shlex
import arm.config.config as cfg
from arm.ripper import utils
from arm.ui import app, db # noqa E402
from arm.models.job import JobState
PROCESS_COMPLETE = "Handbrake processing complete... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/ripper/identify.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:54.830887 | #!/usr/bin/env python3
"""Identification of dvd/bluray"""
import os
import logging
import urllib
import re
import datetime
import unicodedata
import json
from ast import literal_eval
import pydvdid
import xmltodict
import arm.config.config as cfg
from arm.models import Job
from arm.ripper import utils
from arm.rippe... |
automatic-ripping-machine/automatic-ripping-machine | https://github.com/automatic-ripping-machine/automatic-ripping-machine | null | null | null | null | 4,776 | null | null | mit | null | null | null | null | null | null | null | arm/ripper/logger.py | null | null | null | null | null | null | Python | 2026-05-04T01:53:55.620700 | #!/usr/bin/env python3
"""
Main code for setting up the logging for all of A.R.M
Also triggers CD identification
"""
# set up logging
import os
import logging
import logging.handlers
import time
import arm.config.config as cfg
short_format = (
"%(levelname)s:"
+ (" %(module)s.%(funcName)s:" if cfg.arm_confi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.