Skip to content

Instantly share code, notes, and snippets.

View iydon's full-sized avatar
📚
Focusing

Iydon Liang iydon

📚
Focusing
View GitHub Profile
@iydon
iydon / bilibili-search.py
Created January 29, 2020 07:13
Bilibili 搜索
import collections
import json
import re
import requests
import tqdm
from bs4 import BeautifulSoup
def bilibili_search(keyword, pages=[1], order='', duration=0, typeid=0, headers=dict()):
'''Bilibili 综合搜索
@iydon
iydon / mitmdump_download.py
Last active January 29, 2020 07:23
配合 mitmproxy 工具使用下载 APP 数据
# mitmdump -s __file__ -p 8888
from mitmproxy import http
idx = 1
def request(flow):
pass
def response(flow):
\documentclass[11pt]{letter}
% Packages
\input{preamble.tex}
% Information
\Who{Dr. Niko Bellic}
\Title{, PhD}
\authordetails{
Department of Mathematics \\ % your department
123 Broadway \\ % Your address
Berkeley CA 12345 \\ % Your city, zip code, country, etc
@iydon
iydon / buymeacoffee.html
Created December 25, 2019 00:14
Buy me a coffee
<style>.bmc-button img{width: 35px !important;margin-bottom: 1px !important;box-shadow: none !important;border: none !important;vertical-align: middle !important;}.bmc-button{padding: 7px 10px 7px 10px !important;line-height: 35px !important;height:51px !important;min-width:217px !important;text-decoration: none !important;display:inline-flex !important;color:#FFFFFF !important;background-color:#FF813F !important;border-radius: 5px !important;border: 1px solid transparent !important;padding: 7px 10px 7px 10px !important;font-size: 28px !important;letter-spacing:0.6px !important;box-shadow: 0px 1px 2px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 1px 2px 2px rgba(190, 190, 190, 0.5) !important;margin: 0 auto !important;font-family:'Cookie', cursive !important;-webkit-box-sizing: border-box !important;box-sizing: border-box !important;-o-transition: 0.3s all linear !important;-webkit-transition: 0.3s all linear !important;-moz-transition: 0.3s all linear !important;-ms-transition: 0.3s all linear
@iydon
iydon / netease_music.py
Created November 17, 2019 14:25
网易云歌词爬虫 (低效)
#!/usr/bin/python3
# -*- encoding: utf-8 -*-
'''
@File : netease_music.py
@Time : 2019/11/13
@Author : Vian Lee
@Contact : <no contact>
@Docstring : <no docstring>
'''
# -*- encode: utf-8 -*-
from itertools import product
from math import pi,e
from re import findall, sub
def find_formula(formula:str, constants:dict=dict(), methods:dict=dict(), eps:float=1e-2):
"""Example
>>> f = "[-9~9,bi]*pi+[0~10,bi]*e"
>>> bi = lambda i,j: range(i,j+1)
@iydon
iydon / 404.html
Created June 4, 2019 07:37
网址缩短
<!-- This file should in `templates` directory -->
{% extends "base.html" %}
{% block title %}网址缩短 - Page Not Found{% endblock %}
{% block page_content %}
<div class="page-header">
<h1>Not Found</h1>
</div>
{% endblock %}