微博
https://m.weibo.cn
guaner001125 (317)2023/05/06
该用户很懒,什么介绍也没有写!
{ "bookSourceComment": "搜索格式如下\n\n①综合:直接搜索\n\n以下需关闭精确搜索\n②用户:@用户名@\n③超话:%超话名%\n④话题:#话题名#\n\n按以下格式填写可查看评论(不登录只有20条,条数太多会请求频繁)\n\n是\/否开启评论:是20条", "bookSourceGroup": "微博", "bookSourceName": "微博", "bookSourceType": 0, "bookSourceUrl": "https:\/\/m.weibo.cn", "bookUrlPattern": "", "customOrder": -2085958942, "enabled": true, "enabledCookieJar": true, "enabledExplore": true, "exploreUrl": " 超话 ::\n\n\n\n\n 用户 ::\n\n一条废狗狗狗狗::https:\/\/m.weibo.cn\/api\/container\/getIndex?containerid=1076036055804589_-_WEIBO_SECOND_PROFILE_WEIBO&luicode=10000011&lfid=1076036055804589_-_WEIBO_SECOND_PROFILE_WEIBO&page_type=03&page={{page}}\n\n砂上雪::https:\/\/m.weibo.cn\/api\/container\/getIndex?containerid=1076035239650586_-_WEIBO_SECOND_PROFILE_WEIBO&luicode=10000011&lfid=1076035239650586_-_WEIBO_SECOND_PROFILE_WEIBO&page_type=03&page={{page}}\nWhisky老鹿::https:\/\/m.weibo.cn\/api\/container\/getIndex?containerid=1076036537563116_-_WEIBO_SECOND_PROFILE_WEIBO&luicode=10000011&lfid=1076036537563116_-_WEIBO_SECOND_PROFILE_WEIBO&page_type=03&page={{page}}\n郭斯特::https:\/\/m.weibo.cn\/api\/container\/getIndex?containerid=1076031907542963_-_WEIBO_SECOND_PROFILE_WEIBO&luicode=10000011&lfid=1076031907542963_-_WEIBO_SECOND_PROFILE_WEIBO&page_type=03&page={{page}}\n\n西凌萝卜::https:\/\/m.weibo.cn\/api\/container\/getIndex?containerid=1076032141864060_-_WEIBO_SECOND_PROFILE_WEIBO&luicode=10000011&lfid=1076035239650586_-_WEIBO_SECOND_PROFILE_WEIBO&page_type=03&page={{page}}\n口袋巧克力::https:\/\/m.weibo.cn\/api\/container\/getIndex?containerid=1076031423169553_-_WEIBO_SECOND_PROFILE_WEIBO&luicode=10000011&lfid=1076031423169553_-_WEIBO_SECOND_PROFILE_WEIBO&page_type=03&page={{page}}\n\n\n 话题 ::\n\n#百合小说推荐#::https:\/\/m.weibo.cn\/api\/container\/getIndex?containerid=231522type%3D1%26t%3D10%26q%3D%23%E7%99%BE%E5%90%88%E5%B0%8F%E8%AF%B4%E6%8E%A8%E8%8D%90%23&luicode=10000011&lfid=100103type%253D38%2526q%253D%E7%99%BE%E5%90%88%E5%B0%8F%E8%AF%B4%2526t%253D&page={{page}}\n#百合小说#::https:\/\/m.weibo.cn\/api\/container\/getIndex?containerid=231522type%3D1%26t%3D10%26q%3D%23%E7%99%BE%E5%90%88%E5%B0%8F%E8%AF%B4%23&isnewpage=1&luicode=10000011&lfid=100103type%253D38%2526q%253D%E7%99%BE%E5%90%88%E5%B0%8F%E8%AF%B4%2526t%253D&page={{page}}", "header": "{\n \"User-Agent\": \"Mozilla\/5.0 (Linux; Android 8.1.0; JKM-AL00b Build\/HUAWEIJKM-AL00b; wv) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/66.0.3359.126 MQQBrowser\/6.2 TBS\/044807 Mobile Safari\/537.36\"\n}", "lastUpdateTime": 1683351384695, "loginUrl": "https:\/\/m.weibo.cn", "respondTime": 195470, "ruleBookInfo": { "author": "@js:\n\/screen_name\": \"\/.test(result)?String(result).match(\/\"screen_name\": \"([^\"]+)\"\/)[1]:\"\";", "coverUrl": "", "init": "", "intro": "@js:\nresult = \/\"text\": \".*\",\/.test(result)?String(result).match(\/ \"text\": \"(.*)\",\/)[1]:\"\";\n\nif(\/extparam=\/.test(baseUrl)){\n\tcontainerid = baseUrl.match(\/containerid=(.*?)&\/)[1];\n\tresult = \"---复制下方文字,将#超话#粘贴进发现规则---\\n\"+book.name+`::https:\/\/m.weibo.cn\/api\/container\/getIndex?containerid=${containerid}_-_feed&page={\\{page}}`\n\t}\n\nif(\/search\\?\/.test(baseUrl)){\n\tcontainerid = baseUrl.replace(\/http.*?\\?\/,'https:\/\/m.weibo.cn\/api\/container\/getIndex?');\n\tresult = \"---复制下方文字,将#话题#粘贴进发现规则---\\n\"+book.name+`::${containerid}&page={\\{page}}`\n\t}\n\nif(\/uid=\/.test(baseUrl)){\n\tcontainerid = baseUrl.match(\/uid=(\\d+)\/)[1];\n\tresult = \"---复制下方文字,将#用户#粘贴进发现规则---\\n\"+book.name+`::https:\/\/m.weibo.cn\/api\/container\/getIndex?containerid=107603${containerid}_-_WEIBO_SECOND_PROFILE_WEIBO&page_type=03&page={\\{page}}`\n\t}", "kind": "", "name": "", "tocUrl": "@js:baseUrl" }, "ruleContent": { "content": "<js>\ncimg=[];\nif(String(result).match(\/ \"text\": \"(.*)\",\/)){\nb=String(result).match(\/ \"text\": \"(.*)\",\/)[1];}\nelse{b=''}\n\nif(String(result).match(\/\"size\":\\s*\"[^\"]+\",\\s*\"url\":\\s*\"[^\"]+\"\/g)){\na=String(result).match(\/\"size\":\\s*\"[^\"]+\",\\s*\"url\":\\s*\"[^\"]+\"\/g);\nfor (i=0;i<a.length;i++){\n cimg.push(a[i].match(\/url\":\\s*\"([^\"]+)\"\/)[1])\n }\n \nhtml='';\nfor(i in cimg){\nhtml += '<img src=\"'+cimg[i]+',{\\'headers\\':{\\'referer\\':\\'https:\/\/m.weibo.cn\\'}}\">\\n'\n}}else{html=''}\n\nif(\/timeline_card_small_article_default\/.test(result)){\n\t$ = result.match(\/\"page_info\":\\s*(\\{[\\s\\S]+?\\}),\\s+\"bid\/)[1];\n\t$ = JSON.parse($);\n\thtml = '<img src=\"'+$.page_pic.url+',{\\'headers\\':{\\'referer\\':\\'https:\/\/m.weibo.cn\\'}}\">\\n'\n}\n \nif(!baseUrl.match(\/ttarticle\/)){\nresult = org.jsoup.Jsoup.parse(b).html()+'\\n'+html+java.getString(\"@@class.h5-4con@html\")}else{result=java.getString(\"@@class.f-art@html\")}\n\nif(\/暂无目录......\/.test(chapter.title)){\n\tresult = book.intro\n\t}\n\n\nif(\/是\\d+条\/.test(source.bookSourceComment) && !baseUrl.match(\/ttarticle\/) && \/detail\/.test(baseUrl)){\n\t\npage = source.bookSourceComment.match(\/是(\\d+)条\/)[1];\n\npage = Math.ceil(page\/20);\nmid = baseUrl.match(\/(\\d+)$\/)[1];\nmax_id=\"0\";\ncomments=\"\";\ncount = 0;\n\nfor(j=1;j<=page;j++){\ncommentsurl = `https:\/\/m.weibo.cn\/comments\/hotflow?id=${mid}&mid=${mid}&max_id=${max_id}&max_id_type=0`;\nhh= java.ajax(commentsurl);\nif(\/体验微博客户端\/.test(hh)){\n\th={};\n\tpage = 2;\n\t}else{\n\t\th = JSON.parse(hh)\n\t\t}\nif(h.ok==1){\nlist=h.data.data;\nmax_id = h.data.max_id;\nif(j==1){\ntotal = Math.ceil(h.data.total_number\/20);\npage= page<=total?page:total;\n}\n for(i=0;i<list.length;i++){\n \tdetails=\"\";\n if(list[i].pic!=undefined){\n pic=list[i].pic.large.url;\n details = \"<br><img src=\\\"\"+pic+\",{\\'headers\\':{\\'referer\\':\\'https:\/\/m.weibo.cn\\'}}\\\"><br>\"\n}\ncount += 1\ncomments +=\"\\n--@\"+list[i].user.screen_name+\"@--\\n\"+list[i].text+details;\n }}\n} \nresult + comments\n\n}\n<\/js>\n##<!---->", "imageStyle": "FULL", "replaceRegex": "##<img src=\"https:\/\/.*?small.*?default.*\">|<img src=\"https:\/\/m.weibo.cn\\\\\">", "webJs": "" }, "ruleExplore": { "bookList": "" }, "ruleReview": {}, "ruleSearch": { "author": "", "bookList": "<js>\nif(java.getString(\"$.msg\")!=\"\"){\njava.toast(java.getString(\"$.msg\"));\n}\nresult;\n<\/js>\n$.data.cards[*]&&$.data.cards[*].card_group[*]", "bookUrl": "$.mblog.id\n@js:\nif(\/^\\d+$\/.test(result)){\nresult=\"https:\/\/m.weibo.cn\/detail\/\"+result\n}else{\n\tresult = \"{{$.scheme}}\"\n\t}", "checkKeyWord": "", "coverUrl": "$.mblog.page_info.page_pic.url||$.mblog.thumbnail_pic||$.mblog.user.profile_image_url||$.pic||$.user.profile_image_url##$##,{\"headers\":{\"referer\":\"https:\/\/m.weibo.cn\"}}", "intro": "$.desc1&&$..description", "kind": "$.desc2&&$..verified_reason", "lastChapter": "$.mblog.created_at", "name": "$.mblog.text||$.title_sub||$.user.screen_name@js:result.replace(\/<.*?>\/g,\"\").match(\/(.{0,20}).*\/)[1]" }, "ruleToc": { "chapterList": "<js>\nd=\/\"text\": \"(.*)\",\/.test(result)?String(result).match(\/ \"text\": \"(.*)\",\/)[1]:\"暂无目录\";\nb=d.replace(\/<.*?>\/g,\"\").replace(\/#.*?#\/g,\"\");\nc=baseUrl;\nl=[];\n\nif(\/网页链接\/.test(d) || \/timeline_card_small_article_default\/.test(d)){\n\tif(\/timeline_card_small_article_default\/.test(d)){\n\t\tl=[{text:b.substring(0,10)+\"......\",href:c}]\n\tl.push({\n\t\thref:result.match(\/\"page_url\": \"([^\"]+)\",\/)[1]+\",{'webView':true}\",\n\t\ttext:result.match(\/\"content1\": \"([^\"]+)\",\/)[1],\n\t\tinfo:result.match(\/ \"content2\": \"([^\"]+)\",\/)[1]\n\t\t})\n}\n\nif(\/网页链接\/.test(d)){\n\tlist = d.match(\/<br \\\/>[^<]+<a href=\\\\\"[^\"]+\\\\\" data-hid\/g);\n\tl.push({\n\t\ttext:b.substring(0,10)+\"......\",\n\t\thref:c\n\t\t})\n\tfor(i in list){\n\tl.push({\n\t\ttext : list[i].match(\/>([^<]+)<a\/)[1],\n\t\thref:list[i].match(\/href=\\\\\"([^\"]+)\\\\\"\/)[1]\n\t\t})\n\t }\n\t}\n\t}else{\n\t\tl=[{text:b.substring(0,10)+\"......\",href:c}]\n\t\t}\n\t\tl\n<\/js>", "chapterName": "text", "chapterUrl": "href", "isVolume": "", "updateTime": "info" }, "searchUrl": "@js:\nresult =\"https:\/\/m.weibo.cn\/api\/container\/getIndex?containerid=100103type%3D1%26q%3D{{key}}%26t%3D&page_type=searchall&page={{page}}\";\n\nif(\/^#.*?#$\/.test(key)){\n\t\/\/话题搜索\n\tkey = key.match(\/^#(.*?)#$\/)[1];\tresult=`https:\/\/m.weibo.cn\/api\/container\/getIndex?containerid=100103type%3D38%26q%3D${key}%26t%3D&page_type=searchall&page={{page}}`\n\t}\n\t\nif(\/^%.*?%$\/.test(key)){\n\t\/\/超话搜索\n\tkey = key.match(\/^%(.*?)%$\/)[1];\tresult=`https:\/\/m.weibo.cn\/api\/container\/getIndex?containerid=100103type%3D98%26q%3D${key}%26t%3D&page_type=searchall&page={{page}}`\n\t}\n\t\nif(\/^@.*?@$\/.test(key)){\n\t\/\/用户搜索\n\tkey = key.match(\/^@(.*?)@$\/)[1];\tresult=`https:\/\/m.weibo.cn\/api\/container\/getIndex?containerid=100103type%3D3%26q%3D${key}%26t%3D&page_type=searchall&page={{page}}`\n\t}", "weight": 0 }