侧边栏壁纸
  • 累计撰写 7 篇文章
  • 累计创建 4 个标签
  • 累计收到 3 条评论
标签搜索

全国法院信息集合

星雨
2022-04-24 / 0 评论 / 0 点赞 / 16 阅读 / 2,126 字
温馨提示:
本文最后更新于 2022-04-24,若内容或图片失效,请留言反馈。部分素材来自网络,若不小心影响到您的利益,请联系我们删除。

法院信息来源:法院文书网

const sleep = (delay) => new Promise((resolve) => setTimeout(resolve, delay));
var province = $("#idx_map_content div.map_p");
for (let provincei = 0; provincei < province.length; provincei++) {
    await sleep(4000);
    const element = province[provincei];
    console.log("省市|"+element.getAttribute("data-val")+ "|"+ element.innerHTML);
    if("" != element.getAttribute("data-val")){
       //二级法院
        var param = {
            "provinceCode" : element.getAttribute("data-val"),
            "searchParent" : true
        };
        $.WebSite.refreshModule("1541490383000", param); 
        await sleep(4000);
        var provinceCode1 = element.getAttribute("data-val");
        // var province2 = $("#_view_1541490383000 div.region div.index_divchildcourt_arrow_first a");
        // for (let erjidiyi = 0; erjidiyi < province2.length; erjidiyi++) {
        //     const element = province2[erjidiyi];
        //     console.log("最高法院|"+element.innerHTML);
        // }
        var province3 = $("#_view_1541490383000 div.region ul li div.index_divchildcourt_arrow");
        for (let erji = 0; erji < province3.length; erji++) {
            const element = province3[erji];
            if("" != element.getAttribute("data-val")){
                if(provinceCode1 == element.getAttribute("data-val")){
                    console.log("省最高法|"+element.getAttribute("data-val") +"|"+ $(element).children("a").get(0).innerHTML );
                }else{
                    console.log("二级法院|"+element.getAttribute("data-val") +"|"+ $(element).children("a").get(0).innerHTML );
                    //三级法院
                        var param = {
                            "provinceCode" : element.getAttribute("data-val"),
                            "searchParent" : false
                        };
                        $.WebSite.refreshModule("1541491038000", param); 
                        await sleep(5000);
                        var xian = $("#_view_1541491038000 div.index_divchildcourt div.index_divchildcourt_center ul li");
                        for (let sanji = 0; sanji < xian.length; sanji++) {
                            const element = xian[sanji];
                            if($(element).children("a").length >0){
                            console.log("三级法院|"+element.getAttribute("data-val") +"|"+ $(element).children("a").get(0).innerHTML );
                            }
                        }
                }
            }
        }
    }
}

整理好的法院信息:
https://cdn.yiduoyun.cc/yiduoyun/a3ab53a1c9aa5ee042bf38948029643d.ini

0

评论区