CSDN网站中的版权投诉的标准

Posted 卓晴

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CSDN网站中的版权投诉的标准相关的知识,希望对你有一定的参考价值。

 

01 试总结


版权问题研究。 现在关于测试结果,可以看出:

  • 敏感的标题是审核的关键;
  • 审核背后的人工具有比较大的随意性;

测试程序


如下是自动测试相关的Python 程序。

from head import *
from cdfsub import *

titlenotestr = ''

fontstr = ''
if len(face) > 0 or len(color) > 0 or len(sizestr) > 0:
    fontstr = '<font '
    if len(face) > 0:   fontstr = fontstr + ' face=%s'%face
    if len(color) > 0:  fontstr = fontstr + ' color=%s'%color
    if len(sizestr) > 0: fontstr = fontstr + ' size=%s'%sizestr

    fontstr = fontstr + '>'

if len(sys.argv) == 2:
    if sys.argv[1] == '#':
        tsppasteclipboard()
        exit()
    if sys.argv[1] == 'E':
        tspsendwindowkey(csdn_title, "v", control=1,noreturn=1)
        exit()

key = tspread()
if key[8] != 0:
    retflag = 1
    nbspflag = 1

insertstr = fontstr
figurestr = ''

if len(sys.argv) == 2:
    if sys.argv[1] == '<':
        tspsendwindowkey(csdn_title, "c", control=1)
        strall = clipboard.paste().split('\\n')

        insertstr = []
        if len(strall) > 0:

            for s in strall:
                startid = s.find('https://')
                if startid < 0:
                    startid = s.find('http://')

                if startid >= 0:
                    headstr = s[0:startid]
                    ss = s[startid:].split(' ')
                    urlstr = ss[0]
                    endstr = ' '.join(ss[1:])

                    if urlstr[-1] == '.':
                        urlstr = '<%s>.'%urlstr[:-1]
                    elif urlstr[-1] == '。':
                        urlstr = '<%s>。'%urlstr[:-1]
                    else:
                        urlstr = '<%s>'%urlstr

                    s = headstr + urlstr + endstr

                insertstr.append(s)

            clipboard.copy('\\n'.join(insertstr))

            tspsendwindowkey(csdn_title, "v", control=1, noreturn=1)

            exit()

if len(sys.argv) > 2:

    if brflag == 0:
        allstr = ' '.join(sys.argv[2:])
    else:
        if brflag == 1:
            allstr = '<br>'.join(sys.argv[2:])
        else:
            allstring = ' '.join(sys.argv[2:])
            allstr = allstring.replace('|', '<br>')

    allstr = allstr.replace(',,', '<br>')
    allstr = allstr.replace(',,', '<br>')
    allstr = allstr.replace(';,', ';<br>')
    allstr = allstr.replace('。,', '。<br>')
    allstr = allstr.replace(';。', ';<br>')
    allstr = allstr.replace('。;', '。<br>')
    allstr = allstr.replace('.,', '.<br>')
    allstr = allstr.replace(';.', ';<br>')
    allstr = allstr.replace(';,', ';<br>')

    if allstr[0] == ':':
        allstr = ':' + allstr[1:]

    headsharpnum = len(allstr) - len(allstr.lstrip('#'))
    if headsharpnum > 0:
        allstr = allstr.lstrip('#')

    if sharpnum == 1 and sys.argv[1][0] == '#':

        noteid = 0
        for id,s in enumerate(sys.argv):
            if s[0] == '>' or s[0] == '》':
                noteid = id
                break

        if noteid > 0:
            allstr = ' '.join(sys.argv[2:id])

            titlenotestr = ' '.join(sys.argv[id:])
            titlenotestr = titlenotestr[1:]

        if len(titlenotestr) > 0:
            headlineflag = 0
            lineflag = 0

    if sys.argv[2][0] == '-' and sys.argv[2][1:].isdigit():
        figurestr = '表' + '-'.join(sys.argv[2][1:]) + ' '
        allstr = figurestr + ' '.join(sys.argv[3:])

    if sys.argv[2][-1] == '-' and sys.argv[2][0:-1].isdigit():
        figurestr = '表' + '-'.join(sys.argv[2][0:-1]) + ' '
        allstr = figurestr + ' '.join(sys.argv[3:])

    if sys.argv[2].isdigit() and rightflag > 0:
        figurestr = '表' + '-'.join(sys.argv[2]) + ' '
        allstr = figurestr + ' '.join(sys.argv[3:])

    allstr = allstr.replace('-->', '→')
    allstr = allstr.replace('<--', '←')

    enddotflag = 0

    if endmarkflag > 0 and len(headmarkflag) > 0:
        allstr = allstr + ' ' + headmarkflag

    if len(allstr) > 0:

        if allstr[-1] == '\\\\' or allstr[-1] == '.' or allstr[-1] == '|':
            tspsendwindowkey(csdn_title, 'c', control=1, noreturn=1)
            pastestr = clipboard.paste()
            if len(pastestr) == 0:
                pastestr = clipboardstr;

            if allstr[-1] == '\\\\': allstr = allstr[0:-1]

            if len(pastestr) > 0:
                allstr = allstr + pastestr

        if allstr[-1] == '.':
            nbspflag = 0
            allstr = allstr[:-1]

        endmarkflag = headmarkflag

        if allstr[0] == 'o':
            if allstr[1] == 'o':
                headmarkflag = '○ '
                allstr = allstr[2:]
            else:
                headmarkflag = '● '
                allstr = allstr[1:]

        if allstr[0] == '.':
            if allstr[1] == '.':
                headmarkflag = '□ '
                allstr = allstr[2:]
            else:
                headmarkflag = '■ '
                allstr = allstr[1:]

        if allstr[0] == '+':
            if allstr[1] == '+':
                headmarkflag = '☆ '
                allstr = allstr[2:]
            else:
                headmarkflag = '★ '
                allstr = allstr[1:]

        if allstr[0] == '-':
            if allstr[1] == '-':
                headmarkflag = '△ '
                allstr = allstr[2:]
            else:
                headmarkflag = '▲ '
                allstr = allstr[1:]

        if allstr[0] == ';':
            if allstr[1] == ';':
                headmarkflag = '◇ '
                allstr = allstr[2:]
            else:
                headmarkflag = '◆ '
                allstr = allstr[1:]

        if allstr[0] == '_':
            headmarkflag = '→ '
            allstr = allstr[1:]

        if allstr[0] == ':':
            if allstr[1] == ':':
                headmarkflag = '※ '
                allstr = allstr[2:]
                endmarkflag = ' '
            elif allstr[1] == ':':
                headmarkflag = '※ '
                allstr = allstr[2:]
                endmarkflag = ' '
            else:
                headmarkflag = '※ '
                allstr = allstr[1:]

        if allstr[0] == ':':
            if allstr[1] == ':':
                headmarkflag = '※ '
                allstr = allstr[2:]
                endmarkflag = ' '
            else:
                headmarkflag = '※ '
                allstr = allstr[1:]

        if allstr[0] == '%':
            headmarkflag = '# '
            allstr = allstr[1:]

        if allstr[0] == '$':
            headmarkflag = '§ '
            allstr = allstr[1:]

        if allstr[0] == '@':
            headmarkflag = '◎ '
            allstr = allstr[1:]

        if allstr[0] == '?':
            headmarkflag = '√ '
            allstr = allstr[1:]

        if endmarkflag != headmarkflag and len(endmarkflag) > 0:
            endmarkflag = ' ' + headmarkflag.replace(' ', '')
        else:
            endmarkflag = ''

        if allstr[0] == '/':
            circlenum = allstr.count('/')
            allstr = allstr[circlenum:]
            orderstr = '①②③④⑤⑥⑦⑧⑨⑩⑾⑿⒀⒁⒂⒃⒄⒅'
            if circlenum > 18: circlenum = 18
            circlestr = orderstr[circlenum-1:circlenum] + ' '

        if allstr[0] == '|':
            circlenum = allstr.count('|')
            allstr = allstr[circlenum:]
            orderstr = 'ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩⅪⅫ'
            if circlenum > 12: circlenum = 12
            circlestr = orderstr[circlenum-1:circlenum] + '.'

        if allstr[0] == '\\\\':
            circlenum = allstr.count('\\\\')
            allstr = allstr[circlenum:]
            orderstr = 'ⅰⅱⅲⅳⅴⅵⅶⅷⅸⅹ'
            if circlenum > 10: circlenum = 10
            circlestr = orderstr[circlenum-1:circlenum] + '.'

        if allstr[1:3] == '、、' or allstr[1:3] == '\\\\\\\\':
            orderstr = '一二三四五六七八九十'
            num = int(allstr[0:1])
            if num == 0: num = 10
            num -= 1
            circlestr = orderstr[num] + '、'
            allstr = allstr[3:]

        if allstr[2:4] == '、、' or allstr[2:4] == '\\\\\\\\':
            orderstr = '一二三四五六七八九十'
            num = int(allstr[0:1])
            num1 = int(allstr[1:2])

            if num == 1 and num1 == 0:
                circlestr = "十、"
            elif num == 1:
                num1 -= 1
                circlestr = '十%s、'%orderstr[num1]
            elif num1 > 0:
                num -= 1
                num1 -= 1
                circlestr = '%s十%s、'%(orderstr[num], orderstr[num1])
            else:
                num -= 1
                circlestr = '%s十、'%(orderstr[num])

            allstr = allstr[4:]

        if allstr[1:2] == '\\\\':
            circlestr = '%s、'%allstr[0:1]
            allstr = allstr[2:]

        if allstr[0] >= '0' and allstr[0] <= '9':
            if len(allstr) >= 2:
                if allstr[1] == '|':
                    if allstr[2] == ':':
                        allstr = '(%s)'%allstr[0] + allstr[3:]
                    elif allstr[2] == '|':
                        allstr = '(%s)'%allstr[0] + allstr[3:]
                    elif allstr[2:3] == ':':
                        allstr = '(%s)'%allstr[0] + allstr[3:]
                    elseFont

常用字体

font-family 字体

font-style字体设置

CSS,font-family,好看常用的中文字体

Python常用中文字体对应名称