Skip to content

Instantly share code, notes, and snippets.

View synodriver's full-sized avatar
🙃

synodriver

🙃
  • /dev/null
View GitHub Profile
function main(splash, args)
assert(splash:go(args.url, nil, {
["Cookie"] = args.cookie
}))
assert(splash:wait(1))
local element = splash:select("#accessCode")
local ok, reason = element:send_text("glib") -- 输入提取码
if not ok then
return reason
"""
Copyright (c) 2008-2021 synodriver <[email protected]>
"""
import numpy as np
YIELD_STRESS = 400 # 屈服强度400Mpa
def main():
data = np.loadtxt("data.csv", delimiter=",") # 读取应力应变曲线 第一列应力 第二列应变
#define PY_SSIZE_T_CLEAN
#include <Python.h>
static binaryfunc origin = NULL;
static PyObject *
new_func(PyObject *self, PyObject *other)
{
return PyLong_FromLong(1);
import scrapy
from scrapy.http import TextResponse
import json
class BiliSpider(scrapy.Spider):
name = 'bili'
allowed_domains = ['www.bilibili.com', "api.bilibili.com"]
start_urls = [